News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Echo selected discount on product

Started by marko_bir, October 11, 2016, 12:17:44 PM

Previous topic - Next topic

marko_bir

Is there a way to echo selected discount on product (VirtueMart)? Template is sublayouts\prices.php

I have registered a few discounts in Taxes & Calculation Rules.
On product If I choose specific discount for final price, then $product->prices['DBTax'] will give me only selected discount which is ok. (although every discount is in different place in array)
But if generic rule for final price is set like it is by default, then $product->prices['DBTax'] would contain all of the registered discounts which isn't good, and in array there isn't any clue wchich discount is active.