Pass matched Delivery Price ID to basket Page
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
Pass matched Delivery Price ID to basket Page
I have created a product, which has three Delivery Options
I have added all possible prices for that option Delivery from Admin Panel;
Now, After user enters his location I am able to identify suitable delivery price and its ID (price added by me and ID is auto generated by aimeos)
I am accessing suitable price and its ID using ajax request;
But now how I can add this Delivery - price id to my catalog detail page ;so further it can be sent to basket page, where it will be added to total price of that basket item.
How I can add this Delivery's price id to b_prod[0][attrconfid][id][] array ?
will it work if I directly add that price id to this array ?
Help me to resolve this
- Delivery
- Shipping
- Pickup
I have added all possible prices for that option Delivery from Admin Panel;
Now, After user enters his location I am able to identify suitable delivery price and its ID (price added by me and ID is auto generated by aimeos)
I am accessing suitable price and its ID using ajax request;
But now how I can add this Delivery - price id to my catalog detail page ;so further it can be sent to basket page, where it will be added to total price of that basket item.
How I can add this Delivery's price id to b_prod[0][attrconfid][id][] array ?
will it work if I directly add that price id to this array ?
Help me to resolve this
- Attachments
-
- deliveryPriceVariants.png (84.05 KiB) Viewed 993 times
Re: Pass matched Delivery Price ID to basket Page
You can't pass the ID of the price you want to use to Aimeos because this would create a security problem as attackers can always pass the lowest price. Instead, you have to add one price per attribute or use the tier-pricing by passing the additional quantity for configurable attributes.
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