Skip to content

Instantly share code, notes, and snippets.

@fusco
Created November 28, 2011 14:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fusco/1400684 to your computer and use it in GitHub Desktop.
Save fusco/1400684 to your computer and use it in GitHub Desktop.
Installation :
-------------
- décompresser l'archive dans le répertoire 'modules' de prestashop
- activer le module dans le backoffice de prestashop
- dans le fichier "Cart.php" (dans le répertoire "/classes/") ajoutez ces lignes :
include_once(dirname(__FILE__).'/../modules/freeshipping/freeshipping.php');
$fsz = new FreeShipping();
if ($fsz->checkFreeShippingPriceCart($this, $id_zone, $carrier)) return $shipping_cost;
dans la fonction "getOrderShippingCost", après la ligne :
$configuration = Configuration::getMultiple(array('PS_SHIPPING_FREE_PRICE', 'PS_SHIPPING_HANDLING', 'PS_SHIPPING_METHOD', 'PS_SHIPPING_FREE_WEIGHT'));
- SI VOUS UTILISEZ UNE VERSION DE PRESTASHOP INFERIEURE A LA 1.4 : dans le fichier "order.php" (dans le répertoire "/") ajoutez ces lignes :
include_once(dirname(__FILE__).'/modules/freeshipping/freeshipping.php');
$fsz = new FreeShipping();
$fsz->checkFreeShippingOrder();
dans la fonction "displaySummary", avant la ligne :
$smarty->assign($summary);
- paramètrer le module via le backoffice de prestashop en fonction de vos besoins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment