[SOLVED] Bring Price added to attribute option using ajax

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!
Posts: 20
Joined: 02 Dec 2021, 17:18

[SOLVED] Bring Price added to attribute option using ajax

Post by kartikbhat » 23 Jun 2022, 07:34

I have created a attribute (eg: flavour) then I have added options to it in backend
  • Orange
  • Mango
  • Choco
created dropdown for this options on my frontend

Here I have added price for each options from backend; like
  • Orange - $5
  • Mango - $6
  • Choco - $7
Now I need to bring price of specific option on select of it from dropdown using AJAX;

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.

User avatar
Posts: 6319
Joined: 01 Jan 1970, 00:00

Re: Bring Price added to attribute option using ajax

Post by aimeos » 24 Jun 2022, 11:52

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, Image give us a star

Post Reply