Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to modify ot_total.php


arroba_rosario

Recommended Posts

Posted

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.

Posted

Best solution make another function for the hidden values at which you will remove the <b> </b> from the coding

 

Peace,

--------------------------------

Posted

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)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...