Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Visual glitch in infobox bar


Follkes

Recommended Posts

Hi all.

 

After installing a couple of contributions I found a visual glitch in a infobox bar. The idea was to expand it to match the other in the web. After checking the .php involved i found that inserting a name ( in wamp )would do the trick.

 

from:

 

$header_tags_array['product'] = strip_tags($header_tags_array['product']);
 $parts = explode(" ", $header_tags_array['product']);
 $heading = $parts[0];
 $i = 0;
 while (strlen($header) < 12)
 {
   $header .= ' ' . $parts[$i++];
 }

 $info_box_contents = array();
 $info_box_contents[] = array('text' => $header);

 new infoBoxHeading($info_box_contents, false, false);

 

to:

 

$header_tags_array['product'] = strip_tags($header_tags_array['product']);
 $parts = explode(" ", $header_tags_array['product']);
 $heading = $parts[0];
 $i = 0;
 while (strlen($header) < 9)
 {
   $header .= 'Viewing..' . $parts[$i++];
 }

 $info_box_contents = array();
 $info_box_contents[] = array('text' => $header);

 new infoBoxHeading($info_box_contents, false, false);

 

The question:

 

Rubbish solution or any idea to set the WIDTH properly ?

 

Thank you.

 

PD: The box can be see at www.hmsistemas.es/shop/catalog/product_info.php/regulador-phocos-cxn20-p-30

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...