-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.5
Hi,
I'm trying to show categories for each product in cart.
I'm editing this view: checkout / cart.php.
I tried to use this code which works well in product page but in cart it shows nothing.
<?php
foreach($this->categories as $category){
$categoryClass = hikashop_get('class.category');
$categoryClass->addAlias($category);
echo '<a href="'.hikashop_contentLink('category&task=listing&cid='.$category->category_id.'&name='.$category->alias,$category).'">'.($category->category_name).'</a>';
}
?>
How can I show categories for each product?
Thank you so much.