Discount Not updating when basket updated


  • Default avatar
    quayfee    
     8 years ago
    0

    Hi,

    I have an old J1.5 site with VM1.1 using AWO Coupons and generally it works, however we have recently noticed that if someone updates their basket after applying a coupon, the discount price remains the same as it was when the coupon was first applied. So for example, a user puts £100 worth of products in the basket. Applies a 50% discount Coupon and the total changes to £50, they then decide that they don't want some of the products, so in thier basket, the delete one or two products, maybe change the volume of some. bringing the full price total down to £60. When they click 'Update basket' the initial total is updated, but the discount amount remains at £50, rather than being recalculated to £30, so they pay £10 for £60 worth of products.

    I'm reasonably good with PHP, so happy to go and look atht ecode, but need some guidance as to where the update call is located to fix the issue.

    Any help would be greatly appreciated.

    Thanks

    Keith
  • Your avatar
    seyi    
     8 years ago
    0

    Hello,

    What version of AwoCoupon is this?
  • Default avatar
    quayfee    
     8 years ago
    0

    Hi Seyi,

    AWOCoupon for Virtuemart

    version 1.0.2
  • Your avatar
    seyi    
     8 years ago
    0

    That is a super old version. Please upgrade to at least the latest free version, 1.0.12

    https://awodev.com/products#com_awocoupon_free
  • Default avatar
    quayfee    
     8 years ago
    0

    Hi Seyi,

    Thank you for that. I've updated and also found the bug, which as actually caused by a customisation to the cart class done by another developer who built a bundles system for us. They had neglected to add the code calling for coupons to be processed when a bundle was deleted.

    it has uncovered another bug in teh way that coupons are applied, but I suspect taht may also be with this other customisation. SInce it's a seperate issue, I will start a new thread if I need any advice or help.

    Thank You!