how to add item to cart using ajax?
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!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
- parmonov98
- Posts: 33
- Joined: 24 Sep 2020, 12:12
how to add item to cart using ajax?
how to add item to cart using ajax?
I enabled basket-add in config. it works but I need customers to be able add items to cart without going to basket after click add to cart btn.
How can I do that? Once, I read about cline-jsonapi. is that what I need? if yes, please point me again!
https://imgur.com/CLxmcuM
I enabled basket-add in config. it works but I need customers to be able add items to cart without going to basket after click add to cart btn.
How can I do that? Once, I read about cline-jsonapi. is that what I need? if yes, please point me again!
https://imgur.com/CLxmcuM
Re: how to add item to cart using ajax?
You can use the JSON API but the easier solution is to use jQuery to display an overlay for the basket.
This is already implemented and works as long as you've not changed the CSS selectors:
https://github.com/aimeos/ai-client-htm ... 1279-L1290
This is already implemented and works as long as you've not changed the CSS selectors:
https://github.com/aimeos/ai-client-htm ... 1279-L1290
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
- parmonov98
- Posts: 33
- Joined: 24 Sep 2020, 12:12
Re: how to add item to cart using ajax?
I'm not willing to use your css and other themes. I'm developing it with my own layouts/templates.