Tax and free shipping coupon


  • Default avatar
    mat411    
     3 years ago  last edited 3 years ago
    0

    Using Hikashop 4.4.0. As I realize, tax with free shipping coupon is not corect. So at checkout shipping tax is still there. Final sum is ok.

    I set free shipping coupon. We have 22% tax on shipping.

    Example on checkout:


    Product price (here is 5%vat)19,90 €

    Coupon-2,50 €

    Shipping cost (here is 22%vat)2,50 €

    VAT 5%0,95 €

    VAT 22%0,45 €

    Shipping byout (here is no vat)1,20 €

    To pay21,10 €

    There is in total 0,45€ of 22% vat. It should be zero 22% vat.

  • Default avatar
    mat411    
     3 years ago
    0

    Just for clarification. If I enable default Hikashop coupon for free shipping, VAT is corect (zero). So something wrong with awo.
  • Your avatar
    seyi    
     3 years ago
    0

    In AwoCoupon > configuration, do you have coupons set to discount before tax?

    Would also help if you posted an image of the cart.
  • Default avatar
    mat411    
     3 years ago
    0

    Yes, I have Discount before tax (vaucher includes tax) for coupons and gifts.

    We allready discused other issues and you have link to store on mail, so you can try your self.

  • Your avatar
    seyi    
     3 years ago
    0

    Ok, just made an update in the latest version 3.6.0.1, which should fix the taxing issue.
  • Default avatar
    mat411    
     3 years ago
    0

    OK, tax fixed.

    But have one php warning

    PHP Warning: Creating default object from empty value in /administrator/components/com_awocoupon/helper/estore/hikashop/class-awocoupon-helper-estore-hikashop-discount.php on line 946
  • Your avatar
    seyi    
     3 years ago
    0

    Hello,

    In that file, right before line 946, you can add
    <?php
    if ( empty( $this->customer ) ) {
                $this->customer = new stdClass();
    }
    ?>

  • Default avatar
    mat411    
     3 years ago
    0

    Are you shure? I have this code

  • Your avatar
    seyi    
     3 years ago
    0

    Yep, correct location.
  • Default avatar
    mat411    
     3 years ago
    0

    But as I understand is not right php syntax? unespected <
  • Your avatar
    seyi    
     3 years ago
    0

    Do not include the </?php and ?> you see, that is just to indicate it is php code, just the content:
    if ( empty( $this->customer ) ) {
                $this->customer = new stdClass();
    }

  • Default avatar
    mat411    
     3 years ago
    0

    Ok, this seems logic :)

    Thank you