Created
November 28, 2011 14:59
-
-
Save fusco/1400684 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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