Hi
Is it possible and see the total value of all products in cs.cart?
Regards
Knut
Hi
Is it possible and see the total value of all products in cs.cart?
Regards
Knut
Hi
Is it possible and see the total value of all products in cs.cart?
Regards
Knut
Add HTML block with SMARTY support and the following code:
Total amount: {"SELECT COUNT(product_id) FROM ?:products"|db_get_field}
Add HTML block with SMARTY support and the following code:
Total amount: {"SELECT COUNT(product_id) FROM ?:products"|db_get_field}
Did try it, but I cant get it to work. I get the total of products, but I want total value :)
Total value: {"SELECT SUM(price) FROM ?:product_prices"|db_get_field}
Edit: Note that this does not take in account inventory.
You can display it however you want, but the smarty vsriable for the subtotal of the products is {$order_info.subtotal}.
Total value: {"SELECT SUM(price) FROM ?:product_prices"|db_get_field}Edit: Note that this does not take in account inventory.
Total value: {"SELECT SUM(price) FROM ?:product_prices WHERE lower_limit = 1 AND usergroup_id = 0"|db_get_field}