Author Topic: Slowing down main banner rotation  (Read 3611 times)

Offline user88

  • Jr. Member
  • **
  • Posts: 96
  • Karma: +16/-0
    • View Profile
    • Visit my website
Slowing down main banner rotation
« 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.

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4358
  • Karma: +298/-10
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: Slowing down main banner rotation
« Reply #1 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
Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help

Offline user88

  • Jr. Member
  • **
  • Posts: 96
  • Karma: +16/-0
    • View Profile
    • Visit my website
Re: Slowing down main banner rotation
« Reply #2 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

Offline yonghan79

  • Jr. Member
  • **
  • Posts: 56
  • Karma: +17/-0
    • View Profile
Re: Slowing down main banner rotation
« Reply #3 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.


Offline user88

  • Jr. Member
  • **
  • Posts: 96
  • Karma: +16/-0
    • View Profile
    • Visit my website
Re: Slowing down main banner rotation
« Reply #4 on: May 26, 2018, 05:10:05 PM »
It worked. Thank you.

 

Powered by SMFPacks Social Login Mod