how to add jquery and bootstrap to aimeos

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

how to add jquery and bootstrap to aimeos

Post by mahammadareef » 19 Oct 2022, 11:56

I want to redesign the header and footer parts of the aimeos site by using bootstrap CSS and jquery library, and also don't want this code to affect the remaining parts of the templates like basket standard body, shop page content, profile page content, etc. how can I achieve this ... explain this in easy steps, please...

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

Re: how to add jquery and bootstrap to aimeos

Post by aimeos » 20 Oct 2022, 15:25

Bootstrap is already part of the Aimeos theme:
https://github.com/aimeos/ai-client-htm ... lt/app.css

Also, Aimeos uses a jQuery compatible library named cash-dom, which offers the same API methods if modern browsers doesn't provide a better alternative:
- https://github.com/fabiospampinato/cash
- https://github.com/aimeos/ai-client-htm ... ult/app.js
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: how to add jquery and bootstrap to aimeos

Post by mahammadareef » 26 Oct 2022, 09:35

when i tried adding jquery there is error in aimeos.js file of my theme extension , in this code block

/**
* Initializes offscreen menus
*/
setupOffscreen() {

$('.zeynep').each((idx, el) => {
$(el).zeynep({});
})
},

for error check the attactchment
Attachments
Untitled.jpg
Untitled.jpg (218.65 KiB) Viewed 1134 times

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

Re: how to add jquery and bootstrap to aimeos

Post by aimeos » 27 Oct 2022, 14:48

We don't recommend to use jQuery at all because we are using cash-dom as modern replacement.
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: how to add jquery and bootstrap to aimeos

Post by mahammadareef » 08 Nov 2022, 10:39

I am finding difficulty in integrating slick slider BCS slick slider requires jquery, and not only this almost packages need jquery ,,and cash dom comes with very less functionalities,is there any safe way we can add jquery without affecting the code ..

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

Re: how to add jquery and bootstrap to aimeos

Post by aimeos » 08 Nov 2022, 18:58

Only if you create your own theme.

Using the default theme, SwiffySlider is used instead:
https://swiffyslider.com/
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: how to add jquery and bootstrap to aimeos

Post by mahammadareef » 09 Nov 2022, 05:28

yes in new theme i wan to add jquery

Post Reply