Dollar amount off each item and each qty


  • Default avatar
    Kenny Sondys    
     11 years ago
    0

    I am trying to take an amount off each line item. So if they purchase 1 item it takes $15.00 off and if they purchase 6 of the same items it takes $90.00 and i am trying to get it to change the item amount not just show a negitive for the discount.
    Is that possible?
  • Your avatar
    seyi    
     11 years ago
    0

    Hello,

    It is not, AwoCoupon does not track which line item gets which discounts. If are using percentage discounts over all products, you could use the below formula to get the discount for each product:

    product_discount_price = product_price * (subtotal - total_discount / subtotal)
  • Default avatar
    Kenny Sondys    
     11 years ago
    0

    But it gives you an option to select what item you want the coupon to apply, wont that be keep track of line items...so it seems like that it should be-able to appy if you are only appling it to one line item...am i wrong?
  • Your avatar
    seyi    
     11 years ago
    0

    It keeps track of all the items in the cart to produce the discount but not any specific line item. What version of AwoCoupon are you using? I can point you at which file has the logic so you can review it.
  • Default avatar
    Kenny Sondys    
     11 years ago
    0

    AWO Pro 1.4.7
  • Your avatar
    seyi    
     11 years ago
    0

    the logic for creating discounts is located within
    www/administrator/components/com_awocoupon/helpers/vm_coupon.php
  • Default avatar
    Kenny Sondys    
     11 years ago
    0

    OK i will take a look

    Thanks Kenny