Return to Snippet

Revision: 24046
at February 19, 2010 12:03 by SmpleJohn


Initial Code
/* 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;

Initial URL
http://www.prestashop.com/forums/viewthread/21663/

Initial Description
In classes/Cart.php find: “// Free fees”

Initial Title
Prestashop 1.2.5 Free Shipping for 1 Carrier

Initial Tags

                                

Initial Language
PHP