-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Wrong initialization sequence in mage.priceBox widget (price-box.js) #6117
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
Labels
bug report
Component: Tax
Issue: Ready for Work
Gate 4. Acknowledged. Issue is added to backlog and ready for development
Comments
@yariksheptykin thank you for your report. |
2.1.0 |
Changing:
to
Fixes the problem. |
@yariksheptykin |
Awesome! You want me to fix and do a PR? |
mmansoor-magento
pushed a commit
that referenced
this issue
Sep 7, 2016
….priceBox widget (price-box.js) #6117 FOR 2.2
mmansoor-magento
pushed a commit
that referenced
this issue
Sep 7, 2016
….priceBox widget (price-box.js) #6117 FOR 2.2 - code style fix
mmansoor-magento
pushed a commit
that referenced
this issue
Sep 7, 2016
….priceBox widget (price-box.js) #6117 FOR 2.2
mmansoor-magento
pushed a commit
that referenced
this issue
Sep 7, 2016
….priceBox widget (price-box.js) #6117 FOR 2.2
okorshenko
pushed a commit
that referenced
this issue
Dec 14, 2016
Fixed issues: MAGETWO-57136: [GitHub] Wrong initialization sequence in mage.priceBox widget (price-box.js) #6117 MAGETWO-57062: [Backport] - Issues with minicart in multiwebsite - for 2.1 MAGETWO-55184: [GitHub #5526]Selected category is not added to Cart Price Rule condition due to JS error MAGETWO-57168: CLONE - [GitHub]JavaScript Error on Checkout Page after Changing Country in Estimate Shipping and Tax Block MAGETWO-57843: [Backport] - [Github # 6294] Coupon code override cart rules with no coupon code - for 2.1 MAGETWO-57512: [Backport] - Giftcard Purchase - Order Status - Processing - for 2.1
@yariksheptykin, Closing this issue as it has been fixed under MAGETWO-57136 for 2.1.3. |
Awesome. Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug report
Component: Tax
Issue: Ready for Work
Gate 4. Acknowledged. Issue is added to backlog and ready for development
During initialization of priceBox the following code is executed:
However
_setDefaultsFromPriceConfig
relies onthis.options.productId
. This value is set insetDefaultsFromDataSet
here.Current sequence of function calls leaves
this.options.productId
always empty inthis._setDefaultsFromPriceConfig()
.I stumbled upon this issue while trying to add a custom price type and configuring priceBox to render it. With the current sequence of calls priceBox seem to ignore the configuration of the price types.
Preconditions
No pre-conditions. Just debug the function using browser developer tools.
Steps to reproduce
Expected result
Actual result
The text was updated successfully, but these errors were encountered: