Post by belowcost » Thu Jan 16, 2020 2:49 am

I cant find slideshow.twig or banner.twig

in the THEM EDITOR sections of the Admin for OC 3.0.3

Looking to turn OFF the rotating image, or making it very long if OFF isnt an option.

Active Member

Posts

Joined
Mon Sep 26, 2011 1:54 am

Post by cyclops12 » Thu Jan 16, 2020 2:55 am

they are def there
extensions/modules

Expert Member

Posts

Joined
Sun Sep 27, 2015 1:10 am

Post by belowcost » Thu Jan 16, 2020 5:21 am

The module to turn it on and off is there where you state. I am talking about the TWIG to edit and change the timing or alter the module.

Active Member

Posts

Joined
Mon Sep 26, 2011 1:54 am

Post by sw!tch » Thu Jan 16, 2020 5:30 am

catalog/view/theme/default/template/extension/module/slideshow.twig

FWIW - File shows in the theme editor as well, so maybe some issue on your setup.

Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm

Post by belowcost » Thu Jan 16, 2020 5:58 am

found it, than kyou

i changed the timing to 9500, but it doesnt seem to change after saving it.

so i go back to edit it again, and under extension/module/slideshow.twig

the changes made revert back to 2500

i edit it again, click save, it says it saved, but when i go out and back in, the changes arent saved again.

and the home page slideshow doesnt change either


this is what I changed it to (i really want it static)

autoplay: 9500,

Active Member

Posts

Joined
Mon Sep 26, 2011 1:54 am

Post by sw!tch » Thu Jan 16, 2020 6:14 am

You are using the theme editor, correct?
You have to reload Design -> Theme Editor the changes should be under Theme History. If you are going back to the file again the changes won't show.

If that's not the issue my guess is mod_security blocking the request, because it has script tags or some other issue.
Last edited by sw!tch on Thu Jan 16, 2020 6:32 am, edited 1 time in total.

Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm

Post by by mona » Thu Jan 16, 2020 6:27 am

If you want a static image .. create a custom html and add it to
admin => layouts => home => content top (or wherever you want it) - the slideshow and the banner are very heavy ..

Alternatively I have two modules the first is extremely useful generally for both simple and complex additions to your site and the second will do what you want simply and responsively as well as simply adding various banners on specific pages.
https://www.opencart.com/index.php?rout ... n_id=33048
https://www.opencart.com/index.php?rout ... n_id=26852

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by belowcost » Fri Jan 17, 2020 3:46 am

I am using theme editor, making the changes, reload it, and the changes are there as you indicated in history. (I changed the timing to 9500)

But I reload the home page and the the rotation timing doesnt change to 9500, it is at the old default 2500


sw!tch wrote:
Thu Jan 16, 2020 6:14 am
You are using the theme editor, correct?
You have to reload Design -> Theme Editor the changes should be under Theme History. If you are going back to the file again the changes won't show.

If that's not the issue my guess is mod_security blocking the request, because it has script tags or some other issue.

Active Member

Posts

Joined
Mon Sep 26, 2011 1:54 am

Post by sw!tch » Fri Jan 17, 2020 3:54 am

Cleared your theme and SASS cache? Its in the dashboard small COG icon top right. You need to refresh your modification cache. Clear your browser cache as well.

Personally I would just override twig templates in your custom theme directory and not use that editor.. Your controller will inherit the template from your active theme directory. Easier to do this way.

Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm

Post by DarwinUK » Fri Apr 23, 2021 3:49 am

At the bottom of the slideshow twig file is this text:

<script type="text/javascript"><!--
$('#slideshow{{ module }}').swiper({
mode: 'horizontal',
slidesPerView: 1,
pagination: '.slideshow{{ module }}',
paginationClickable: true,
nextButton: '.slideshow .swiper-button-next',
prevButton: '.slideshow .swiper-button-prev',
spaceBetween: 30,
autoplay: 2500,
autoplayDisableOnInteraction: true,
loop: true
});
//--></script>



The last line loop:true
Change true to false so it reads loop:false
Then clear cache. That works. When you put the cursor over the image you still see the left/right arrows, and the black dot is permanently there. But of you dont mind those then this is a quick fix.

Newbie

Posts

Joined
Sat Jul 18, 2020 4:23 pm
Who is online

Users browsing this forum: Bing [Bot], ravikumar22, Semrush [Bot] and 83 guests