简体   繁体   English

Drupal 7/PayPal Express Checkout:如何根据地址设置送货选项

[英]Drupal 7/PayPal Express Checkout: How to set delivery options based on address

I have the "PayPal Express Checkout" Drupal 7 module installed and I need to ideally register what country the customer is checking out from and charge them a standard shipping fee, for example:我安装了“PayPal Express Checkout”Drupal 7 模块,理想情况下,我需要注册客户从哪个国家/地区结账并向他们收取标准运费,例如:

UK: £4.50 EU: £12 USA: £20 Australia: £20英国:4.50 英镑欧盟:12 英镑美国:20 英镑澳大利亚:20 英镑

If this isn't possible then alternatively offer the following as delivery charges: UK: £4.50 EU: £12 Rest of the World: £20如果无法做到这一点,则可选择提供以下运费: 英国:4.50 英镑 欧盟:12 英镑 Rest 世界:20 英镑

Currently only one delivery option is displayed and this seems to be displayed with an "After adding a product to the cart" event.目前只显示一个交付选项,这似乎与“将产品添加到购物车后”事件一起显示。 Adding other events wouldn't display delivery option choices, but would list and total them as far as I understand it.添加其他事件不会显示交付选项选项,但会根据我的理解列出并汇总它们。

I'm not sure how best to proceed with this, can anyone offer any suggestions?我不确定如何最好地进行此操作,有人可以提供任何建议吗?

1 – Clone the “Paypal Express Checkout” rule for each shipping option 1 – 为每个运输选项克隆“Paypal Express Checkout”规则

2 – Edit the condition in the newly cloned rule and set the country code based on what the rule should use. 2 – 编辑新克隆规则中的条件,并根据规则应使用的内容设置国家代码。

3 – Edit the shipping service action to use the relevant shipping option. 3 – 编辑运输服务操作以使用相关的运输选项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM