isotope / core

Core repository of Isotope eCommerce, an eCommerce extension for Contao Open Source CMS
https://isotopeecommerce.org
136 stars 107 forks source link

editing a cart item does not show correct variant price #2049

Open fritzmg opened 5 years ago

fritzmg commented 5 years ago

I noticed the following today:

When changing the color and size in the frontend for a product of that product type, the correct price is shown in the product reader.

However when editing a cart item for that product, the product reader shows the correct attribute selection - but it does not show the correct price. It only shows the base price. During debugging I noticed, that the array returned by $objProduct->getOptions() only returns the color attribute option. It is missing the chosen size option for the collection item.

aschempp commented 5 years ago

The attribute size alters the base price of the product (i.e. "bigger" products cost more).

So size is a variant attribute as well, right? Or how does it change the "base price"?

fritzmg commented 5 years ago

So size is a variant attribute as well, right? Or how does it change the "base price"?

It uses the price option of the attribute ("Preisaufschläge oder -abschläge").