Hello! In my vm 3.4.2 (php 7.1) site each product is getting into two categories. These two categories are equivalent. Category 1 - men or women and category 2 - original or copy.
How to show links to ALL categories in a product page?
Now in the product page there is a code:
<?php echo $this->category->category_name; ?>
This code shows only one category through which the visitor entered the page. and how to show also the second category?
on the product details template in the $this->product is an array of catids
$this->product->categories => Array
(
- => 181
[1] => 183
)
or $this->product->categoryItem is another array containing all cat info (name, id etc)
just loop thru and render what info u want