-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Configurable product with swatches, doesn't show tier pricing when clicking edit in cart OR when active swatch set with url hash #28270
Comments
Hi @pixiemediaweb. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
For more details, please, review the Magento Contributor Assistant documentation. Add a comment to Assigning an issue:
|
Hi @swathishs. Thank you for working on this issue.
|
@magento give me 2.4-develop instance |
Hi @swathishs. Thank you for your request. I'm working on Magento 2.4-develop instance for you |
Hi @swathishs, here is your Magento instance. |
@magento give me 2.4-develop instance |
Hi @swathishs. Thank you for your request. I'm working on Magento 2.4-develop instance for you |
@pixiemediaweb: I have created a configurable product with color swatch options and tried to pre-set the value. But couldn't able to select the red option in my scenario. Please find the attachment below for reference Could you give some more information on how to pre-set the #attribute_id=value_id |
Hi @pixiemediaweb |
@swathishs - you need to use the attribute ID and value ID in the hash. It will look something like #123=56 where 123 is the attribute ID for colour and 56 is the value for red |
I cant reopen it because you closed it. I provided the complete cause and the solution in my original post, can you reopen please |
@pixiemediaweb : Could you please provide extra steps to reproduce the issue and it will be helpful if you put the screenshot |
Hi @swathishs - no problem, might be easier if you could resurrect a demo instance with a configurable swatch product so I can show you how M2 natively supports pre-selecting of configurable options by their option and value IDs |
@magento give me 2.4-develop instance |
Hi @swathishs. Thank you for your request. I'm working on Magento 2.4-develop instance for you |
Hi @swathishs, here is your Magento instance. |
Hi @pixiemediaweb . Thanks for collaboration. This PR was reviewed on Community Contribution Triage meeting. The recording of the meeting you can look by the link |
Hi @pixiemediaweb. Thank you for your report.
The fix will be available with the upcoming 2.4.1 release. |
Preconditions (*)
Steps to reproduce (*)
Expected result (*)
Actual result (*)
Solution (*)
The issue lies in file;
/vendor/magento/module-swatches/view/base/web/js/swatch-renderer.js
The function _UpdatePrice: function () { has a dependency on if this.options.tierPriceTemplate being defined on hashed options being set on load, which it isnt.
Here's the change to ensure it gets defined;
Before:
After;
Additional information
more detailed steps and screens #28270 (Comment)
The text was updated successfully, but these errors were encountered: