Unable to add multiple customers to one coupon


  • Default avatar
    bmm01    
     6 years ago
    0

    After upgrade I am unable to manually add multiple customers to one coupon. Each time I edit coupon to add another customer it deletes previous information. Prior to upgrade this has been no problem and many customers have these coupons that no longer work although the coupon is working.

    What has changed? Is there a change in the configuration that I need to make?

  • Your avatar
    seyi    
     6 years ago
    0

    Thanks for the access, the issue is fixed.  In the file:

    www/administrator/components/com_awocoupon/admin/controller/class-awocoupon-admin-controller-coupon.php, around line 64 is this:

    <?php
               $row
    ->asset $this->model->asset_post_to_db$post['asset'] );
    ?>

    I altered it to this
    <?php
                
    if ( ! empty( $post['asset'] ) ) {
                    $row->asset $this->model->asset_post_to_db$post['asset'] );
                }
    ?>

    And that fixed it
  • Default avatar
    bmm01    
     6 years ago
    0

    Thanks very much Seyi!