Cart Filters


Cart filters adjust or change the information related to the shopping cart and its characteristics.


item_count_for_variant

syntax
cart | item_count_for_variant: {variant_id}

Gives the total number of items for a specific variant in the cart.


line_items_for

Gets the list of cart items that contain a specific product or variant.

Accepts these object types:

  • product
  • variant
syntax
cart | line_items_for: object