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

TOPIC: Manufacturer Logo on Product Page /Link to Catgory

Manufacturer Logo on Product Page /Link to Catgory 8 years 2 months ago #7233

Hello, I have found an article on your site where a user can click on the manufacturer logo and a pop up is displayed showing the manufacturer information. Is it possible that when a user is on the product page and they click on the manufacturers logo that they are taken to that category page instead of a pop up? I found a source but I am not seeing where the pop up is removed in the code. Any thoughts?

Source: www.flexiblewebdesign.com/forum-joomla-virtuemart-template-lightmart-support/1288-product-details-page-manufacturer-logo-link


UPDATE: I would also like the manufacturer logo on the category page to link to that same page as well.
Last Edit: 8 years 2 months ago by Kory Jackson. Reason: Category Page addition
The topic has been locked.

Manufacturer Logo on Product Page /Link to Catgory 8 years 2 months ago #7269

Hi,

Open this PHP file:

/templates/YOUR_TEMPLATE/html/com_virtuemart/productdetails/default.php
(default.php or flexv2.php which ever you are using for the product details page layout)

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

and

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

Then you will get what you need.

The next page will show all the products from that specific manufacturer. There will be no popup.

Regards.
The topic has been locked.

Manufacturer Logo on Product Page /Link to Catgory 8 years 2 months ago #7302

Worked like a charm!

UPDATE: I would also like the manufacturer logo on the category page to link to that same page as well.
The topic has been locked.

Manufacturer Logo on Product Page /Link to Catgory 8 years 1 month ago #7321

I am glad it worked out.

Case solved. Topic closed.

Cheers,
Support
The topic has been locked.
Time to create page: 0.286 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