Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Product Slider (SKU# FLEX-00003)

TOPIC: Slider stopped working

Slider stopped working 10 years 4 months ago #7163

Hi,
I recently realized that slider stopped working and there are not any js conflicts Can you see into this issue . Site url
elearning.sta.unipi.gr

I use the slider for random and featured courses. The configuration have not changed. Suddenly it just stopped working.

Thank you in advance
The topic has been locked.

Slider stopped working 10 years 4 months ago #7186

Nothing would stop working suddenly ;)
There must be something that effects it negatively. It can either be CSS or JS or you don't have enough products in the slider.

I just browsed your website. I am seeing you have only 3 products in the slider 1 and only 1 product in slider 2
Both slider is larger enough to get 4 products per view. It is normal if the "LEFT" or "RIGHT" arrow won't work. Because there is no extra products to slide.

Have at least 5 products in the slider, then it should start sliding to RIGHT, since there will be (at least) extra 1 more product(s).

Regards.
Last Edit: 10 years 4 months ago by Support.
The topic has been locked.

Slider stopped working 10 years 4 months ago #7190

Thank you for the reply. The number of products is not the issue (it used to slide even when 1 product was on the slider) but i checked with 5 products and yet no sliding. Can you look deeper into this if i give you access to the backend?
Thanks in advance.
The topic has been locked.

Slider stopped working 10 years 4 months ago #7204

Hi,

I think i know the problem. It is because you don't have the product picture. But this issue have been fixed long time ago. Looks like you still have the old version. But no problem

There are 2 ways to solve it. Follow any of them:

1- Upload at least one product picture to each products. (don't leave the product picture section blank). If the product doesn't have any picture, keep uploading "no image available" image, for instance; this one picture:
elearning.sta.unipi.gr/components/com_virtuemart/assets/images/vmgeneral/no_product_img.jpg

2- Open this PHP file:
mod_vm_flexible_fancy_slider/tmpl/theme.php

At the bottom of this page, make sure you have these lines (inside the "script" tag):
jQuery(function($) {
   $(window).load(function(){                            
       var images<?php echo $fancy_slider_id ?> = [<?php foreach ($products as $product) : ?>'<?php 
       if (empty($product->images[0]->file_url_thumb)) { 
           echo $url_to_module."images/loading.png"; 
       } else { 
           echo JURI::base().$product->images[0]->file_url_thumb; 
       } ?>',<?php endforeach; ?>];
                       ...........
                       ......... (it continues)

at the above lines, this line is very important (and missing in your copy);
if (empty($product->images[0]->file_url_thumb)) { 
      echo $url_to_module."images/loading.png"; 
} else { 
............

It means, if the product doesn't have any product picture, load a temporary picture there. You can even change that line with this:
if (empty($product->images[0]->file_url_thumb)) { 
      echo JURI::base()."components/com_virtuemart/assets/images/vmgeneral/no_product_img.jpg"; 
} else { 
...........

Regards.
Support.
Last Edit: 10 years 4 months ago by Support.
The topic has been locked.

Slider stopped working 10 years 4 months ago #7208

Thanks a lot for your support. For some reason the important line of code was commented out . Now it works! Thanks again.
The topic has been locked.

Slider stopped working 10 years 4 months ago #7244

Okay, i am glad we sorted out the problem

Case solved. Topic closed.

Regards,
Support.
The topic has been locked.
Time to create page: 0.339 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