Coupon required to proceed with the purchase


  • Default avatar
    info91    
     11 years ago
    0

    Hello,

    AwoCoupon Pro: 2.1.7
    Joomla: 2.5.9
    Virtuemart: 2.0.18a

    Can I configure the component in such a way that the inclusion of the coupon is mandatory to proceed with the purchase?
    In practice, I wanted to know if it is possible that a user purchases only if he is in possession of a coupon code.

    Thank you.

    Paolo
  • Your avatar
    seyi    
     11 years ago
    0

    Hello,

    You cannot do that through AwoCoupon, but you can probably do that by hacking the core code of virtuemart.

    I would start by looking at
    www/components/com_virtuemart/helpers/cart.php, there should be a confirm function, which you can check if a coupon code exists and if not, do not confirm the order.