Coupon Percentage Discount not activating

Bug #326240 reported by cybergord
6
Affects Status Importance Assigned to Milestone
OpenFreeway
Fix Released
Undecided
Rameshranagn

Bug Description

When I set up a Coupon Discount in Admin v233
Creating the coupon is fine and I add the % in the coupon amount eg: 5%

After review and confirm the discount remains at FIXED not PERCENTAGE

Looking in the databse i see the coupon_type field in TABLE COUPONS is F when it should be updated to P
(I have to do this manually in phpMyAdmin and it works fine but when you update the coupon it reverts back to coupon_type = 'F'

I tried looking in the code salesCoupons.php coding looks fine but i dont see anywhere that set the coupon_type when the coupon is created. There are a few code errors in that file too.

Hope you can fix this soon.

Revision history for this message
Rameshranagn (ramesh-rangan) wrote :

Hi,

Yes, there is a mistake. We will fix and update it in our next revision shortly.

Thanks for pointing this issue. We will inform you also about the fix.

With Thanks,
Ramesh.P

Changed in openfreeway:
assignee: nobody → ramesh-rangan
status: New → In Progress
Revision history for this message
Rameshranagn (ramesh-rangan) wrote :

Hi,

We have found the fix and will update in our next revision shortly.

Thanks for pointing this bug.

With Thanks,
Ramesh.P

Changed in openfreeway:
status: In Progress → Fix Committed
Revision history for this message
jay (jay-hjmsoftware) wrote :

when will this fix be committed, am using version .234 and .238, neither update to percentage.
Thanks
Jay

Revision history for this message
jay (jay-hjmsoftware) wrote :

also, the use counter does not indicate correctly, if I set the uses at 2, it still show I have 2 left

Revision history for this message
Rameshranagn (ramesh-rangan) wrote :

Hi,

Please replace your file …/admin/includes/tweak/display/salesCoupon.php with the file attached here and try. We will update this file in our next revision shortly.

The counter works fine. It will be reduced only after an order has created successfully.

Hope this helps you.

Cheers,
Ramesh.P

Revision history for this message
Rameshranagn (ramesh-rangan) wrote :
Revision history for this message
Rameshranagn (ramesh-rangan) wrote :

Hi,

The Freeway latest version #239 has released. It has the fixes for previous versions’ issues as well as for this issue.

You can get it at https://code.launchpad.net/openfreeway

With Thanks,
Ramesh.P

Changed in openfreeway:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.