Forum
perch_shop_cart variables
Hi,
In the Prech shop app I see how I can use the cart variables in HTML pages using their ID's. Example:
<perch:if id="product_count" match="gt" value="0">
Is it possible to use these on a php page?
I tried something like this but no luck
<?php
perch_shop_cart();
if ($product_count > 0) {
Do something
} ?>
I think you can use
skip-template
withperch_shop_cart()
Perfect. Thanks!