Modify VM product and list template to display AWO discount price

  • Default avatar
     4 months ago  last edited 4 months ago


    I wonder is it possible to modify VM templates via override system or use AWO snippets if available, to:
    - display discount amount in product list, below original price
    - display discount amount in product details, below original price
    - display discount amount in cart next to every product where discount is applied
    - or mark anyhow any product with discount?
    I know how to modify VM templates but I never tried to integrate AWO Coupon output
    I'm also using One Page Checkout for VirtueMart [byPV]

    Joomla 3.8.2
    Virtuemart 3.2.4
    Latest Awocoupon pro
    One page checkout by byPV 1.18.4

  • Your avatar
     4 months ago

    Here is how you could integrate it into the cart:

    It was written a while back so some of the virtuemart variables may have changed.

    As for showing it on the product category/detailed page, this would be a problem because AwoCoupon would only discount after the product has been added to the cart.  And I am assuming you are trying to show the discounted price before it is added to the cart.