Forum
Shop cart get product slug
On the shop cart page I am trying to pass the product slugs into a variable but they are not accessible via perch_shop_cart(['skip-template'=>true]);
I want to be able to pass these into perch_shop_product();
so that I can get optional product data output on the cart page. How can I achieve this?
Did you try
<perch:shop id="productSlug">
?Hello Rob,
Since they don't seem to be accessible when skipping the template, you can return them (comma separated) in a template:
And on your page:
Awesome thanks Hussein