Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Where is this break tag from - Shipping titles?


dailce

Recommended Posts

Posted

On the account_history_info.php page - I can't believe I can't find where this break is

The html code for shipping for instance will show the name like this:

 

Per Item<br>
(Best Way):


 

But where is the break tag being created? I can't find it in the language file.

 

The code is $order->totals[$i]['title']

 

But I checked the files and can't seem to find it sad.png

Posted

What you are looking for is this array found in the /includes/modules/shipping/table.php file:

 

 

$this->quotes = array('id' => $this->code,

'module' => MODULE_SHIPPING_TABLE_TEXT_TITLE,

'methods' => array(array('id' => $this->code,

'title' => MODULE_SHIPPING_TABLE_TEXT_WAY,

'cost' => $shipping + MODULE_SHIPPING_TABLE_HANDLING)));

 

 

The shipping method is not passed to the account_history_info.php file.

 

Chris

Posted

No I don't think that's it. Maybe there is nl2br somewhere?

 

Just added str_replace("<br/>"," ",$order->totals[$i]['title']) to remove the break tag, still can't find the code though.

Archived

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

×
×
  • Create New...