Coupon Pro Usage Statistics Issue


  • Default avatar
    clive4    
     14 years ago
    0

    If an order is "Pending" (i.e. the payment does not fulfill) the coupon usage is still counted in the history of uses and in reports, making them inaccurate.

    The same with any order which is cancelled - the use of the coupon and the amount of the cancelled order are still coubted as actual receipts.

    Can these be fixed?
  • Your avatar
    seyi    
     14 years ago
    0

    Hi Clive,

    Yes I see the problem. By default I think every item in the database should be taken into account. What is missing is a filter option on the report selection page that would give you the option to select which order statuses you want to take into account when viewing the report. I will fix this for the next release, in the mean time. you can try this:

    in www/administrator/components/com_awocoupon/models/reports.php around line 253 and line 330
    change
    <?php
     WHERE 1
    =1
    ?>


    to
    <?php
     WHERE 1
    =AND o.order_status='C'
    ?>


    This will only take into account completed orders when viewing the coupon usage/location reports.