Post by alikhan99 » Mon Jan 01, 2018 5:56 am

Version 3.0.2.0

The default modules like slideshow, banner & carousel when rendered, they come along with there own script tag with some properties assigned to them. In case we have more then 1 slideshow or banner on a single page or even on different pages, there can be situations where we would like to change few of the initial values, specially the speed. Maybe for home page we want slower slides and on product page some other banner to have faster speed or maybe we want to have different value for the variable `autoplayDisableOnInteraction` on different pages. Changing the speed in the banner.twig will effect all the banners on the site. Question is if we can somehow have the ability to manage them.

Active Member

Posts

Joined
Fri Jun 29, 2012 4:57 pm

Post by hpwebdesign » Fri Jan 28, 2022 10:41 am

You need to edit these files to provide dynamic variables that can be saved and used as slideshow settings.

admin/view/template/extension/module/slideshow.twig
admin/controller/extension/module/slideshow.php
catalog/view/theme/default/template/extension/module/slideshow.twig
catalog/controller/extension/module/slideshow.php

Maybe you need a professional opencart developer to do it

HP Web Design
http://hpwebdesign.io
Opencart Extension Development | OpenCart Professional Services | OpenCart Tutorials


User avatar
New member

Posts

Joined
Wed Aug 15, 2018 6:58 am
Location - Yogyakarta

Post by belowcost » Thu Jun 30, 2022 10:29 pm

What other options are there that can be changed in TWIG for Homepageslideshow? (slideshow)

The below is what is shown, but besides the obvious, what actually works as far as MODE settings?

I tried VERTICAL and FADE and neither worked

Changing the amount of time to 4500 worked.

mode: 'horizontal',
slidesPerView: 1,
pagination: '.slideshow{{ module }}',
paginationClickable: true,
nextButton: '.swiper-button-next',
prevButton: '.swiper-button-prev',
spaceBetween: 30,
autoplay: 4500,
autoplayDisableOnInteraction: true,
loop: true

Active Member

Posts

Joined
Mon Sep 26, 2011 1:54 am
Who is online

Users browsing this forum: integraa and 267 guests