hello
i found out how to show the brand on the product page that i asked in a previous post using the following code found in another thread
<?php
if(!empty($this->element->product_manufacturer_id)){
?>
<tr class="hikashop_product_custom_<?php echo $oneExtraField->field_namekey;?>_line">
<td class="key">
<span id="hikashop_product_custom_name_<?php echo $oneExtraField->field_id;?>" class="hikashop_product_custom_name">
Εκδόσεις
</span>
</td>
<td>
<span id="hikashop_product_custom_value_<?php echo $oneExtraField->field_id;?>" class="hikashop_product_custom_value">
<?php $class = hikashop_get('class.category');
$manufacturer = $class->get($this->element->product_manufacturer_id);
global $Itemid;
$app =& JFactory::getApplication();
echo '<a href="'.hikashop_completeLink('category&task=listing&cid='.$manufacturer->category_id.'&name='.$app->stringURLSafe($manufacturer->category_name).'&Itemid=289').'">'.$manufacturer->category_name.'</a>';
?>
<br />
</span>
</td>
</tr>
<?php
}
?>
Now what i want is your help to modify this code to make it show one subcategory assigned to the product
To the product i have assigned 2 categories like this : main category-category_A main category-category_B-subcategory
so i want to display only the one of them or maybe two (if there where three subcategories) linked to the category description page
the final look of my product page should be like this:
-title
-image
-CATEGORY(linkable)
-price
-extra fields
etc etc
thanx