Jump to content

Remove last .00 digits in the PaidListings plan


Anh Le Giang

Recommended Posts

Hello all,

 

I'm using Vietnam Dong in my website (Đ or VND). The currency symbol must be placed before the amount and there is no digit after the last number (there is no .00), ex: 300,000 Đ. Link: http://danhgia.net/plan-an-uong

I modified the file :/components/com_jreviews_addons/paidlistings/views/themes/paidlistings/paid_plans/plans.thtml and can move the symbol to the end by moving:

<span class="jrPlanAmount"><?php echo $plan['plan_price'] == 0 ? __t("Free") : s2_num_format($plan['plan_price']);?></span>

 

to after

<span class="jrCurrency"><?php echo $plan['plan_price'] != 0 ? $this->Config->{'paid.currency_symbol'} : '';?></span>

 

However I cannot remove the last .00 digits (I changed the data type to int in database already). That if I remove s2_num_format() in the code above, the result will be 300000 Đ. But I'd like to keep the ",".

Could any one help me to solve this?

 

Thanks,

Giang Anh

Link to comment
×
×
  • Create New...