-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Magento 2 reorder function not working properly #6121
Comments
Please assign and act on this on priority. This looks like a major functional issue. |
Thank you for reporting the issue. It is reported as Thanks, |
Experiencing the same issue here on Magento 2.1. |
The issue is resolved and will be available in 2.1.2 patch version. |
Hey @katmoon, Is there a commit or work around we can use until the next release? |
Hi @brideo The fix will be available with the next non-security patch release. |
I don't have access to the official patch, but I can share the workaround we use. The Workaround require([
'jquery',
'Magento_Customer/js/section-config',
'Magento_Customer/js/customer-data',
'domReady!'
], function ($, sectionConfig, customerData) {
'use strict';
/**
* Elements - Reorder links
*/
var s = [
'.sales-order-view .order-actions-toolbar .actions .reorder', // sales-order-view
'.sales-order-history .table-order-items .actions .order', // sales-order-history
'.customer-account-index .table-order-items .actions .order', // customer-account-index
];
/**
* Events listener
*/
$(s.join(', ')).on('click', function(event) {
var sections;
// anchor contains span, target may be span instead of anchor
var el = event.target.href ? event.target : event.target.parentElement;
// check if this is really a redirect link
if (el.href.match(/reorder/i)) {
sections = sectionConfig.getAffectedSections(el.href);
if (sections) {
customerData.invalidate(sections);
}
}
});
}); Please note that the official unreleased fix is likely very different from the workaround above. It probably changes the request method from |
Brilliant thanks @sshymko! I will make a note to remove it when the next version of Magento is released. |
This issue was fixed in 2.1.2. 2.0.10 and develop branch. |
@veloraven can you please bring us a link to the commit where this issue was fixed in 2.1 branch? |
@veloraven @katmoon I'm still experiencing this on 2.1.5. I'm guessing that the previous (bad) vendor who made this site overwrote something, so the problem still exists.. |
Issue still exists on magento 2.1.8, old prices not updating when reordering... |
Similar issue here #30663 |
Preconditions
Steps to reproduce
Expected result
Screenshots
3, Link to demo store
The text was updated successfully, but these errors were encountered: