VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: Gingerweb on January 23, 2017, 09:46:15 AM

Title: Product images duplicated
Post by: Gingerweb on January 23, 2017, 09:46:15 AM
This is odd as nothing to my knowledge has changed on the site. Every product is showing its images twice?

http://www.huntingvintage.co.uk/component/virtuemart/saddle-flasks/stainless-steel-hip-flask-3092013-06-11-19-55-51-312-313-detail?Itemid=0

Any idea why this would happen please?
Title: Re: Product images duplicated
Post by: jenkinhill on January 23, 2017, 11:41:43 AM
There is something wrong with your template overrides, as there are two additional image divs in the code.  Just look at the page code for <div class="additional-images">

Title: Re: Product images duplicated
Post by: Gingerweb on January 23, 2017, 12:05:13 PM
Thanks - i cant find that error!
assuming it would be in either:

/public_html/templates/templatename/html/com_virtuemart/productdetails/default.php

or

/public_html/components/com_virtuemart/views/productdetails/tmpl/default.php

but cant find anything like it ?
Title: Re: Product images duplicated
Post by: GJC Web Design on January 23, 2017, 13:23:02 PM
because your using vmuikit bollocks.....
Title: Re: Product images duplicated
Post by: Gingerweb on January 23, 2017, 16:26:22 PM
Actually John this site doesnt have Vmuikit installed, it does have the one page checkout plugin which has massively increased orders, but no Vmuikit.
I assume the issue i am having is coming from /public_html/templates/impress/html/com_virtuemart/productdetails/default_images.php but the file is the "default" so i cant see why i am getting the double images still?
Title: Re: Product images duplicated
Post by: jenkinhill on January 23, 2017, 17:33:53 PM
The additional images are displayed with the template /templates/impress/html/com_virtuemart/productdetails/default_images_additional.php which will be included in the page by /templates/impress/html/com_virtuemart/productdetails/default.php

If you can't work the problem out you should ask the template developer.
Title: Re: Product images duplicated
Post by: jjk on January 23, 2017, 18:22:17 PM
Quote from: Gingerweb on January 23, 2017, 09:46:15 AM
...huntingvintage.co.uk/component/virtuemart/saddle-flasks/stainless-steel-hip-flask-3092013-06-11-19-55-51-312-313-detail?Itemid=0
Any idea why this would happen please?

I suppose you did solve your duplicate image issue, because at the time of writing this I don't see duplicate product images.
The 'strange' numbers in your above url were generated in your product alias form field because there is already a previously added product with the same name:
...huntingvintage.co.uk/component/virtuemart/saddle-flasks/stainless-steel-hip-flask-detail?Itemid=0
Title: Re: Product images duplicated
Post by: Gingerweb on January 23, 2017, 18:31:27 PM
Yes thanks i just fixed it the issue was in

/public_html/templates/impress/html/com_virtuemart/productdetails/default.php

whilst setting up the vmreviews component i must have messed up somewhere not sure where but have replaced that file and all was ok.

thanks for assistance all.