Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

Where is this break tag from - Shipping titles?


2 replies to this topic

#1 dailce

  • Community Member
  • 463 posts
  • Real Name:Ilchy
  • Gender:Male

Posted 12 September 2011, 18:01

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 [img]http://forums.oscommerce.com//public/style_emoticons/default/sad.png[/img]

Edited by dailce, 12 September 2011, 18:01.


#2 DunWeb

  • Community Sponsor
  • 10,466 posts
  • Real Name:Chris Dunn
  • Gender:Male
  • Location:Tecumseh, Ontario, Canada N8N 1X8

Posted 12 September 2011, 18:06

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

Edited by DunWeb, 12 September 2011, 18:08.

:|: Was this post helpful ? Click the LIKE THIS button :|:

:|: Click Here to learn how I can help you with custom coding, add ons, security and templates :|:

:|: Need an Area Calculator, Pre-Paid Account, Virtual Pin, Auction or Layaway Add on ? Click Here :|:

#3 dailce

  • Community Member
  • 463 posts
  • Real Name:Ilchy
  • Gender:Male

Posted 12 September 2011, 18:09

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.

Edited by dailce, 12 September 2011, 18:24.