Author Topic: Show product discount  (Read 421 times)

ujwalpoojari

  • Beginner
  • *
  • Posts: 1
  • A beginner
Show product discount
« on: August 16, 2018, 12:12:56 pm »
Is there a fast and easy way to echo selected discount on product (VirtueMart)?

If I choose specific discount for final price, then $product->prices['DBTax'] will give me only selected discount which is ok. But if generic rule for final price is set like it is by default, then $product->prices['DBTax'] would contain all of the registered discount which isn't good, and in array there isn't any clue if that discount is active -.-


Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 2473
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: Show product discount
« Reply #1 on: August 16, 2018, 13:25:35 pm »
VM and Joomla versions, live URL perhaps ?

Jörgen @ Kreativ Fotografi
Joomla 3.9.8
Virtuemart 3.4.x
Olympiantheme Hera (customized)