Buy Now
Sign in

Number Format

rafaelscouto , January 23 2020, 13:25
R
rafaelscouto 178
January 23 2020, 13:25 #390882
I need to display in my table a value that I take from my database (inventory, price column).

Ex.
R $ 59.90

$price = number_format($this->data("Est.price"));
echo $price;

But it doesn't display anything
How can I solve?
healyhatman 9
January 24 2020, 12:44 #390903
$this->get is for {var:}'s, $this->data is for {data:}'s.
Web developer at SkySpider.com.au - I DO NOT work for ChronoEngine!
Donations: paypal.me/healyhatman
Professional Work: kamron@skyspider.com.au
Custom CF / CC Plugins and Extensions: skyspider.com.au/store
R
rafaelscouto 178
January 29 2020, 13:36 #390961
I managed to solve, now I need to display a simple calculation on a table in the index event

Quantity x price.

How can I get these two dice?

I tried several ways and failed.
healyhatman 9
January 30 2020, 03:31 #390966
echo $this->get('thething') * $this->get('the_other_thing');
Web developer at SkySpider.com.au - I DO NOT work for ChronoEngine!
Donations: paypal.me/healyhatman
Professional Work: kamron@skyspider.com.au
Custom CF / CC Plugins and Extensions: skyspider.com.au/store