从您的代码中,我无论如何都看不到您使用的哪个字段,我可以告诉您运输系统的简单规则是什么。您必须选择运送地点 -> 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 -->
这实际上对我来说就像一个魅力,我仍然添加具有长排除列表的项目。我不得不发疯才能让它工作,但现在它很完美。