Jump to content

Prevent vouchers from applying to shipping


Recommended Posts

I need to offer a coupon code that does not apply towards shipping costs.

Here's what I want:

Voucher code is for $30. If customer orders $20 worth of products, they get it for free, but they still have to pay for shipping.

What happens instead:

If Customer orders $20 worth of product they can checkout without paying anything by using the voucher code.


I have shipping set up by weight. Every product has a weight of one.

I can't figure this out.

Link to comment
Share on other sites

  • 3 weeks later...

WelL, I think I figured it out.

I added this line after line 724 in classes/Cart.php

 if ($order_total < $shipping_fees AND $type != 2) return $shipping_fees;



I'm not sure if I need the AND part, but it was the first thing I tried (copied from the line above it) and it seems to work so I'm not going to touch it.

I've gone as far as checking out and logging into Paypal and the correct amount shows up. I haven't actually received any orders since implementing.

The purpose was to prevent vouchers from being applied to shipping costs.

I hate having to modify core files like this.

ALSO: This is with Prestashop Version 1.3.6

I haven't upgraded yet because... I'm worried about the downtime and losing orders in the mean time. The whole upgrade process is a bit much.

Link to comment
Share on other sites

  • 3 weeks later...
  • 4 weeks later...
  • 4 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...