Posted By

SmpleJohn on 02/19/10


Tagged

Prestashop


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

SmpleJohn


Prestashop 1.2.5 Free Shipping for 1 Carrier


 / Published in: PHP
 

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

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

  1. /* change:
  2. if (isset($configuration['PS_SHIPPING_FREE_PRICE']) AND $orderTotal >= floatval($configuration['PS_SHIPPING_FREE_PRICE']) AND floatval($configuration['PS_SHIPPING_FREE_PRICE']) > 0)
  3.   return $shipping_cost;
  4.  
  5. if (isset($configuration['PS_SHIPPING_FREE_WEIGHT']) AND $this->getTotalWeight() >= floatval($configuration['PS_SHIPPING_FREE_WEIGHT']) AND floatval($configuration['PS_SHIPPING_FREE_WEIGHT']) > 0)
  6.   return $shipping_cost;
  7.  
  8. to: */
  9. // Added Default carrier only Free Shipping
  10.  
  11. 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)
  12. return $shipping_cost;
  13.  
  14. 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)
  15. return $shipping_cost;

Report this snippet  

You need to login to post a comment.