Discount from cart total without shipping and payment fee


  • Default avatar
    a32461    
     9 years ago
    0

    Hi, i want to give my customer 0% discount from their orders, but awo coupon is calculating this together with shipping and payment costs, is it possible to calculate % discount only from total products? not additional costs shipping, payments)

    When i restrict discount to any category of VM, if i add product from this category to the cart and pick another one, discount is for both

    example
    product XY is from restrict category called samples, for this category is the discount rule applied, this product costs 30 euro
    I got discount coupon for 40, ok i put in the cart another products from another categories

    so if i have in cart product XY from restricted category, and add product ZY from category shoes, i can use rest of discount coupon for another product which is not im category samples. So if customer has big discount i am not able to force him to use this discount only on specific category...

    is it for this any solution?

    thx

  • Your avatar
    seyi    
     9 years ago
    0

    Hello

     is it possible to calculate % discount only from total products? not additional costs shipping, payments)


    AwoCoupon does not calculate % discount on shipping or payment costs. It only calculates it on the product total. Now if you created a 'gift certificate' then by default the amount discount would be applied to the full cart, including shipping. Buf if you create a 'coupon', this does not happen

    When i restrict discount to any category of VM, if i add product from this category to the cart and pick another one, discount is for both


    Set discount type to specific
  • Default avatar
    a32461    
     9 years ago
    0

    thx ad2) is working

    but with the total order, yes using discount is ok, but my system is this
    You bought some products and get discount 10% from total order, system after the order is set to completed send you coupon code.
    But if the total order with shipping is 380 (total ordered items 350), system send coupon code for discount 38 (10% from total order)
    But i want to send only for 35 (10% from total ordered items)

    do you undestand me?
  • Your avatar
    seyi    
     9 years ago
    0

    Hello,

    I see now. You are referring to AwoRewards. There is not a feature for this yet, it works only on the order total. Will look at adding this in the next release.
  • Your avatar
    seyi    
     9 years ago
    0

    Hello,

    The feature to set Percent of order total for the total without shipping has now been added to the latest version of AwoRewards, 2.1.5.
  • Default avatar
    a32461    
     9 years ago
    0

    are you sure that it is fully working? in my case i have order with shipping and payment fee 446 CZK, total order form items 331CZK
    and get 10% discount rule for future order but get coupon for 36 CZK discount. I am not sure how it is counting but it seems that payment cost are added to total amount from which is discount calculated
  • Your avatar
    seyi    
     9 years ago
    0

    Hello,

    You are correct, it does take into account the payment method fee. Make this change:
    in www/administrator/components/com_awocoupon/helpers/estore/virtuemart/rewardshandler.php, around line 51 is this:

    <?php
                
    'order_shipping'=>$order->order_shipment,
                
    'order_shipping_tax'=>$order->order_shipment_tax,
    ?>


    change it to this:
    <?php
                
    'order_shipping'=>$order->order_shipment+$order->order_payment,
                
    'order_shipping_tax'=>$order->order_shipment_tax+$order->order_payment_tax,
    ?>


    That should remove the payment fee also.