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

TOPIC: Manufacturer Logo cross browser question

Manufacturer Logo cross browser question 11 years 1 month ago #3282

Hi guys.

First off, THANK YOU for your great help whenever I've needed it.

I have a question regarding the Manufacturers logo showing in different browsers.
This is what is showing in Chrome, Safari and IE9. As you can see the browser logo isn't showing.

Attachment img1.jpg not found



Attachment img2.jpg not found




This is what shows in Firefox.


I have changed the php file as described in the Manufacturers Logo Tutorial.

Do you have any advise please?

Thanks again,
Gina
Attachments:
Last Edit: 11 years 1 month ago by gina morley. Reason: update images
The topic has been locked.

Manufacturer Logo cross browser question 11 years 1 month ago #3285

Hi,

This has been solved in the new versions. But here is your patch.

First of all; Open Category browse page PHP file:
ROOT/templates/<yourjoomlatemplate>/html/com_virtuemart/category/default.php
(default.php, defaultlist.php, flexv2.php, flexv2list.php or what ever you are currently using, there are 6 different category browse page layouts and you are using only one of them depends on what ever you chose from VM Configuration)

Whereever you see this line (you will see this line in 3 different places since there 3 View options (ListView, GridView, MultiGridView):
<?php if ($params->get('category_manufacturer',1)) { ?>  

Change it with this:
<?php 
     $ManufactuererLogoCheck = $product->mf_images[0]->file_url_thumb;
     if ($params->get('category_manufacturer',1) && !empty($ManufactuererLogoCheck)) { 
?>

Secondly, open product details page PHP file:
ROOT/templates/<yourjoomlatemplate>/html/com_virtuemart/productdetails/default.php
(default.php or flexv2.php. There are 2 different product details page layouts and you are using only one of them depends on what ever you chose from VM Configuration)

Find this line (there is only 1 place you can find it)
 <?php if ($params->get('productdetails_manufacturer',1)) { ?>   

and replace it with this:
<?php 
     $ManufactuererLogoCheck = $this->product->mf_images[0]->file_url_thumb;
     if ($params->get('productdetails_manufacturer',1) && !empty($ManufactuererLogoCheck)) { 
?>

And the problem will be solved. If the Manufacturer Logo is not exist, then no broken image will be visible.

Regards.
Forum Support.
Last Edit: 11 years 1 month ago by Support.
The topic has been locked.

Manufacturer Logo cross browser question 11 years 1 month ago #3314

As always.... BRILLIANT support

The info' worked perfectly thank you.

Gina
www.adonaibeauty.com
The topic has been locked.

Manufacturer Logo cross browser question 11 years 1 month ago #3318

If your happy - we're happy..

marked solved
The topic has been locked.
Time to create page: 0.159 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