magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.48k stars 9.29k forks source link

Configurable product don't change Price and Image based on Simple available #18214

Closed Raffoss closed 5 years ago

Raffoss commented 5 years ago

Preconditions

magento 2.2.4 (dev test upgrade) or magento 2.1.3(our actualy prod. )

Steps to reproduce

Configurable product with configurable variations attribute: Color and size

Color: Red and green

size: small and large

4 simple sku:

sku0001 : Red Small T-shirt : Set Price 10€ : Qnt 10

sku0002 : Red Large T-shirt : Set Price 20€ : Qnt 10

sku0003 : Green Small T-shirt : Set Price 15€ : Qnt 10

sku0004 : Green Large T-shirt: Set Price 20€ : Qnt 10

We import all the configuration by csv import and we setup the configurable image and price with 2 rules:

configurable image: the image of the simple product with the lower sku number

configurable price: the cheapest simple price

In this example, the configurable have red t-shirt image and red t-shirt small price(10€)

To simplify the UX to our surfer, we disable simple product with our ERP integration when quantity is 0. So If the Red t-shirt goes out of stock like this:

sku0001 : Red Small T-shirt : Set Price 10€ : Qnt 0

sku0002 : Red Large T-shirt : Set Price 20€ : Qnt 0

sku0003 : Green Small T-shirt : Set Price 15€ : Qnt 10

sku0004 : Green Large T-shirt: Set Price 20€ : Qnt 10

Expected result

The configurable change image and price based on configuration available. In this case green image with sku0003 price.

Actual result

The configurable maintain red t-shirt image and red small t-shirt price.

Magento give some configuration to make it easy?

I hope you can help us

Raffaello

magento-engcom-team commented 5 years ago

Hi @Raffoss. Thank you for your report. To help us process this issue please make sure that you provided the following information:

Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:

@magento-engcom-team give me $VERSION instance

where $VERSION is version tags (starting from 2.2.0+) or develop branches (for example: 2.3-develop). For more details, please, review the Magento Contributor Assistant documentation.

@Raffoss do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?

magento-engcom-team commented 5 years ago

Hi @engcom-backlog-nazar. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:

ghost commented 5 years ago

Hi @Raffoss thank your for you report, but if you set to Set Display Out of Stock Products to "no" they must be not displayed the products of qty 0.

Raffoss commented 5 years ago

Hi @engcom-backlog-nazar, thanks for your support! Simple product with qty 0 they are disabled and not displayed correctly, but the configurable maintain the value of the simple product disabled.

ghost commented 5 years ago

@Raffoss Seems like this bug is acknowledged please see ->https://github.com/magento/magento2/issues/16069

ghost commented 5 years ago

@Raffoss This issue is duplicate for this -> https://github.com/magento/magento2/issues/12578 This issue has already fixed in 2.3-develop branch.