VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: ujwalpoojari on August 16, 2018, 12:12:56 PM

Title: Show product discount
Post by: ujwalpoojari 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 -.-

Title: Re: Show product discount
Post by: Jörgen on August 16, 2018, 13:25:35 PM
VM and Joomla versions, live URL perhaps ?

Jörgen @ Kreativ Fotografi