1

Exp:resso Store demo code has that line for a product part (and URL to it) in the checkout process:

<h4><a href="{path='store_example/product'}/{url_title}">{title}</a></h4>

My products are categorized so it requires to obtain primary category and secondary category for a proper product URL. Is there any way to accomplish that? Maybe GWcode Categories can do that?

Thanks!

1 Answer 1

1

You will probably need to pass the {entry_id} variable to another tag in order to grab other fields. I had to do this on a site I'm building in order to grab product images for the cart.

So, if you can feed the entry_id to GWcode Categories, it should work great.

3
  • Side note, just be cautious about how many queries you're adding to the cart template by doing this. Commented Feb 21, 2014 at 22:46
  • Passing the {entry_id} was the right way to go, but now I'm stuck on "multiple categories" used. For an example I have main category group where is product manufacturer located and then for that product manufacturer I have separate category with product lines I'm ended with both categories listed in the URL :\ Commented Feb 24, 2014 at 21:06
  • OK, issue was related to a way how product categories were handled. More regarding that "multiple categories" here: expressionengine.stackexchange.com/questions/19305/… Commented Feb 24, 2014 at 21:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.