want to add owl slider

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
User avatar
mahammadareef
Posts: 54
Joined: 14 Oct 2022, 11:54

want to add owl slider

Post by mahammadareef » 28 Dec 2022, 06:11

i want to use the owl slider in aimeos but it works on jquery ,,, how i can add and use it in my aimeos application without affecting the existing code ....

User avatar
aimeos
Administrator
Posts: 7926
Joined: 01 Jan 1970, 00:00

Re: want to add owl slider

Post by aimeos » 28 Dec 2022, 21:11

It's recommended to use the already available SwiffySlider instead because
- It's much faster and offers much better Lighthouse results
- It doesn't depend on jQuery which has been removed in Aimeos (cash-dom is used as modern replacement again)

If you want to use the OWL slider nevertheless, you should create a new Aimeos theme and add jQuery and OWL code while removing cash-dom.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
mahammadareef
Posts: 54
Joined: 14 Oct 2022, 11:54

Re: want to add owl slider

Post by mahammadareef » 29 Dec 2022, 09:22

I would like to know

1. file path of the cash-dom library in aimeos
2. if I remove the cash-dom library and replace it with jquery is my existing javascript file will work fine ......example: account-favorite.js
3. the steps to replace aimeos cash-dom and replace it with jquery in the easiest and safe way

User avatar
aimeos
Administrator
Posts: 7926
Joined: 01 Jan 1970, 00:00

Re: want to add owl slider

Post by aimeos » 30 Dec 2022, 19:16

This is the cash-dom code:
https://github.com/aimeos/ai-client-htm ... .js#L1-L42

The rest of the code should work if your replace it with jQuery again in a new theme.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply