Anh Le Giang Posted July 15, 2013 at 04:44 PM Share Posted July 15, 2013 at 04:44 PM 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
Kristian Posted July 15, 2013 at 04:53 PM Share Posted July 15, 2013 at 04:53 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Anh Le Giang Posted July 16, 2013 at 07:30 AM Author Share Posted July 16, 2013 at 07:30 AM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Alejandro Posted July 16, 2013 at 12:27 PM Share Posted July 16, 2013 at 12:27 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Anh Le Giang Posted July 16, 2013 at 05:09 PM Author Share Posted July 16, 2013 at 05:09 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Recommended Posts