-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Table rate shipment is taken from wrong website ID when creating an order through the admin #16604
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
Comments
Hi @digikeijs. 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:
where @digikeijs do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
@magento-engcom-team give me 2.2.4 instance |
Hi @digikeijs. Thank you for your request. I'm working on Magento 2.2.4 instance for you |
Hi @digikeijs, here is your Magento instance. |
Hello @digikeijs, thank you for your report. |
Thanks a lot, if you have time can you please also look at below issue. Almost the same issue but then related to update qty but also using the wrong website id / store. |
We are having the same issue. Tracked it down to the requestShippingRates() method in \Quote\Model\Quote\Address.php: $request->setStoreId($this->storeManager->getStore()->getId()); Where storeManager is not set with the store that was selected when creating the order. I have tried to override this method but have run into endless issues doing so. Is there anyone that can provide some insight into overriding this method? |
Hi @digikeijs, Did you ever resolve this at all? |
Hi @CliftonWLS, Did you ever manage to succeed in overriding the method at all? |
@callumstar nope still waiting on the magento team to fix it. Do have a workaround but it sucks |
Hi @SAPontwerp, Are you able to share the workaround at all with me please? If it's something then I'd be happy to use it! |
Hi @SAPontwerp, did you have a workaround at all? I'm happy to use it no matter how hacky it is. |
@callumstar we do not have that much orders from the admin so we just enable a fixed shipping price when we add an order and turn it off again when done. |
@magento-engcom-team hi guys any idea when this gets fixed (along with maybe #18059 and #12889 and #16604 which are possible duplicates) ? |
Hi guys it has been another month. Can someone give an update? |
Hi guys. Looks like the issue has been fixed in the 2.2-develop branch. |
@oleksii-lisovyi does this mean that this fix will also (by default) be incorporated in 2.3 (and or 2.2.7) ? I'm not a developer so I dont know exactly how this works. |
@Rickertje, yes. Having any fix in the develop branch means, that it will be available in one of the next 2.2.x releases and could be ported into 2.3. |
I tested the fix I've mentioned previously - it works great. I'm closing the issue. |
@oleksii-lisovyi I have tried this in 2.2.7 but the problem is still there. Please reopen the issue. |
@Rickertje, the issue was not fixed in 2.2.7 (probably it will be fixed in the 2.2.8). But you can apply the fix right now by applying patch via vaimo/composer-patches. How to apply specific commit/PR from terminal: mv composer.phar /usr/local/bin/composer
cd path/to/magento2 && composer require vaimo/composer-patches:4.7.0
...
"extra": {
"magento-force": "override",
"patches": {
"magento/module-quote": {
"Fix issue getting rates while placing order from Admin panel": {
"source": "https://github.com/magento/magento2/commit/9c066ca1cc2f2db9e66575da25992ca9bb74f65a.patch",
"level": 5
}
}
}
},
...
composer install |
Anybody got this working on 2.3? When I want to install this patch I get
|
Hi, @digikeijs. The issue is fixed in the 2.3-develop in the commit cc00197. |
Well it's not fixed in 2.3 but found a solution already but will also check your info thanks |
@digikeijs, 2.3 is a stable version, but 2.3-develop is a development branch, than usually contains more fixes and improvements comparing to the branch of stable version. |
Sorry you are right, misread that :-) |
Same problem :-( Processing patches configuration
|
There is one more additional commit, that was done before that change. |
Sorry for all the questions, can you help me running multiple patches? Like this it does not work
|
No problem. Each patch must contain 1 source. So adding 2 patches for 1 module requires to have following structure: "extra": {
"magento-force": "override",
"patches": {
"magento/module-quote": {
"Fix issue getting rates while placing order from Admin panel - part 1": {
"source": "https://github.com/magento/magento2/commit/b35b68130265163f2ed151ff94e0d9f7fc63d44c.patch"
},
"Fix issue getting rates while placing order from Admin panel - part 2": {
"source": "https://github.com/magento/magento2/commit/cc00197d13d6244e32201e4c6bf00287e54747c5.patch"
}
} Please check on typos, because I'm writing from phone. |
Hi, @digikeijs. Did it help? Do you need a help? |
Thanks for the follow up. No already the first commit gives issues, most likely the content of the file is a bit different. But I like my workaround more, no more patch files, I just replace the files I want to have replaced during composer install. Saves a lot of hassel
|
Uh oh!
There was an error while loading. Please reload this page.
Summary of the issue
When I create an order through the admin panel and select my shipping method table rate it takes the shipping rate table from the wrong website ID.
Preconditions
magento 2.2.4, Linux, non sample data
Steps to reproduce
Expected result
Table rate prices are taken from the correct website id
Actual result
Shipment price is always taken from the table rate website id 1
The text was updated successfully, but these errors were encountered: