Magento2: Table rate shipment is taken from wrong website ID when creating an order through the admin

Created on 6 Jul 2018  路  32Comments  路  Source: magento/magento2

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

  1. Setup multistore
  2. Setup different table rates per website
  3. Then through the admin create a new order for the second website/store
  4. Select your shipping method and the price will be taken from the first website / store (id1)

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