5. Add to cart, save and export the order
Add to Cart
Bulk Add to Cart
After entering quantities for all desired products, click the Add all to cart button at the bottom of the grid. All products with qty > 0 are added to the cart in a single AJAX request.
The cart badge in the toolbar updates to reflect the new total.

Per-Row Add to Cart
If enabled in the configuration, each product row has an individual cart button. Enter a quantity and click the cart icon to add just that product. The button is disabled when the quantity is 0.
Stock Validation
Before adding to cart, the module validates:
- Out-of-stock products: Respects PrestaShop's "Allow ordering out-of-stock products" setting (global and per-product)
- Available quantity: If ordering out-of-stock is denied, quantities exceeding available stock are rejected
- Minimum quantity: Products with a minimum order quantity enforce that limit
If validation fails, a toast notification explains which products could not be added and why.
Saved Order Templates
Repeat customers can save their frequently ordered product lists and reload them with one click.
Storage
| Customer type | Storage location | Default limit |
|---|---|---|
| Logged-in customers | Server database (linked to customer account) | 50 templates |
| Guest visitors | Browser localStorage | 20 templates |
When a guest creates an account, both sources are visible - localStorage entries appear with a "(local)" badge.
Saving an Order
- Enter quantities for the products you want to save
- Click Save order in the toolbar
- Enter a name for the template (max 128 characters), e.g., "Weekly restaurant supply"
- Click Save

Loading a Saved Order
- Click Saved orders in the toolbar
- A list of all saved templates appears with name and date
- Click Load next to the template you want
The grid quantities are replaced with the saved values. If some saved products no longer exist in the catalog, a warning toast shows how many were skipped.

Overwriting a Saved Order
Click Overwrite next to a saved template. The current grid quantities replace the saved ones. A confirmation dialog appears before overwriting.
Deleting a Saved Order
Click the Delete (trash) icon. A confirmation dialog appears. Deleted templates cannot be recovered.
Multi-Format Export
Export the current order (all products with quantity > 0) in four formats.
How to Export
- Enter quantities for the products you want to export
- Click the Export dropdown in the toolbar
- Select the format: CSV, Excel (XLSX), PDF, or XML
- The file downloads automatically

Export Formats
| Format | Best for | Details |
|---|---|---|
| CSV | Importing into other systems, ERP integration | Plain text, comma-separated. Includes all visible columns. |
| XLSX | Purchase approval, sharing with colleagues | Excel file with formulas for sum calculations, currency and weight formatting, colored stock indicators, bold headers, auto-filter, and totals row. Zero external dependencies. |
| Printing, email attachments, archives | Clean table layout with borders. White-label (no module branding). Automatic page breaks for long lists. | |
| XML | System integration, automated processing | Structured XML with product data and quantities. |
Note: The export includes only rows with a quantity greater than zero. The columns in the export file match the currently visible columns in the grid.
The file is named qog-export-YYYY-MM-DD-HHmmss.{format} (e.g., qog-export-2026-02-12-143022.xlsx).
