Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Customizing Layout without templates?


slowdive

Recommended Posts

Posted

I've been running several sites selling band merchandise for a while using straight up Paypal html code. This has worked fine, but is extremely limiting. I ran into osCommerce as it was bundled with my webhost. The features it offers are impressive.

 

However, I'm very anal about layout with my pages, and want it to melt right in with everything. I was discouraged to see the inability to totally modify it from the Customization tab, as you would many guestbooks, etc. Then I noticed on here most people refer to templates.. which isn't what I'm looking for as I need to be very spefic to MY look, not someone elses.

 

Is there something I am missing where I can easily customize everything? Going through the php individually isn't something I can do.

 

Grealty looking forward to any advice. Thanks.

Posted
I've been running several sites selling band merchandise for a while using straight up Paypal html code. This has worked fine, but is extremely limiting. I ran into osCommerce as it was bundled with my webhost. The features it offers are impressive.

 

However, I'm very anal about layout with my pages, and want it to melt right in with everything. I was discouraged to see the inability to totally modify it from the Customization tab, as you would many guestbooks, etc. Then I noticed on here most people refer to templates.. which isn't what I'm looking for as I need to be very spefic to MY look, not someone elses.

 

Is there something I am missing where I can easily customize everything? Going through the php individually isn't something I can do.

 

Grealty looking forward to any advice. Thanks.

 

If you want to match osC to an existing html site and you want to stay away from the php as much as possible then I would suggest the sts template system. It will allow you to do most of your customizing from one html file and the stylesheet.

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Posted

If you want that degree of control over the layout and look of your site then you'll probably have to do a radical modification of osCommerce. For example, the index.php page in the root directory contains the code for the tables, and calls in the header, footer, left and right columns, and leaves a space to call in the main page content from includes/languages/english/index.php. This level index.php file actually contains what you see in the center of the page, and you can use standard html, product links, text etc. in this page.

 

If you then want to strip out the left and right columns you can replace this navigation with navigation of your own in the header.php file, or, if you want your own left navigation, you can strip out the includes for left and right columns in the root level pages. Ths will give you what appears to be a standard html website, whilst still using many of the features of osCommerce.

 

The code below will strip out the left and right navigation columns from your root level pages, and allow you to decide what products to display, and what navigation to use.

 

<body bgcolor="#ffffff">

<center><table width="738" border="0">

<tr>

<td><?php require(DIR_WS_INCLUDES . 'header.php'); ?></td>

</tr>

</table>

</center>

<center><table dir="ltr" width="738" border="0">

<tr>

<td valign="top" width="100%" class=main>

<?php echo TEXT_MAIN; ?>

</td>

</tr>

</table></center>

 

<center><table width="738" border="0"><tr><td><?php require(DIR_WS_INCLUDES . 'footer.php'); ?></td></tr></table>

 

</center>

<br>

</body>

</html>

<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

 

The advantage of this is that it is w3c compliant - which means that your pages will display the same, and correctly, in any browser that is in any way w3c compliant itself.

 

Vger

Archived

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

×
×
  • Create New...