magento-configurable-simple icon indicating copy to clipboard operation
magento-configurable-simple copied to clipboard

Configurable Product price being added to cart instead of the related simple product.

Open orioldelos opened this issue 8 years ago • 2 comments

I have installed 0.7.4 (stable) of the SCP module on magento 1.9.2.1.

After some corrections to have the indexing of prices work, it now all seems to work correctly except of one very crucial issue:

  • When I select the attributes and get the associated simple product price and then add it to the cart, the price displayed in the cart is the configurable product price and not the price of the simple product associated to the attribute combination. In short ... the cart, although displaying the correct simple product name, displays the configurable product price.

I would appreciate some help in figuring out what is wrong

Thanks

orioldelos avatar Mar 07 '16 18:03 orioldelos

More information about the problem: The behaviour is different depending on the purchasing path... if I click on the purchase now button in the product detail page, the associated simple product is added to the cart, but if instead I pres the add to cart button, then the configurable product is added to the cart instead regardless of the attributes selected.

Two comments on this:

  1. I understand it should always add to the cart the simple product associated to the attributes selected.
  2. Even though I have configured SCP to always use the configurable product image, when it adds the simple product by pressing the purchase now button, it displays the simple product image instead of the configurable product image (which in my case is a problem because I have no images linked to the simple products)

Need helo

orioldelos avatar Mar 07 '16 19:03 orioldelos

We had a similar problem, even though ours is on a modified version of OIs SCP.

Still, we found a solution in this SO by Elavarasan: https://magento.stackexchange.com/questions/19108/magento-configurable-product-price-overriding-simple-product-price/68789#68789

The solution from Alan (and therefore the one from Zeeshan, who just converted it to use an observer instead of overriding core files: https://magento.stackexchange.com/questions/19108/magento-configurable-product-price-overriding-simple-product-price/33404#33404) did only work for some of our products, while it wouldn't work on others. For those it didn't work, it would add the price difference twice after putting it into the cart, e.g. if your cheapest associated simple product costs 10 and the next configuration option adds +5, the final price in the cart would be 20, instead of 15.

The solution of Elavarasan covered all of our products prices, and it's less intrusive as well, since it only jumps in when products are put into the quote but otherwise leaves the price calculation alone.

branb avatar Jul 18 '17 13:07 branb