Main Menu

Press Enter to search or Esc to close

FW Food Menu – Documentation

Cart Module

FW Food Menu tutorial for WordPress

What the Cart Module Does

The FWFM Cart Module displays a shopping cart widget anywhere on your site using the shortcode [fwfm_mod_cart]. The widget shows the current cart contents, item count, and running total, along with a link to the full checkout form. It updates automatically as customers add or remove items from the menu.

Use Cases

  • Floating header cart — embed the shortcode in a header area so a cart icon with item count stays visible as visitors browse the menu.
  • Sidebar cart summary — place a compact cart overview in a sidebar next to the menu listing, giving customers quick access to their order at any point.

Requirements

The Cart addon must be installed and active. The Cart Module is a thin wrapper — it has no output of its own and relies entirely on the Cart addon to render the widget. Without the Cart addon, the module displays nothing.

Embedding the Cart Widget

Use the shortcode wherever your page builder or editor accepts shortcodes:

  • Paste [fwfm_mod_cart] directly into a page or post content area.
  • Add it inside a shortcode-compatible widget block in your sidebar, header, or footer widget area.

The widget inherits styling from whichever design template is active in FW Food Menu, so its appearance stays consistent with the rest of the menu.

Parameters

Parameter Type Default Description
Module class suffix Text A CSS class appended to the cart widget wrapper element. Use this to apply custom styles without modifying core files.

How Cart Data Is Handled

Cart contents are stored client-side via session or cookie and synced with the server each time the cart is updated. This means the cart widget reflects live order state as customers interact with the menu.

To install this addon, open the Add-ons panel inside FW Food Menu. See Getting Started → Add-ons for details on free addons, paid addons, and site verification.


Was this article helpful?
Next
Key Features
  • Client Login

    Restore password
  • New Registration

or
Make sure @fastw3b.com email domain is white-listed in your email client to restore password, verify registration, get order confirmations, etc.