silenthilldk Posted December 10, 2013 Share Posted December 10, 2013 Hello all! Is it possible to apply free shipping only to certain carriers? I have 5 different carriers, but two of them are used to deliver special orders and are very expensive, so I dont want them calculated in the free shipping. So, is it possible to enable them only for "normal" carriers? Thanks // Kenneth Link to comment Share on other sites More sharing options...
Rolige Posted December 10, 2013 Share Posted December 10, 2013 And what is difficult?, just need enable the free shipping in the carrier you want, BO > Shipping > Carriers > Enable the Free shipping and be sure that the product can be delivered with these carrier. Regards. Link to comment Share on other sites More sharing options...
silenthilldk Posted December 10, 2013 Author Share Posted December 10, 2013 The difficult part is that not all carriers should be free. Only 3 of the 5. If I enable free shipping, it will apply to all carriers - right? Link to comment Share on other sites More sharing options...
Bill Dalton Posted December 10, 2013 Share Posted December 10, 2013 The trick is not to use the free shipping. Instead, set up your shipping price ranges to give free shipping at the price you want. Price range for Mail 0 to $100 = $10.00 $101 to 10,000 = 0 Price range for XPRESS MAIL 0 to $100 = $20.00 $101 to 10,000 = $40.00 Get the idea? Link to comment Share on other sites More sharing options...
silenthilldk Posted December 10, 2013 Author Share Posted December 10, 2013 The trick is not to use the free shipping. Instead, set up your shipping price ranges to give free shipping at the price you want. Price range for Mail 0 to $100 = $10.00 $101 to 10,000 = 0 Price range for XPRESS MAIL 0 to $100 = $20.00 $101 to 10,000 = $40.00 Get the idea? I get the concept, but I fail to see from where I can do this. In my carriers, I can only define weight as a parameter, not a price... // Kenneth Link to comment Share on other sites More sharing options...
Bill Dalton Posted December 11, 2013 Share Posted December 11, 2013 Ah! Then I recommend a module, take a look at, http://addons.prestashop.com/en/search?search_query=free+shipping Link to comment Share on other sites More sharing options...
mytheory. Posted December 11, 2013 Share Posted December 11, 2013 Hi, There is simple hack if you don't mind changing a bit of code. Edit the file /classes/Cart.php ...note I'm using PS. v1.5.4 and my file is edited so the exact line number may vary. Scroll down to around line 2651 (for priced based) Edit the line that looks like: if (isset($configuration['PS_SHIPPING_FREE_PRICE'])) AND CHANGE IT TO: if (isset($configuration['PS_SHIPPING_FREE_PRICE']) && $id_carrier == XX) Remember, 'XX' is the ID number of the carrier you want to make free. Make sure to change it to a ID number otherwise it will result in an error. Also, take a look at this line (around 2662) especially if you are using shipping by weight. I always change both of mine, just so that I don't have to worry about updating it if I decide to switch to weight based shipping. Anyways, look for this line: && (float)$configuration['PS_SHIPPING_FREE_WEIGHT'] > 0) AND change it to: && (float)$configuration['PS_SHIPPING_FREE_WEIGHT'] > 0 && $id_carrier == XX) Again, changing the 'XX' to the ID number of the shipping carrier you wish to make free. ADDITIONAL INFO: If you want to make multiple shipping carriers free just add more of the AND statements to the end of the changed lines of code. IE: && (float)$configuration['PS_SHIPPING_FREE_WEIGHT'] > 0 && $id_carrier == XX && $id_carrier == XY) Also, this is IMPORTANT! You have to change the ID number everytime you update any of the shipping carriers. Prestashop is setup to create a "new" carrier with a new ID number everytime you edit/update/change any of the carriers. Therefore, if the ID number of the carrier changes than the above hacks won't work without updating them to reflect the new IDs. You shouldn't being updating your carriers that often, but if you do you need to make sure you make the changes to these lines. Hope this helps! 1 Link to comment Share on other sites More sharing options...
Bill Dalton Posted December 11, 2013 Share Posted December 11, 2013 mytheory. thanks for sharing! Link to comment Share on other sites More sharing options...
silenthilldk Posted December 11, 2013 Author Share Posted December 11, 2013 I would prefer noy to change too mutch code, especially if it changes how the page works in general. They I would rather buy one of the modules, if it could solve my problem I tried to see if there where something free on the web, but no luck :-/ 1 Link to comment Share on other sites More sharing options...
mytheory. Posted December 11, 2013 Share Posted December 11, 2013 It's not much of a change... you add 1 condition to 2 lines in the same file. However, i understand your concern, and in that case your only other option is to purchase a module. Yea, there isn't a free one out there that does this. Just FYI... we are now using Presto-Changeo's shipping modules... USPS and UPS. They work flawlessly and much better than the ones included with PS by default. Plus support is simply amazing. Worth checking out. Link to comment Share on other sites More sharing options...
Recommended Posts