gift cert reports : (exclude) Discounted Products


  • Default avatar
    jeroenb    
     4 years ago
    0

    Hi,

    I want to redeem a gift certificate from the BE (using ARTIO invoice) because a customer handed over a gift voucher in the Bricks&Mortar shop. After entering the code the message appears:  (exclude) Discounted Products.
    In the coupon config only the couponcode, value and valid until date fields are filled. How can I troubleshoot this?

    Kind regards,

  • Your avatar
    seyi    
     4 years ago
    0

    When editing the coupon, under the option section, is the 'exclude discounted products' checkbox checked?

    CcKzj84.png
  • Default avatar
    jeroenb    
     4 years ago
    0

  • Default avatar
    jeroenb    
     4 years ago  last edited 4 years ago
    0

    That checkbox is not present on the coupon in question:6tQmkkX.jpg
  • Your avatar
    seyi    
     4 years ago
    0

    Just tested that coupon on your site, and it successfully processed:

    Is the issue happening on a specific product?

  • Default avatar
    jeroenb    
     4 years ago
    0

    I tried to add the coupon to order 20086716 using ARTIO from the BE.
  • Your avatar
    seyi    
     4 years ago
    0

    Oh, not sure how those will work together.  If you can send me a copy of the component I could test it to see if this is an AwoCoupon issue.
  • Default avatar
    jeroenb    
     4 years ago
    0

    Downloadlink is in your mail.
  • Your avatar
    seyi    
     4 years ago
    0

    Ok, in the file www\administrator\components\com_awocoupon\helper\estore\virtuemart\class-awocoupon-helper-estore-virtuemart-discount.php, around line 71 is this:
    <?php
            
    if ( version_compare$this->vmversion'3.0.4''>=' ) ) {
    ?>

    Change it to this
    <?php
            
    if ( AC()->is_request'frontend' ) && version_compare$this->vmversion'3.0.4''>=' ) ) {
    ?>

    That should do it.
  • Default avatar
    jeroenb    
     4 years ago
    0

    Yes, it works fine now. Thanks.

    Will you include this in a future version, or do I have to manually update this after an update?

  • Your avatar
    seyi    
     4 years ago
    0

    It will be included.