-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If alwaysSyncPlatformPricesOver = true, - product.special_price always 0 #2940
Comments
I belive this is the price that cames from Debugging starting point: |
🤔 the code that @Devors points to seems to be a mess. Let's break this
into few points....
My guess:
because it's the only case when the price was SOMEHOW lowered by some rule, but lowering the price is not caused by the |
@janmyszkier, @Devors this condition seems like a logic error. We probably should simplify to: if (product.priceInclTax >= product.originalPriceInclTax) {
product.specialPriceInclTax = 0
product.special_price = 0
} priceInclTax = final_price This condition means like: if the final price isn't lower than the original price - there is no Please test it and if it fixes the issue please provide us with a PR |
Fixed in the #3043 |
Current behavior
reset
product.special_price
in both casesExpected behavior
do not reset if
product.priceInclTax < product.originalPriceInclTax
Repository
https://github.com/DivanteLtd/vue-storefront/blob/v1.9.0/core/modules/catalog/helpers/index.ts#L158
Can you handle fixing this bug by yourself?
By removing
else
case?Which Release Cycle state this refers to? Info for developer.
Pick one option.
develop
branch and create Pull Request2. Feature / Improvement
back todevelop
.release
branch and create Pull Request3. Stabilisation fix
back torelease
.hotfix
ormaster
branch and create Pull Request4. Hotfix
back tohotfix
.The text was updated successfully, but these errors were encountered: