Product image plugin integration

GK User
Wed Aug 08, 2012 1:33 pm
Hi I've come across a free plugin to provide product images with with popups and navigation that is not standard on the esport template but after installing, it does not work for the esport template. Could you please let me know if there is an easy fix for this. Here is a link to plugin:

http://forum.virtuemart.net/index.php?topic=105482.0

Many thanks,

Nick
User avatar
Junior Boarder

GK User
Wed Aug 08, 2012 3:44 pm
First of all please do not duplicate topics. Secondly, if the plugin is not working it is probably plugin issue not the template so you should contact with plugin developer's. Please try switch to default template and check whether the extension is working or not.
User avatar
Platinum Boarder

GK User
Wed Aug 08, 2012 3:48 pm
I did not duplicate the topic, I have no idea why it was entered twice, perhaps a problem at your end.

I have tried the plugin on all the Joomla! default templates and it works fine but not with the esport template so I suppose it has to be something with the way the esport template is setup.

You can see for yourself if you download it.
User avatar
Junior Boarder

GK User
Thu Aug 09, 2012 11:09 am
Template contains overrided styles for VirtueMart component and probably this is why it is not working. Please only give me your site URL, I'll check whether the console shows any errors with JavaScript.
User avatar
Platinum Boarder

GK User
Thu Aug 09, 2012 5:54 pm
Sorry about the delay in replying to you I've been out all day and have just seen this, the URL is http://www.innovationonly.com. Many thanks, Nick
User avatar
Junior Boarder

GK User
Fri Aug 10, 2012 9:35 pm
The console is clean so there are any JavaScript errors, I think that without changes in plugin code you can get it working with our VM styles.
User avatar
Platinum Boarder

GK User
Mon Aug 13, 2012 9:48 am
I've uploaded the files as per the instructions and it works fine with the default Joomla! templates but I cannot see how to get it working with esport at all. Any suggestions? Is it because the file mysite/templates/gk_esport/html/com_virtuemart/productdetails/default.php has code that overrides the mysite/templates/gk_esport/html/com_virtuemart/productdetails/default_images.php file?? If so, how can I fix this? Many thanks, Nick
User avatar
Junior Boarder

GK User
Tue Aug 14, 2012 9:51 am
Is it because the following code found on lines 143-158 in the default.php needs to be removed or changed to read the code in the default_images.php file? If so how do I do that?!:

<div class="width40 floatleft">
<?php // Product Main Image
if (!empty($this->product->images[0])) { ?>
<div class="main-image">
<?php echo str_replace('<a', '<a class="modal"', $this->product->images[0]->displayMediaFull('class="product-image"',true,"class='modal'",true)); ?>
</div>
<?php } // Product Main Image END ?>
<?php // Showing The Additional Images
if (!empty($this->product->images) and count ($this->product->images)>1) { ?>
<div class="additional-images">
<?php // List all Images
foreach ($this->product->images as $image) {
echo '<div class="product-thumb">' . $image->displayMediaThumb('class="product-image"',true,'class="modal"',true,true) . '</div>'; //'class="modal"'
} ?>
</div>
<?php } // Showing The Additional Images END ?>
User avatar
Junior Boarder

GK User
Tue Aug 14, 2012 12:06 pm
Customization VM template for 3rd party extension is beyond our support, my advise is to change name of html/com_virtuemart directory to com_virtuemart_bak and use default VM styles. Then the plugin should work without any problems.
User avatar
Platinum Boarder


cron