1

我正在尝试在沙盒环境中AddItem使用请求中定义从发货中排除的国家/地区列表。ExcludeShipToLocation请求通过,项目已列出,但在运输选项中看不到国家/地区的排除项。

我试过

<ShipToRegistrationCountry>true</ShipToRegistrationCountry>

<ExcludeShipToLocation>[two letter country code]</ExcludeShipToLocation>

正如文档中指出的那样。

4

1 回答 1

3

从您的代码中,我无论如何都看不到您使用的哪个字段,我可以告诉您运输系统的简单规则是什么。您必须选择运送地点 -> ShipToLocation

并设置类似 ShipToLocation -> EuropeanUnion

现在通过使用 ExcludeShipToLocation 将世界其他地区设置为您不想发货的欧洲任何一个地方,例如:

$extra_exclude = "<ExcludeShipToLocation>Asia</ExcludeShipToLocation>";
$extra_exclude .= "<ExcludeShipToLocation>Central America and Caribbean</ExcludeShipToLocation>";
$extra_exclude .= "<ExcludeShipToLocation>Middle East</ExcludeShipToLocation>";
$extra_exclude .= "<ExcludeShipToLocation>North America</ExcludeShipToLocation>";
$extra_exclude .= "<ExcludeShipToLocation>Oceania</ExcludeShipToLocation>";
$extra_exclude .= "<ExcludeShipToLocation>Southeast Asia</ExcludeShipToLocation>";
$extra_exclude .= "<ExcludeShipToLocation>South America</ExcludeShipToLocation>";
$extra_exclude .= "<ExcludeShipToLocation>AL</ExcludeShipToLocation>";
$extra_exclude .= "<ExcludeShipToLocation>AD</ExcludeShipToLocation>";
<!-- And so on -->

这实际上对我来说就像一个魅力,我仍然添加具有长排除列表的项目。我不得不发疯才能让它工作,但现在它很完美。

于 2012-11-06T09:27:42.810 回答