Prestashop 1.2.5 Free Shipping for 1 Carrier


/ Published in: PHP
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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;

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.