rezadri Posted February 3, 2023 Share Posted February 3, 2023 I have created a cart rule in which I choose a product that has free shipping. When I add that product to the cart everything works fine and the free shipping appears, but when I add a product without free shipping in which I should add the shipping price of that product, they both appear as free shipping. I have tried to create two rules one for the "Not free" and for the "free" products and it still works the same way. I have tried to create a carrier for the free shipping, but I am not interested in that operation. If someone can help me I would be grateful. Best regards. Link to comment Share on other sites More sharing options...
rezadri Posted February 13, 2023 Author Share Posted February 13, 2023 Someone? Link to comment Share on other sites More sharing options...
Prestachamps Posted February 13, 2023 Share Posted February 13, 2023 Hello, The way the Prestashop free shipping cart rules operate is that you can use the rule/voucher code if the specified product is in the cart; in this instance, free shipping will be applied regardless of whether any additional products are added to the cart. As you indicated, one thing you might do is to create a free shipping carrier, choose it for the desired products, and choose different carriers for the remaining things:https://prnt.sc/LZayob98B6ge Prestashop will typically split the order in this scenario, creating one with free delivery carrier and a second order with the remaining items with another carrier. I hope that I could help. Have a nice day, Leo. Link to comment Share on other sites More sharing options...
rezadri Posted February 14, 2023 Author Share Posted February 14, 2023 On 2/13/2023 at 1:35 PM, Prestachamps said: Hello, The way the Prestashop free shipping cart rules operate is that you can use the rule/voucher code if the specified product is in the cart; in this instance, free shipping will be applied regardless of whether any additional products are added to the cart. As you indicated, one thing you might do is to create a free shipping carrier, choose it for the desired products, and choose different carriers for the remaining things:https://prnt.sc/LZayob98B6ge Prestashop will typically split the order in this scenario, creating one with free delivery carrier and a second order with the remaining items with another carrier. I hope that I could help. Have a nice day, Leo. Thanks for answering @Prestachamps, there is no module that can do what I want? Link to comment Share on other sites More sharing options...
ComGrafPL Posted February 14, 2023 Share Posted February 14, 2023 13 minut temu, rezadri napisał: Thanks for answering @Prestachamps, there is no module that can do what I want? Check the demo of thise one https://addons.prestashop.com/en/shipping-costs/44536-avail-free-shipping.html Link to comment Share on other sites More sharing options...
rezadri Posted February 14, 2023 Author Share Posted February 14, 2023 9 minutes ago, ComGrafPL said: Check the demo of thise one https://addons.prestashop.com/en/shipping-costs/44536-avail-free-shipping.html is not what I need, Thanks Link to comment Share on other sites More sharing options...
zunxunz Posted November 29 Share Posted November 29 A real solution. Find /classes/Cart.php Find the method getPackageShippingCost Right at the top add the lines below: $qry = new DbQuery; $qry->select("free_shipping"); $qry->from("cart_cart_rule", "cd"); $qry->innerJoin("cart_rule", "cr", "cd.id_cart_rule = cr.id_cart_rule"); $qry->where("id_cart = {$this->id}"); $qry->where("free_shipping = 1"); if(Db::getInstance()->getValue($qry)) return 0; Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now