Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Integrating osCommerce with Templates


flanque

Recommended Posts

Hello,

 

Are there any guides, tips, tricks, requirements, how-tos, etc on how to integrate osCommerce into website templates? I have purchased a simple website template and want to make it "osCommerce enabled" so to speak.

 

How is this done? I'm quite experienced with PHP, HTML, JS, CSS, etc but experience has taught me to ask those in the know for help so you can get the job done quicker.

 

 

Thanks.

Link to comment
Share on other sites

try http://www.oscommerce.com/community/contributions,1524/

 

I found it easy to use once i got used to it. Completely able to change the look by html only (well, and css for looks, and if you turn off the infobox borders n all, use the template to create the boxes, you can do anything with it)

 

and read the support thread for it (location in the readme file) and you will learn tons of tricks

Link to comment
Share on other sites

try http://www.oscommerce.com/community/contributions,1524/

 

I found it easy to use once i got used to it.  Completely able to change the look by html only (well, and css for looks, and if you turn off the infobox borders n all, use the template to create the boxes, you can do anything with it)

 

and read the support thread for it (location in the readme file) and you will learn tons of tricks

 

Hi thanks for that. I feel this question is way too silly to put in the support thread...

 

I install it seemingly fine (after installing osCommerce successfully) and when i view the sample html page it just shows all $categorybox, $manufacturerbox, etc but not the actualy content.

 

What's going on? I cannot find a resolution in the readme or anywhere else thus far.

Link to comment
Share on other sites

are you trying to view your site when going to includes/sts_template.html ??? that wont show up... try goign to the main index of your site... catalog/index.php... if that doesn't show up, i should check to see that you did all the conversions needed for it to work properly...

 

but I'm not sure if there is compatablity issues with those versions of mysql/apache/php sorry

Link to comment
Share on other sites

are you trying to view your site when going to includes/sts_template.html ??? that wont show up... try goign to the main index of your site... catalog/index.php... if that doesn't show up, i should check to see that you did all the conversions needed for it to work properly...

 

but I'm not sure if there is compatablity issues with those versions of mysql/apache/php sorry

 

Hi,

 

Nah I am going to the catalogu/ folder to run the script.

Link to comment
Share on other sites

Without STS, does everything work fine?

 

Yeah osCommerce functions perfectly okay without the STS installed. It's getting STS to work that's my problem.

 

Also, is it just me who is finding osCommerce extremely complicated to customise to one's own website template??

 

I mean, I'm a programmer from way back and have written several complicated systems, but the way osCommerce is implemented seems to be excessively complicated to me, lacking thought about how others would like to customise their layout to ones own.

 

Anyways, your help getting this working would be greatly appreciated.

Link to comment
Share on other sites

Yeah osCommerce functions perfectly okay without the STS installed. It's getting STS to work that's my problem.

 

Also, is it just me who is finding osCommerce extremely complicated to customise to one's own website template??

 

I mean, I'm a programmer from way back and have written several complicated systems, but the way osCommerce is implemented seems to be excessively complicated to me, lacking thought about how others would like to customise their layout to ones own.

 

Anyways, your help getting this working would be greatly appreciated.

 

Yes, it is difficult to customize, but a lot of the 'old timers,' especially in the forums, take this as a badge of honor once you figure it out. there are some newbie-friendly people, then the masses of everyone else here trying to figure out how to customize the look.

 

For your STS problems, take the example html file, open it, and copy your design into there. If you create your own html, you must have the header content the same as the example html file. If you are missing a call, or add <header> or stuff like this, it won't work. i dont have it in front of me, but, one of the calls in the header is the translation of the $tags into content. It will fix it. And the header files are called from the php files, so dont include that in the header like a 'normal' html file. read the readme file again with it, there is an explanation somewhere. later this evening, i will get a chance to look at it and post exactly what you need there.

 

without it, it will just show up as $content $cart etc.

Link to comment
Share on other sites

Using STS I am able to use and change osc anyway I like, from simple templates to complicated ones I have bought, so I would try again as it is worth the effort using sts.

Link to comment
Share on other sites

Using STS I am able to use and change osc anyway I like, from simple templates to complicated ones I have bought, so I would try again as it is worth the effort using sts.

 

i would have to agree. if you just use it for layout, you can learn php enough to not bother, as you'll need to change php to change box looks anyway. but if you are going to use the more advanced things you can do with sts, it really is great. if i can get permission from site owner, i will show you an example. my only site i can show you is actually pretty bad (as its the owners graphics, wanted color schemes, etc.)

Link to comment
Share on other sites

i would have to agree.  if you just use it for layout, you can learn php enough to not bother, as you'll need to change php to change box looks anyway. but if you are going to use the more advanced things you can do with sts, it really is great. if i can get permission from site owner, i will show you an example. my only site i can show you is actually pretty bad (as its the owners graphics, wanted color schemes, etc.)

 

Hi,

 

