kilwag Posted March 3, 2011 Share Posted March 3, 2011 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 More sharing options...
kilwag Posted March 11, 2011 Author Share Posted March 11, 2011 Does anyone else at least think this is a good idea? I'm going to have to figure it out one way or another. Link to comment Share on other sites More sharing options...
kilwag Posted March 29, 2011 Author Share Posted March 29, 2011 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 More sharing options...
epicureanfoods.com Posted April 15, 2011 Share Posted April 15, 2011 Hi Kilwag,Thank you for posting this answer. I think we're in the same boat as you are - nervous to upgrade to 1.4 We're also beginners and trying to do as much as we can ourselves only because we are finding it so difficult to find web development people.Sincerely,Phyllis Link to comment Share on other sites More sharing options...
epicureanfoods.com Posted May 10, 2011 Share Posted May 10, 2011 Hi Kilwag,Regarding your instructions. Do you mean at line 724 or after. i.e. is it after the curly bracket or before? Could you possibly just tell me the line that precedes it?thank you very muchPhyllis Link to comment Share on other sites More sharing options...
mavericks Posted June 2, 2011 Share Posted June 2, 2011 Has anyone done this in 1.4 version. If so what where did you put the code. Thanks! 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