Skip to content

requestShippingRates: set quote ID as given by the store manager #18174

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

Closed
wants to merge 1 commit into from

Conversation

jhruehl
Copy link
Contributor

@jhruehl jhruehl commented Sep 21, 2018

requestShippingRates: set quote ID as given by the store manager and not as given by the order itself

Description

Because of the issue #12889 this particalur line was added as a "fix", setting the store id for the quote as given by the quote object itself.
This lead to the standard shipping method's name shown in the cart view totals and shipping rate listing in the checkout to be shown as given by the store view, where the last product was added.

Fixed Issues (if relevant)

This change should still solve the problem described in the issue #12889 and don't mess up the labeling of the shipping rates shown in checkout for websites with multilanguage store views.

Manual testing scenarios

Can be reproduce, if at least two store views, each with a different language and language specific naming of shipping rates, for one website are given. Add a product in one store view, switch to another language and go the checkout/cart view page.

Contribution checklist

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)

…not as given by the order itself

Because of the issue #12889 this particalur line was added as a "fix", setting the store id for the quote as given by the quote object itself.
This lead to the standard shipping method's name shown in the cart view totals and shipping rate listing in the checkout to be shown as given by the store view, where the last product was added.
Can be reproduce, if at least two store views, each with a different language and languae specific naming of shipping rates, for one website are given. Add a product in one store view, switch to another language and go the cart view.

This change should still solve the problem described in the issue #12889 and don't mess up the labeling of the shipping rates shown in checkout for websites with multilanguage store views.
@magento-engcom-team
Copy link
Contributor

Hi @jhruehl

Unfortunately, we cannot accept Pull Requests from branches created in magento2 repository.
Please use your own fork as a base for this Pull Request.

Thank you.

@magento-engcom-team
Copy link
Contributor

Hi @jhruehl. Thank you for your contribution
Here is some useful tips how you can test your changes using Magento test environment.
Add the comment under your pull request to deploy test or vanilla Magento instance:

  • @magento-engcom-team give me test instance - deploy test instance based on PR changes
  • @magento-engcom-team give me $VERSION instance - deploy vanilla Magento instance

For more details, please, review the Magento Contributor Assistant documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants