arroba_rosario Posted April 6, 2004 Posted April 6, 2004 Anyone now hot to modify this piece of code function process() { global $order, $currencies; $this->output[] = array('title' => $this->title . ':', 'text' => '<b>' . $currencies->format($order->info['total'], true, $order->info['currency'], $order->info['currency_value']) . '</b>', 'value' => $order->info['total']); } if a put this code into a hidden field value this is what a have <b>$73.00</b> but I want just this 73 How can I do that I know, it's not the best way to see the price, but maybe it solve a problem i have.
Aziz Posted April 6, 2004 Posted April 6, 2004 Best solution make another function for the hidden values at which you will remove the <b> </b> from the coding Peace, --------------------------------
Mark Evans Posted April 6, 2004 Posted April 6, 2004 Why not just use the $order->info['total'] directly? Mark Evans osCommerce Monkey & Lead Guitarist for "Sparky + the Monkeys" (Album on sale in all good record shops) --------------------------------------- Software is like sex: It's better when it's free. (Linus Torvalds)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.