5

We have set up a shop with Magento 2.1.7, all products were imported via the Rest API and everything in the backend looks good. Prices are shown on parent and child products. But in the frontend the price from the configurable products is 0,00€ (grid and detail view), if we choose a variant like color and size the product price switches to the correct price. Does anyone have a idea where to look?

Reindex was already made.

Configurable Product enter image description here

Variant choosen enter image description here

Update: It seems that Magento will take a special price for rendering, but there is no special price for the product. See HTML

<span class="price-container price-final_price tax weee" itemprop="offers" itemscope itemtype="http://schema.org/Offer"> <span class="price-label">Sonderangebot</span> <span id="product-price-6822" data-price-amount="0" data-price-type="finalPrice" class="price-wrapper " itemprop="price" content="0"> <span class="price">0,00 €</span> </span> <meta itemprop="priceCurrency" content="EUR" /> </span> </span> <span class="old-price sly-old-price no-display"> <span class="price-container price-final_price tax weee"> <span class="price-label">Normalpreis</span> <span id="old-price-6822" data-price-amount="319.99" data-price type="oldPrice" class="price-wrapper "> <span class="price">319,99 €</span> </span> </span> </span> 
5
  • Tried to reindex the catalog_product? Commented Aug 3, 2017 at 18:39
  • 1. The config price 0.00 is default product price is 0.00 2. If you like to get the default value, then you need to update view.phtml and list.phtml 3. Instead of config price should apply associated product price (super attribute) in the price.phtml Please Provide me the source code I can help you Commented Aug 3, 2017 at 18:40
  • Thx Niko K Yes, reindex was made. rajiv in the backend the config price is correct. Commented Aug 3, 2017 at 18:47
  • We fixed it. The problem was, that the special price in the table 'catalog_product_entity_decimal' for the products was 0 instead of NULL. Changing it fixed the wrong display. Commented Aug 3, 2017 at 20:38
  • This worked for me in Magento 2.3.5-P1 - magento.stackexchange.com/a/321352/3906 Commented Sep 1, 2020 at 23:43

2 Answers 2

2

We fixed it. The problem was, that the special price in the table 'catalog_product_entity_decimal' for the products was 0 instead of NULL. Changing it fixed the wrong display.

0

In my case I've all the valid data, still it is showing $0.

I've fixed this below way.. Not sure is this correct/valid fix.

Followed the below link, and over ridden a file, this fixed $0 price for configurable products.. but still "As low as" label displaying

how magento getting configurable product lowest price of associated products?

Then I've updated final_price.phtml as per my requirement (removed "As low as" related code) from module-configurable-product module.

In Magento 1.x price related code executed from one phtml file, where as in M2 price from two files (different files for Simple and Configurable products).. I'm not sure is this a special feature of Magento 2.x

Hope this will helps some one...

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.