hi,
could u tell me how to make the current carousel to be on an infinite autoscroll?
thanks in advance.
|
|
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
|
|
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
|
|
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.
|
|
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
|
|
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
|
|
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.
|
|
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
|
|