Pass matched Delivery Price ID to basket Page

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

Pass matched Delivery Price ID to basket Page

Post by kartikbhat » 01 Jul 2022, 08:11

I have created a product, which has three Delivery Options
  • Delivery
  • Shipping
  • Pickup
For Delivery option among these ,It has various prices based on Location of the Customer
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
deliveryPriceVariants.png (84.05 KiB) Viewed 993 times

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

Re: Pass matched Delivery Price ID to basket Page

Post by aimeos » 04 Jul 2022, 11:39

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

Post Reply