Notes by JDeveloper for JDeveloper
Once you master it, you're gonna like it

Tips: Styling Price Display

Written by Viktor Iwan

So, displaying millions for my local currency is a common, and now my client want to styling it by reduce the last 3 digit (thousand).

Here's what i do:

  1. Open administrator/components/com_virtuemart/helpers/currencydisplay.php
  2. go to priceDisplay() function
  3. change: return $this->getFormattedCurrency($price,$nb);
    $temp[$lastindex]="<span style=\"font-size:10px\">".$temp[$lastindex]."</span>";
    return $normalPrice;

So there we have a nice price display in virtuemart 2

Price Format: Maintain decimal format in Virtuemart 2

Written by Viktor Iwan

In my country, we rarely use decimal, so i would like to hide it. In Virtuemart, there are steps that you need to follow to hide the decimal

Read more