mati06 Posted July 22, 2012 Share Posted July 22, 2012 Hi I want to add in shopping-cart information about product category which was added to cart. I found code to show this information in product-list.tpl in product.php add: $categories_ids = Product::getProductCategories($row['id_product']); $categories_names = array(); foreach ($categories_ids AS $id) { $category = new Category($id); $categories_names[] = $id; } $row['categories'] = $categories_names; in product-list.tpl add: {foreach from=$product.categories item=category name=category} {$category} <br/> {/foreach} In product-list.tpl it is working but in shopping-cart-product.line.tpl not. does anyone know how to do this? I appreciate your input! Link to comment Share on other sites More sharing options...
vendocartoni Posted July 24, 2013 Share Posted July 24, 2013 i've tha same question about adding code on file shopping-cart-product-line.tpl thanks Link to comment Share on other sites More sharing options...
vekia Posted July 25, 2013 Share Posted July 25, 2013 check this tutorial please: prestashop product categories in shopping cart Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now