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

TOPIC: Manufactuer Link on Catgeory/Words Only

Manufactuer Link on Catgeory/Words Only 8 years 1 month ago #7677

Hi Support, you gave me the fix to add the manufactuer logo on the category page, but could you supply the code to just show the words instead of the logo for the vendor?


WORKING VERSION FOR LOGOS ON CATEGORY PAGE
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)
The topic has been locked.

Manufactuer Link on Catgeory/Words Only 8 years 1 month ago #7685

If so, then replace this:
<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>


with this:
<a title="<?php echo $ManufacturerName; ?>" href="<?php echo JRoute::_('index.php?option=com_virtuemart&view=category&virtuemart_manufacturer_id=' . $product->virtuemart_manufacturer_id.''); ?>"><?php echo $ManufacturerName; ?></a>

So the plain text <?php echo $ManufacturerName; ?> will be linked, instead of the manufacturer Logo.

Regards.
Support
The topic has been locked.

Manufactuer Link on Catgeory/Words Only 8 years 1 month ago #7692

It works! Thank you for all your help!
The topic has been locked.

Manufactuer Link on Catgeory/Words Only 8 years 1 month ago #7701

Hi,
Thanks for updating this topic.

Case solved. Topic closed.

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