We are on magento 2.2.4 and we have a problem with the configurable products.
How to replicate our logic:
Configurable product: T-shirt
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
The configurable maintain red t-shirt image and red small t-shirt price, but we want to change it green t-shirt image with green small t-shirt price.
Magento give some configuration to make it easy?
I hope you can help us
Raffaello
Hello @djraffo
As i thought you are working for this by programatically.
If yes then before entering to condition you can check that product having qty 0 will not get in the condition.
If you are working this in other way please provide some more details, how you are checking the condition.
Hope it will work for you.
Problem solved? Click Kudos & Accept as Solution!
Hi @nisha_jangid,
we had put the rules on the job that extract the magento import structure csv from our PIM. After that, we import the data in Magento, and we manage the availability by using the ERP integration.
We import csv product file once a week, but the availability changes every minute.
I hope you can help us
Raffaello