Automatically applying customer balance


  • Default avatar
    simon82    
     7 years ago
    0

    Now, I know here on the forums someone else  about a year ago posted about wanting to automatically apply a balance, in their case from giftcards to the checkout. I am wondering if that is what we will need to do to set it up so that the customer balance from the vouchers is automatically applied to the cart. Basically will we need to develop a plugin ourselves or do you have something we could use instead?
  • Your avatar
    seyi    
     7 years ago
    0

    So the question is you want to apply a customer balance automatically, without the customer clicking a link or button indicating they would like to use it?
  • Default avatar
    simon82    
     7 years ago
    0

    Yes, That is exactly what we would wish to do.
  • Your avatar
    seyi    
     7 years ago
    +1

    There is no option in AwoCoupon to do this, but you can write a plugin to do this.  Have a look here for how it is applied:

    file: www/components/com_awocoupon/controller.php
    function apply_voucher_balance

  • Default avatar
    simon82    
     7 years ago
    0

    Thank you, having looked through the forum I had assumed that is what we would have had to do.