Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Editing Boxes


CrispBH

Recommended Posts

Hi

 

I've managed to set up the store to look like the rest of the site I'm working on, with one or two small exceptions. Mainly, I need to know how to edit the boxes to get rid of the default grey images (corner_left.gif etc) that are displayed. They are also displayed in places like "New products in for $month" etc.

 

Thanks

 

-Crisp

Link to comment
Share on other sites

You can either change the color of them, to match your site, remove them all together or replace them with another image.

 

When I do not want them to show up I go into my catalog/classes/boxes/php and change the code where it is calling for them.

for example...

$left_corner = tep_image(DIR_WS_IMAGES . 'infobox/corner_left.gif');

to something like

$left_corner = tep_image(DIR_WS_IMAGES . 'pixel_trans.gif');

 

it is on the page in several places so you need to be sure you change them all

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Link to comment
Share on other sites

The image is requested within each box's php file and looks like this:

 ?new infoBoxHeading($info_box_contents, false, true);

 

If you change any calls for true to false, the image will no longer show for that corner of that box. The first is for the left corner, the second for the right. The opposite holds true when you want the curve. The files are found in includes/boxes.

Link to comment
Share on other sites

I thought the images still showed, that true ment a curve, false ment the square?

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...