Jump to content

Free shipping based on price before discount voucher


Vrijspel

Recommended Posts

On my website (www.vrijspelspeelgoed.nl) I have free shipping from €50. This is a cartrule discount. If people use a discount code , which makes the total price from for example €55 to €45, it still gives free shipping. It should take the amount of €45 to determine the discount.

I am using prestashop version 1.6.0.9. I found 2 relating topics on this, and I applied both. I changed only_pysichal_products_without_discount to both_without_discount in the classes\cart.php code. I also changed the $total_price to $totalpricewithdiscount. None of it worked.

Is there another way to fix this?

Thank you

Link to comment
Share on other sites

  • 4 weeks later...

Hi Vrijspel,

have you figured this out yet? I have the same issue. We have free shipping from €100 purchased. so if a client orders €101 worth of goods, they get free shipping, but if they enter a discount code, and the total of purchased goods then drops to for example €95 they still get free shipping.

 

Could you let me know which 'solutions' you found.

1.6.1.4 by the way

 

Groeten,

David.

Edited by David S Johnston (see edit history)
Link to comment
Share on other sites

Vrijspel,

I tried the \classes\cart.php modification and it worked fine for me. The two instances of $order_total are on line 2969 and 2976, I changed them to $orderTotalwithDiscounts (case sensitive perhaps??) and then cleared the cache (seems to be needed on my system).

Now I have the shipping price based on the total productcost, excluding the discount.

 

Groeten,

dave.

Link to comment
Share on other sites

  • 2 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...