Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to resize the boxes


vjboc

Recommended Posts

Posted

open the /catalog/includes/application_top.php and edit the following line:

 

// customization for the design layout
 define('BOX_WIDTH', 125); // how wide the boxes should be in pixels (default: 125)

Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here!

8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself.

Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues.

Any issues with oscommerce, I am here to help you.

  • 3 weeks later...
Posted

Does anyone know if it is possible to make the boxes a percentage of the screen width?

 

I have a web page that is effectively 5x 20% coloumns wide. Left and right columns are 20%, and the centre "column" (main text area) is 60%. I want to integrate osC with it and keep it all as "fluid" as possible. I understand there will be a point that I can resize down beyond, but I still need it fluid.

 

Thanks to anyone that can help!

Posted

Ha-ha! :blush:

 

I didn't know I needed '20%', I just tried 20% without the single quotes!

 

Thank you 'burt'! ;)

Posted

Well, after another hour of twiddling, it turned out that define('BOX_WIDTH', '20%'); wasn't actually what I needed, although that is the correct syntax to make the box 20% of the table or cell width. What I needed to do was modify the index.php file to make the column widths 20%/60%/20%, but...

 

It turned out that the visual layout in Dreamweaver isn't the actual layout as you see the web page on-screen, and when working in "design" or "split" mode, the columns are displayed as "left/right/centre" not "left/centre/right"! The visual layout in Dreamweaver of the columns is now 20%,20%,60%!

 

All a bit confusing to a newbie, but it keeps me occupied! :blink:

 

Anyway, excuse my ramblings, but it may be of use to someone in the future?!

 

Andy.

Archived

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

×
×
  • Create New...