Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

where's the code that describes where the little corners at top of columns sit?


squeakstar

Recommended Posts

hi kinda re-posting with a slightly different description hopefully to get a better response...

 

where's the code that describes the layout of the column heading info box graphics, and how can i tweak it behave as i wish?

 

i followed the description in knowledge base to add images to infobox headings which works for nearly all of the headings - the ones that were more problematic were the very top column headings.

 

now, i managed to get the top of column left working fine with a replacement for the corner_left.gif and corner_right.gif, but i can't can't get the top of the right column to behave properly, which contains two corners AND an arrow link.

 

because the arrow link is at the end of some heading rows i designed the arow to look like "the end" of my image, but with the shopping cart at the top of a column my box has like two end looking images sat side by side which looks daft.

 

i wish to somehow tweak what would be the code that describes the 4 cells at top of column right for the shoppping cart. at the moment they behave like so;

left corner, image, arrow link, right corner

 

to behave like this with 3 cells;

left corner, image, arrow link + right corner all as one image

 

please help, i'm a bit of newby but mkaing good progress i reckon with some great help from other users so far. one day i'll be an oscommerce jedi too ;)

 

thanks in advance

 

squeak squeak

Link to comment
Share on other sites

matthew,

You can find the lines in includes/boxes/shopping_cart.php. Where it says:

new infoBoxHeading($info_box_contents, false, true);

that's the call for the images in the top corners; false for no image makes it rectangular all the way across.

In that same area, you'll see the call for the arrow image and link to the cart. i dropped mine a while ago, so I don't remember exactly, but I think it was in this line:

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

If you see that and it has more code in it (like link etc., try that in its place and see if it works for you.

Link to comment
Share on other sites

includes/classes/boxes.php

 

Thats the file with the constructers that puts those silly things in there.

 

Using the "true and false" game above does not actually remove them - NOR does it give you the control to adjust the MANY unnesseccary cell padding paramaters that seem to abound in osCommerce boxes.

 

Hope that helps a bit.

Link to comment
Share on other sites

includes/classes/boxes.php

 

Thats the file with the constructers that puts those silly things in there.

 

Using the "true and false" game above does not actually remove them - NOR does it give you the control to adjust the MANY unnesseccary cell padding paramaters that seem to abound in osCommerce boxes.

 

Hope that helps a bit.

 

 

thanks!! both the above comments makes sense of all the odd bits i've been looking at.

 

currently the missus had me putting up shelves but i will look over it later this evening and post back if i'm still having trouble. i think you've given me eoungh info though. many thanks again :thumbsup:

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...