thelia / custom-shipping-zone-fees-module
dev-master
2021-10-11 15:36 UTC
Requires
- thelia/installer: ~1.1
This package is auto-updated.
Last update: 2024-09-19 14:06:47 UTC
README
此模块允许您根据地址的邮编修改订单的运费。
安装
手动
- 将模块复制到
<thelia_root>/local/modules/
目录,并确保模块名称为 CustomShippingZones。 - 在 Thelia 管理面板中激活它
Composer
将其添加到主 Thelia composer.json 文件中
composer require thelia/custom-shipping-zone-fees-module:~0.0.1
使用方法
转到模块配置以创建自定义配送区域,并添加您想要的运费和邮编。然后进入您的配送模块的配送区域,添加您的新配送区域。
当订单地址的邮编是您在自定义配送区域中指定的邮编之一时,此模块会将自定义配送区域的运费添加到您的配送模块的邮费中。
循环
[custom_shipping_zone_fees]
输入参数
输出参数
示例
<table>
<thead>
<tr>
<th>Zip code</th>
<th>Country</th>
</tr>
</thead>
<tbody>
{loop name='my_loop' type='custom_shipping_zone_fees' locale=$locale id=$shippingZoneId}
{foreach $ZIP_CODES as $zipCode}
<tr>
<td>{$zipCode->getZipCode()}</td>
<td>{$zipCode->getCountry()->setLocale($locale)->getTitle()}</td>
</tr>
{/foreach}
{/loop}
</tbody>
</table>