News:

Support the VirtueMart project and become a member

Main Menu

Show product discount

Started by ujwalpoojari, August 16, 2018, 12:12:56 PM

Previous topic - Next topic

ujwalpoojari

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

VM and Joomla versions, live URL perhaps ?

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.