zeroanarchy Posted June 2, 2021 Share Posted June 2, 2021 Hi everyone, I was looking for a little help with the product.tpl file and a formatting list. It would appear if you use $product.pricing.minprice.price you get a display of $15 AUD If you use {$product.displayPriceSimple} you get $15/mo I have been unable to find a list of these formats and was wondering if there is a reference as I am trying to work out how to code $15 Thanks in advance zeroanarchy 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 4, 2021 Share Posted June 4, 2021 On 02/06/2021 at 04:37, zeroanarchy said: I have been unable to find a list of these formats and was wondering if there is a reference as I am trying to work out how to code https://classdocs.whmcs.com/8.1/WHMCS/View/Formatter/Price.html note, they would only work on Price Formatter variables, so in terms of minprice.price... {$product.pricing.minprice.price) -> $15 AUD {$product.pricing.minprice.price->toPrefixed()) -> $15 {$product.pricing.minprice.price->toSuffixed()) -> 15 AUD {$product.pricing.minprice.price->toNumeric()) -> 15 if memory serves, {$product.displayPriceSimple} is just a normal string variable, so you would have to manipulate it with Smarty/PHP if you wanted to change it's display. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.