Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2224 Переглядів

Hello dear community,


For a particular project, I try to make a condition on the Ecommerce items (on the product page) so that:
If the quantity is greater than 0, we indicate a delivery time of 24h, if it is equal to 0, we indicate 6 to 12 days of delivery.

I can easily add a field and a condition like:
t-if="product_variant.qty_available>0"

This works perfectly for items without variants.
But when I have a variant, the value product_variant.qty_available remains the same when I change the model (it takes the value of the first opened variant).

Is there a way to refresh this value when a customer chooses for example a different size/color of the same item? Any help on the technique would be appreciated.

Аватар
Відмінити

Did you find a solution for this? We have a similar case and are still struggling.

Автор

Hi Stephan, no we discussed with the customer and dropped this requirement. It was on v15, I should have a look if v16 brings some changes

Related Posts Відповіді Переглядів Дія
1
лип. 25
592
1
серп. 24
1634
1
трав. 25
1925
2
квіт. 24
1450
0
серп. 25
1618