简体   繁体   English

如何根据订单数量增加运输成本? 在prestashop

[英]how to increase shipping cost depending on quantity of order? in prestashop

pretty much i want to increase the shipping cost depending on the number of items in order... eg by default shipping cost is 10$ but when number items goes beyond 20 it will add 3$ to shipping cost so it would be 13$ 我几乎想根据订单中的项目数量增加运输成本...例如,默认情况下,运输成本为10 $,但是当项目数量超过20时,它将增加3 $的运输成本,因此它将为13 $

i tried changing codes but it's complicated somehow 我尝试更改代码,但是某种程度上很复杂

i had to find all places that include shipping tax like in 1-blockcart module, 2-one page checkout, 3-payment, 4-inserting to database... and then change some codes.. and it's a lot of work and hard 我必须找到所有包含运费税的地方,例如1-blockcart模块,2-one页面结帐,3-pay,4-inserting到数据库...,然后更改一些代码..这是很多工作和辛苦工作

so is there anyway to do this technically? 因此,从技术上来讲,有这样做吗? thanks 谢谢

Prestashop includes a shipping range functionality. Prestashop包括送货范围功能。 You can define shipping cost depending of the total weight of your products. 您可以根据产品的总重量来定义运输成本。

If you want a simple implementation, you can define all your products weight to 1Kg and add shipping cost ranges like those: 如果您想要一个简单的实现,则可以将所有产品的重量定义为1Kg,并增加以下运输成本范围:

 0kg =>    20kg : 10$
20kg =>    40kg : 13$
40kg => 99999kg : 15$

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

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