Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Column displays issue


AdmiralRedBeard

Recommended Posts

Hi,

 

I recently uploaded the oscommerce Online Merchant v. 2.3.4. I have made some css changes and customized my header and footer. I have deactived the infobox modules that were set to display in the right column and have encountered a strange issue. If I only have boxes makred to display in the left column they do not appear on the page at all and if I add just one box to the right column, the left column boxes display with the right column box displaying right under the left column boxes. Why would this be happening?

 

I would like to remove the right column altogether to have a 2-column layout to make the most out of the page's real estate. Is this possible?

 

Also, even though I can get the left hand column to display. When I enter any one of the checkout pages, the left column disappears and the main content gets expanded. When I use FireBug to look at the generated code, the class for the main content is listed as 18 (should be 12) and the same goes fot the left column ( the pull is 18 and should be 12). If I manually adjust the class settings, the display is proper, with the exception of having to have one right column box (as stated above).

 

Any help that you can provide would be greatly appreciated.

Link to comment
Share on other sites

I have made some css changes

 

Your problems sound like the result of botching the CSS changes.

 

the left column boxes display with the right column box displaying right under the left column boxes.

 

Sounds like the CSS is wrong.

 

Put everything back the way it was, and make one change at a time. Eventually you will hit the wrong change you made and can figure out how to get the results you want.

Link to comment
Share on other sites

Thank you for your reply.

 

While I do agree with you that poor CSS can adversely alter the display of items, the issue here seems to be within the class that is assigned from the php code. I figured out how to get the left column to display all while converting to a 2 column layout, but to me it doesn't make much sense. In the osc_template, I had defined my content box to be 12 and the columns to be 6 which would add up to 24. On the pages where the left column did not display, the class for the bodyContent is set to grid_18 push_6. If I change the class to grid_17 push_6, then the left column displays and I have a nice padded edge so that my content is not pressed up to the edge the the bodyWrapper. So in my osc_template file, I set the column to 6 and the content to 17. The thing that I don't understand is why it works ok if my total number of grids used is less than the container. I was under the impression that you had to utilize each of the 24 columns.

 

Even though I set all boxes in the admin panel to the left column and got the left column display somewhat solved, I do still have one issue. On all of the checkout pages, my bottom box is missing. I have 3 boxes on the left: Login box, a Facebook box, and the We Accept box. The 'We Accept' box is missing on all of the checkout pages.

Link to comment
Share on other sites

We Accept box. The 'We Accept' box is missing on all of the checkout pages.

That is as it is coded. It does not appear in the checkout.

 

This piece of code controls it:

 

(substr(basename($PHP_SELF), 0, 8) != 'checkout') &&
Link to comment
Share on other sites

Archived

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

×
×
  • Create New...