[SOLVED] Bring Price added to attribute option 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!
-
- Posts: 40
- Joined: 02 Dec 2021, 17:18
[SOLVED] Bring Price added to attribute option using ajax
I have created a attribute (eg: flavour) then I have added options to it in backend
Here I have added price for each options from backend; like
Help me to call ajax with proper urls and parameters to be send to it;
TIA
- Orange
- Mango
- Choco
Here I have added price for each options from backend; like
- Orange - $5
- Mango - $6
- Choco - $7
Help me to call ajax with proper urls and parameters to be send to it;
TIA
Last edited by kartikbhat on 24 Jun 2022, 12:23, edited 1 time in total.
Re: Bring Price added to attribute option using ajax
If you need to calculate the total price of the product including all selected options before it's added to the basket, you need to sum up the attribute prices using a few lines of custom JS code. The Aimeos JSON API won't give you that value until the article is added to the basket.
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