CartThrob 9 documentation for ExpressionEngine commerce teams Visit CartThrob.com
CartThrob.com

Cart Weight

{exp:cartthrob:cart_weight} outputs the total weight of all cart items.

This is often used for shipping summaries or custom shipping logic displays.

See also:

Parameters

This tag has no tag-specific parameters.

It does not support documented modifiers (for example, no :numeric modifier is implemented).

Output and Behavior

  1. Returns the sum of quantity * weight across cart items.
  2. Only numeric item weights are included in the total.
  3. Output is returned as a raw number (no currency/number formatting wrapper).

Example

Basic cart weight

{exp:cartthrob:cart_weight}