Способ доставки ИБП не отображается в magento 2


Я интегрировал XML-модуль доставки Magento UPS со всеми действующими учетными данными. Но то, что я вижу, это

Нет Доступных Способов доставки Я включил режим отладки, файл отладки находится ниже кода ошибки, который я получил, это

<AccessRequest xml:lang="en-US">
  <AccessLicenseNumber>MYACCESSKEY</AccessLicenseNumber>
  <UserId>****</UserId>
  <Password>****</Password>
</AccessRequest>
',
  'request' => '<?xml version="1.0"?>
<RatingServiceSelectionRequest xml:lang="en-US">
  <Request>
    <TransactionReference>
      <CustomerContext>Rating and Service</CustomerContext>
      <XpciVersion>1.0</XpciVersion>
    </TransactionReference>
    <RequestAction>Rate</RequestAction>
    <RequestOption>Shop</RequestOption>
  </Request>
  <PickupType>
          <Code>03</Code>
          <Description>Customer Counter</Description>
  </PickupType>

  <Shipment>      <Shipper>      <Address>
          <City> Pretoria</City>
          <PostalCode>0002</PostalCode>
          <CountryCode>ZA</CountryCode>
          <StateProvinceCode>72 Struben St, Pretoria Central, </StateProvinceCode>
      </Address>
    </Shipper>
    <ShipTo>
      <Address>
          <PostalCode>636009</PostalCode>
          <CountryCode>IN</CountryCode>
          <ResidentialAddress>01</ResidentialAddress>
          <StateProvinceCode></StateProvinceCode><ResidentialAddressIndicator>01</ResidentialAddressIndicator>      </Address>
    </ShipTo>


    <ShipFrom>
      <Address>
          <PostalCode>0002</PostalCode>
          <CountryCode>ZA</CountryCode>
          <StateProvinceCode>72 Struben St, Pretoria Central, </StateProvinceCode>
      </Address>
    </ShipFrom>

    <Package>
      <PackagingType><Code>00</Code></PackagingType>
      <PackageWeight>
         <UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement>
        <Weight>4</Weight>
      </PackageWeight>
    </Package>  </Shipment>
</RatingServiceSelectionRequest>',
  'result' => '<?xml version="1.0"?>
<RatingServiceSelectionResponse>
<Response><TransactionReference><CustomerContext>Rating and Service</CustomerContext><XpciVersion>1.0</XpciVersion>
</TransactionReference>
<ResponseStatusCode>0</ResponseStatusCode>
<ResponseStatusDescription>Failure</ResponseStatusDescription>
<Error>
<ErrorSeverity>Hard</ErrorSeverity>
<ErrorCode>111057</ErrorCode>
<ErrorDescription>This measurement system is not valid for the selected country or territory.</ErrorDescription></Error>
</Response>
</RatingServiceSelectionResponse>',
) {"is_exception":false} []
Author: Ramesh KR, 2019-02-28

1 answers

В соответствии с предоставленной вами ошибкой вы можете видеть, что используемые вами единицы измерения являются lbs. Для Индии вы не получите цены с этими ценами.

Вам нужно переключиться на kgs.

Вы можете переключить эту единицу веса с администратора.

Logged in to your Magento admin panel -> go to store -> configuration -> general section -> locale options -> over there you will see weight unit option -> select which you want to set.

Я надеюсь, что это поможет.

 1
Author: Bilal Usean, 2019-02-28 15:36:22