I am using the SCP extension so that prices are taken from the simple product and not the configurable.
I am using url approach to add product in the cart
checkout/cart/add?product=10940&qty=1&super_attribute[134]=22
This url adds product into cart but price is taken from first associated product only. same price is rendered in all associated products.
Best Answer
Can you try below code ?
Main thing about adding configurable product to cart is what data/options are passed to
super_attribute
.For more information please check this out.
Hope this helps.