Skip to main content

Show the total price for each product row

Depending on what your script captures, the cart layouts usually have access to each product’s quantity and unit price.

If the cart contains multiple quantities of products, we recommend adding the following to your cart layout to show the total price per product and the cart total:

In some scripts, the unit price is stored in product.opt.uv instead of product.uv.

{{ (product.uv * product.qty)|format_currency(product.curr) }}

This multiplies the unit price by the quantity and formats the result using the product currency.

Did this answer your question?