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

TOPIC: Thumbnails selector doesn´t work with two images

Thumbnails selector doesn´t work with two images 11 years 1 month ago #3155

Hello, if you go to the next url example: seodeempresa.es/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=659&virtuemart_category_id=116&Itemid=647&lang=es

and you try to change the thumbnails images selector (clicking on the arrows that I show you in the capture), you will see the problem.

The selector doesn´t show you again the first thumbnail, this problem only appears when the product only has one or two thumbnails; If the product has three or more thumbnails, it works fine.

Attachment selector.png not found



Regards
The topic has been locked.

Thumbnails selector doesn´t work with two images 11 years 1 month ago #3162

Hi,

I'm trying to reproduce your problem. I did not have any products with 2 images so I just added a second image.

babynose.com.au/shop/replacement-hygiene-filters.html

My slider has only 2 positions. How did you get yours to 3? I can't see where to change it to 3.

I noticed that your thumbnail images are 133x200 instead of 200x200 but I think that is only causing the images to distort.

Regards,
Mr BabyNose
The topic has been locked.

Thumbnails selector doesn´t work with two images 11 years 1 month ago #3166

Hi,

Probably the best way is to remove the selector arrows with 2 or less images - they aren't nesscesary..

Please see this thread on how to do this:

http://www.flexiblewebdesign.com/index.php?option=com_kunena&view=topic&catid=10&id=694&Itemid=234#2950
Last Edit: 11 years 1 month ago by John.
The topic has been locked.

Thumbnails selector doesn´t work with two images 11 years 1 month ago #3185

Hi, thank you for the answer!


In the thread you told me, I can´t find the next path and file:

>> mod_vm_flexible_zoom_effect/tmpl/default_images.php

Where could I find this file to change it like you explain in the thread?

(Our Puremart template version is 3.0)

Thank you
The topic has been locked.

Thumbnails selector doesn´t work with two images 11 years 1 month ago #3196

modules/mod_vm_flexible_zoom_effect/tmpl/default_images.php
thats where it is

all you have to do is add after line 48
 
<?php
 
if (count($this->product->images)<3) {
 
echo '<s-tyle type="text/css">
  .flexible-zoom-additionalImagesWrap .more-views-arrow,
.flexible-zoom-additionalImagesWrap .prev,
.flexible-zoom-additionalImagesWrap .prev:hover,
etc 
etc
 
 {
    display:none;
   }
  </style>';
}
 
?>
 
 

cheers
The topic has been locked.

Thumbnails selector doesn´t work with two images 11 years 1 month ago #3206

Attachment nothing.png not found


I´m afraid there is not mod_vm_flexible_zoom_effect/ folder in modules/,

What´s the reason, maybe the version? Where can I edit the code of the thumbnails selector? It isn´t in the product details file?

I saw in /public_html/components/com_virtuemart/views/productdetails/tmpl a file called : default_image.php . I try to edit in this file inserting the code you gave me but nothing happens, where could be the correct default_images.php?


Regards
Last Edit: 11 years 1 month ago by Jose Luis Blasco.
The topic has been locked.

Thumbnails selector doesn´t work with two images 11 years 1 month ago #3209

Oops sory - of course - your using the template

just tested this working

templates/YOUR_TEMPLATE/html/com_virtuemart/productdetails/default.php insert after line 291

[code type=php-brief]
<?php
if (count($this->product->images)<3) {
echo '<s-tyle type="text/css">
.flexible-zoom-additionalImagesWrap .more-views-arrow
{
display:none;
}
</style>';
}
?>
[/code]
note the stupid editor is inserting a dash

should be

style type="text/css"
cheers
Attachments:
Last Edit: 11 years 1 month ago by John.
The topic has been locked.

Thumbnails selector doesn´t work with two images 11 years 1 month ago #3211

Ok that is! thank you very much! :)
The topic has been locked.

Thumbnails selector doesn´t work with two images 11 years 1 month ago #3216

Thanks for your feedback

Marked solved
Last Edit: 11 years 1 month ago by John.
The topic has been locked.
Time to create page: 0.210 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