how to make the carousel INFINITE AUTOSCROLL

ThemeBurn SupportForumsOpenCart ThemesShoppica 2 OpenCart Themehow to make the carousel INFINITE AUTOSCROLL

This topic has been marked as not resolved.

hi,
could u tell me how to make the current carousel to be on an infinite autoscroll?
thanks in advance.

 nakeda
September 15, 2012 at 10:38 pm #13457

You can open catalog\view\theme\shoppica2\template\module\carousel.tpl. Find scroll: <?php echo $scroll; ?>, and add wrap: 'circular', after it.

Regards,
ThemeBurn team

September 25, 2012 at 10:29 am #13618

umm .. this wrap code is broken according to the jcarousel founder https://github.com/jsor/jcarousel/issues/370
when i input the wrap: ‘circular’, once i reach to the last image, it goes into empty white spaces and all the image is gone.
need to find another way to make it work

 nakeda
September 25, 2012 at 12:23 pm #13632

So,
it seems the plugin is broken. I saw there is a temporary solution in one of the comments in the thread you have shared – https://github.com/jsor/jcarousel/issues/370#issuecomment-5552071

You could try it.

September 25, 2012 at 12:36 pm #13636

yea i saw that post too … now how should i modify that code to make it work for mine?
im not expert on this jcarousel thingy

 nakeda
September 25, 2012 at 12:41 pm #13639

Just add this after scroll: <?php echo $scroll; ?>,:

    itemLoadCallback: {
        onBeforeAnimation: function(carousel, state){
            var w = 0;
            var margin_between_items = 10;
            jQuery('#selector li').each(function(i, el){
                w += parseInt(jQuery(el).width() + margin_between_items);
            });
            jQuery('#selector').css('width', w);
        }           
    }

We haven’t tested it though.

Regards,
ThemeBurn team

September 26, 2012 at 4:34 pm #13718

the code doesnt work … i tried it and it make my carousel turn to vertical position and the arrow are gone and it doesnt move … just stay there static.

 nakeda
September 27, 2012 at 12:21 am #13741

Then, currently it is not possible to make the autoscroll infinite. Let’s hope this plugin will be replaced with a more recent one in the next opencart releases.

Regards,
ThemeBurn team

October 1, 2012 at 11:31 am #13827

ok, ty for trying

 nakeda
October 1, 2012 at 11:54 am #13833
Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.