You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 28, 2023. It is now read-only.
if(product.final_price<product.price){// compare the prices with the product final price if provided; final prices is used in case of active catalog promo rules for example
if(product.final_price<product.special_price){// for VS - special_price is any price lowered than regular price (`price`); in Magento there is a separate mechanism for setting the `special_prices`
106
-
assignPrice({product,target: 'price',price: product.special_price, deprecatedPriceFieldsSupport})// if the `final_price` is lower than the original `special_price` - it means some catalog rules were applied over it
if(product.special_price&&product.final_price<product.special_price){// for VS - special_price is any price lowered than regular price (`price`); in Magento there is a separate mechanism for setting the `special_prices`
106
+
assignPrice({product,target: 'price', ...specialPriceWithTax, deprecatedPriceFieldsSupport})// if the `final_price` is lower than the original `special_price` - it means some catalog rules were applied over it
0 commit comments