Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Template - PureMart (SKU# FLEX-00010)

TOPIC: Manufactuer link on Category Page

Manufactuer link on Category Page 10 years 4 months ago #7352

I would also like the manufacturer logo on the category page to link to that same page as well.


Example for Product Page

www.flexiblewebdesign.com/forum-virtuemart-2-template-puremart-support/1551-manufacturer-logo-on-product-page-link-to-catgory
The topic has been locked.

Manufactuer link on Category Page 10 years 4 months ago #7367

Hi,

The modification will be exactly the same, but in in the different PHP file.
Open the category browse page PHP file:

/templates/YOUR_TEMPLATE/html/com_virtuemart/category/default.php
(default.php or flexv2.php which ever layout you are using currently for category browse page)

and look for this line:
<a title="<?php echo $ManufacturerName; ?>"  rev="iframe|550|650"  rel="facebox" href="<?php echo $ManufacturerLink ?>"><img src="<?php echo $product->mf_images[0]->file_url_thumb; ?>" alt="<?php echo $ManufacturerName; ?>" /></a>

and replace with:
<a title="<?php echo $ManufacturerName; ?>" href="<?php echo JRoute::_('index.php?option=com_virtuemart&view=category&virtuemart_manufacturer_id=' . $product->virtuemart_manufacturer_id.''); ?>"><img src="<?php echo $product->mf_images[0]->file_url_thumb; ?>" alt="<?php echo $ManufacturerName; ?>" /></a>

NOTICE: Since category browse page has 3 different views (ListView, GridView, MultiGridView), you will need to do this above change in 3 different place within the same PHP file. (Use CTRL+F to find the lines)

Regards,
Support
The topic has been locked.

Manufactuer link on Category Page 10 years 4 months ago #7392

It works! Thanks.
The topic has been locked.

Manufactuer link on Category Page 10 years 4 months ago #7444

i am glad it works out.

Case solved, topic closed.

Regards,
Support
The topic has been locked.
Time to create page: 0.149 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo