Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to change the infobox design?


williamteh

Recommended Posts

Open thoses files (includes/boxes/shopping_cart.php) and find this code

new infoBoxHeading($info_box_contents, true, false);

The true & false may be different in yours. Change either to waht you want. They represent whether or not the corner is rounded, which I think is what you are asking.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Open thoses files (includes/boxes/shopping_cart.php) and find this code
new infoBoxHeading($info_box_contents, true, false);

The true & false may be different in yours.  Change either to waht you want.  They represent whether or not the corner is rounded, which I think is what you are asking.

 

Jack

 

This is correct and also if you want to change the actual image it uses for the rounded edges etc you can modify the /includes/classes/boxes.php around line 104 you get this code for the infoBoxHeading class.

 

  if ($left_corner == true) {
       $left_corner = tep_image(DIR_WS_IMAGES . 'infobox/corner_left.gif');
     } else {
       $left_corner = tep_image(DIR_WS_IMAGES . 'infobox/corner_right_left.gif');
     }
     if ($right_arrow == true) {
       $right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'infobox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>';
     } else {
       $right_arrow = '';
     }
     if ($right_corner == true) {
       $right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'infobox/corner_right.gif');
     } else {
       $right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '11', '14');
     }

 

Just modify the path and filename of the corner_right.gif and corner_left.gif in the above IF blocks to whatever image you want to use.

 

-Dave

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...