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

TOPIC: How to show manufacturer logos next to thumbnail

How to show manufacturer logos next to thumbnail 6 years 9 months ago #1817

Hello
how to display the logo of the supplier product
Last Edit: 6 years 9 months ago by Support.
The topic has been locked.

provider's logo on the product 6 years 9 months ago #1864

Hi,

Showing manufacturer logos right away is not supported by Virtuemart.
We did it with "VM2 Template - PureMArt" but still there are some core modifications required to achieve this.

Follow this tutorial first:
www.flexiblewebdesign.com/forum-virtuemart-2-template-puremart-support/250-tutorial-how-to-show-manufacturer-logos

For Category Browse Page, Open this PHP file:

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

Copy these lines below to where you want to put the manufacturer logo (don't forget, category browse page includes different Views (GridView and ListView), you should put the these lines below to 2 different places for this purpose so they will be visible in GridView and ListView.):
                <?php
if (empty($product->mf_images[0]->file_url_thumb)) {
  echo "";   // leave here empty so nothing will be visible
} else { ?><?php
$ManufacturerLink = JRoute::_('index.php?option=com_virtuemart&view=manufacturer&virtuemart_manufacturer_id=' . $product->virtuemart_manufacturer_id . '&tmpl=component');
$ManufacturerName = $product->mf_name;
?>   
	<div class="FlexibleProductDetailsManufacturerLogo"> 
    	<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>
    </div>
                    <?php } ?>


For product details page, Open this PHP file:

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

Copy these lines below to where you want to put the manufacturer logo :
<?php
if (empty($this->product->mf_images[0]->file_url_thumb)) {
  echo "";   // leave here empty so nothing will be visible
} else { ?><?php
$ManufacturerLink = JRoute::_('index.php?option=com_virtuemart&view=manufacturer&virtuemart_manufacturer_id=' . $this->product->virtuemart_manufacturer_id . '&tmpl=component');
$ManufacturerName = $this->product->mf_name;
?>   
	 <div class="FlexibleProductDetailsManufacturerLogo">  
    	<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>
    </div>
                    <?php } ?>


And to limit the size of those manufacturer logos, you can insert this CSS rule (to any CSS file you are sure it gets loaded in the website)
div.FlexibleProductDetailsManufacturerLogo img {
max-height:50px;
max-width:50px;
margin:5px 0;
}

then you should be all good to go.
Last Edit: 6 years 9 months ago by Support.
The topic has been locked.

provider's logo on the product 6 years 9 months ago #1883

A big thank you, it works very well

very good support

THANKS
Last Edit: 6 years 9 months ago by Burhan Mercan.
The topic has been locked.

provider's logo on the product 6 years 9 months ago #1886

Your welcome. I am glad it worked out well in your website as well.

I am hopping this topic will be useful to all though.Because i am know lots of people have been looking for the same thing.
For this purpose, i cleared the "unnecessary posts from this topic and marked it "STICKY".

Regards.
Case closed. Topis is closed.
Last Edit: 6 years 9 months ago by Support.
The topic has been locked.
Time to create page: 0.164 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