PHP Prestashop 1.2.5免费送货1载体

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了PHP Prestashop 1.2.5免费送货1载体相关的知识,希望对你有一定的参考价值。

/* change:
if (isset($configuration['PS_SHIPPING_FREE_PRICE']) AND $orderTotal >= floatval($configuration['PS_SHIPPING_FREE_PRICE']) AND floatval($configuration['PS_SHIPPING_FREE_PRICE']) > 0)
          return $shipping_cost;

if (isset($configuration['PS_SHIPPING_FREE_WEIGHT']) AND $this->getTotalWeight() >= floatval($configuration['PS_SHIPPING_FREE_WEIGHT']) AND floatval($configuration['PS_SHIPPING_FREE_WEIGHT']) > 0)
          return $shipping_cost;

to: */
// Added Default carrier only Free Shipping

if (isset($configuration['PS_SHIPPING_FREE_PRICE']) AND $id_carrier==1 AND $orderTotal >= floatval($configuration['PS_SHIPPING_FREE_PRICE']) AND floatval($configuration['PS_SHIPPING_FREE_PRICE']) > 0)
            return $shipping_cost;

if (isset($configuration['PS_SHIPPING_FREE_WEIGHT']) AND $id_carrier==1 AND $this->getTotalWeight() >= floatval($configuration['PS_SHIPPING_FREE_WEIGHT']) AND floatval($configuration['PS_SHIPPING_FREE_WEIGHT']) > 0)
            return $shipping_cost;

以上是关于PHP Prestashop 1.2.5免费送货1载体的主要内容,如果未能解决你的问题,请参考以下文章

PHP Prestashop 1.2.5产品标签

PHP Prestashop 1.2.5访问cookie

PHP Prestashop 1.2.5删除姓氏上限

如何删除 prestashop 1.7 上的送货步骤?

prestashop、zencart、opencart、magento哪一个好?

如何在 prestashop 1.7 中添加 Mobile_Detect.php?