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.

Bottom of grid showing footer totals, Add all to cart button, and cart badge in toolbar

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

  1. Enter quantities for the products you want to save
  2. Click Save order in the toolbar
  3. Enter a name for the template (max 128 characters), e.g., "Weekly restaurant supply"
  4. Click Save

Save order modal with Order name text input field, Save button, and Cancel button

Loading a Saved Order

  1. Click Saved orders in the toolbar
  2. A list of all saved templates appears with name and date
  3. 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.

Saved orders modal with list of saved orders, Load, Overwrite, and Delete buttons per order, and localStorage entry with local badge

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

  1. Enter quantities for the products you want to export
  2. Click the Export dropdown in the toolbar
  3. Select the format: CSV, Excel (XLSX), PDF, or XML
  4. The file downloads automatically

Export dropdown showing 4 options: CSV, Excel, PDF, and XML with file icons

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.
PDF 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).

Example of generated PDF export showing clean table with product name, reference, quantity, price, and sum columns


Was this page helpful?