Thanks for the help so far. I would be very interested in seeing someone's working template file. I've been over the readme so many times ...

Link to comment
Share on other sites

This is mine, i just started workign on it a couple days ago, and haven't really done anything ... but it works for me at least

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<!--$headcontent-->
<link rel="stylesheet" type="text/css" href="stylesheet.css">
</head>
<body>
<table width="750" align="center">
<tr class="header">
 <td width="375" align="left">
	 <div align="left">$cataloglogo</div>
 </td>
</tr>
</table>

<table width="750" class="headerNavigation" align="center">
<tr class="headerNavigation">
 <td class="headerNavigation" width="375">
	 <div align="left">$breadcrumbs</div>
 </td>
 <td class="headerNavigation" width="375">
	 <div align="right">$myaccountlogoff | $cartcontents | $checkout</div>
 </td>
</tr>
</table>

<table width="750" align="center">
<tr>
 <td width="150" valign="top">
	 <p>$categorybox</p>
	 <p>$manufacturerbox</p>
	 <p>$searchbox</p>
	 <p>$informationbox</p>
 </td>
 <td  valign="top">
	 $content
 </td>
 <td width="150" valign="top">
	 <p>$cartbox
	 <p>$loginbox
	 <p>$maninfobox
	 <p>$orderhistorybox
	 <p>$bestsellersbox
	 <p>$specialfriendbox
	 <p>$reviewsbox
 </td>
</tr>
</table>

<table class="footer" width="750" align="center">
<tr class="footer">
 <td class="footer" width="750">
	 $footer
 </td>
</tr>
</table>
</body>
</html>

 

I hope no one gets upset with me postinga 60 line post ~_o! If you dont like it, i'll rem it , and make a working smaller one for him ~_o

Link to comment
Share on other sites

60 lines smhixty lines :D Minus the divs. Standard layout.

 

<html>
<head>
<!--$headcontent-->
<link rel="stylesheet" type="text/css" href="stylesheet.css">
</head>
<body>
<!-- Header Table -->
<table width="100%" border="0" cellpadding="3" cellspacing="0">
?<tr class="header"> 
? ?<td>$cataloglogo</td>
? ?<td align="right">$myaccountlogo $cartlogo $checkoutlogo</td>
?</tr>
</table>
<!-- Nav Table -->
<table width="100%" border="0" cellpadding="3" cellspacing="0">
?<tr class="headerNavigation"> 
? ?<td class="trailText">$breadcrumbs</font></td>
? ?<td align="right" class="trailText">$myaccountlogoff 
? ? ? ?| $cartcontents | $checkout</td>
?</tr>
</table>
<!-- 3 Columns Left/Content/Right Table -->
<table width="100%" border="0" cellpadding="3" cellspacing="0">
?<tr> 
? ?<td width="125" valign="top"> 
? ? ?<p>$categorybox
? ? ?<p>$catmenu
? ? ?<p>$searchbox
? ? ?<p>$manufacturerbox
? ? ?<p>$informationbox</td>
? ?<td valign="top">
?$content
? ?</td>
? ?<td width="125" valign="top"> 
? ? ?<p>$cartbox
? ? ?<p>$maninfobox
? ? ?<p>$orderhistorybox
? ? ?<p>$bestsellersbox
? ? ?<p>$specialfriendbox
? ? ?<p>$whatsnewbox
? ? ?<p>$reviewsbox
? ?</td>
?</tr>
</table>
<br>
<!-- Footer Table -->
<table width="100%" border="0" cellpadding="3" cellspacing="0">
?<tr> 
? ?<td align="center">$footer</td>
?</tr>
</table>
<!-- Banner Table -->
<table width="100%" border="0" cellpadding="3" cellspacing="0">
?<tr> 
? ?<td align="center">$banner</td>
?</tr>
</table>
</body>
</html>

 

Iggy

Everything's funny but nothing's a joke...

Link to comment
Share on other sites

$headcontent: Put this string in your <head> section so that it can insert

the dynamic head content and javascript on pages that require it. This will

probably require putting the $headcontent in the <head> section in the source

code. It's a pain to do it this way, but it was the only way I could get it

working. Sorry!

 

<!--$headcontent--> : You can use this commented format of $headcontent to

keep the word "$headcontent" from displaying in your web authoring software.

 

NOTE: Do not put <title>...</title> tags in your header. It will be added

as part of the $headcontent variable, along with the Description and Keywords

meta tags if you have the WebMakers.com's Header Tag Controller contribution

installed.

=================================

also, the amazon.com look, horizontal tabs, this guy who's wonderful osc store is at:

here

explains how to do that in another post here:

http://www.oscommerce.com/forums/index.php?sho...ic=90505&st=20#

 

Read that, if you are willing to do a little work. The entire thread has tips and tricks listed for sts. Also explore his site as its great and you can see what you can do with osc + sts. Its a live store though, so dont mistakenly order tons of stuff!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...