AbanteCart Community

eCommerce construction => How-to questions => Topic started by: user88 on May 20, 2018, 06:01:45 PM

Title: Slowing down main banner rotation
Post by: user88 on May 20, 2018, 06:01:45 PM
Hi again,

I'm polishing the last details for my store and find myself very happy with Abantecart. I have tried all kind of softwares and had nothing by headaches with them. Abantecart has proved itself the most inclusive of all. Thanks.

The question I have is:

How do I slow down the rotation of the main banner?

Thanks for your help.
Title: Re: Slowing down main banner rotation
Post by: abantecart on May 21, 2018, 06:44:36 AM
Thank you for your feedback. Feel free to write a review about your experience.

To your question.
You can increase the "slideShowDelay" setting on the javascript in the file below
storefront/view/default/javascript/custom.js

Clear your browser cache to see the effect take place.

Here is the link to the file and the line.
https://github.com/abantecart/abantecart-src/blob/8087c4b44dac8f633f083e0fe28089d0cb68a9d6/public_html/storefront/view/default/javascript/custom.js#L8
Title: Re: Slowing down main banner rotation
Post by: user88 on May 22, 2018, 05:31:44 PM
Thanks, I tried that solution but it didn't work for me because under 'banner manager' I have the choice 'flex_slider_banner_block.tpl' selected.

If I change that selection to 'one_by_one_slider_banner.tpl' then it works.... but my problem is that when I make this selection, my banners do not display right. They get sent to the upper left corner, misaligned from the blue background.

The flex slider banner works nicely for me since it doesn't place a background color and enlarges the banner to full size.

I tried looking at this file code, but couldn't figure out where it sets the delay.

Any thoughts or solutions?

Thanks
Title: Re: Slowing down main banner rotation
Post by: yonghan79 on May 22, 2018, 09:32:43 PM
Hi, try to add this code ' ,slideshowSpeed: "10000" ' on line 147 in your /storefront/view/default/javascript/custom.js. I can't paste a code so i wrap it with ''. Change 10000 with your desired time. Fyi, the default value is 7000. Hope it helps.

Title: Re: Slowing down main banner rotation
Post by: user88 on May 26, 2018, 05:10:05 PM
It worked. Thank you.