Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Contribution] STS v4


Guest

Recommended Posts

Thanks for the instructions Bill! :thumbsup:

 

I do have one question left - do I replace the $footer_text with the <?php include("footer.php.html"); ?> or do I need to have both in my template? :blush:

In your STS page template, just add the include code. In your footer.php.html template, add your $footer_text and whatever else you want in there. :rolleyes:

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

Enahncement idea:

 

It hink it would be good if admins could choose an installed template from drop down list (with all saved parameters for the selected template).

 

Perhaps in next version ?

I think this would add a lot of unnecessary code to the installation and make it more difficult for what you would get in return.

 

STS currently allows you to add your template folder in admin. So... you are already getting the feature of adding an entirely new theme to your shop just by changing template folders in the admin.

 

As far as changing specific templates, that is just a matter of creating the template and adding it to your template folder. STS will automatically detect the template being used just by the naming structure in place.

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

Feeling a little silly here as I seem to be the only one who could not install!! Installing version STS - 4.5.8 - Short problem is that I am getting "Blank Pages" in the admin area.

 

I followed all the instructions for a manual install (as I have other contrib's up and running) but did run into some mismatching that might have thrown me. I used the RC1 files during the install. I dropped the catalog from the path and have OSC loaded at the top level of the \public_protected. (I'm also using HTTPS)

 

in one section it states ...

 

2.4 Modify osCommerce file

 

catalog\admin\modules.php

 

but in 2.5.1 >> includes/modules.php (and this file does not seem to exist)

 

What has happened now is that if I log in I get a blank page even if the module is set to off, (though I'm not even sure that I'm actually installing it as it goes straight to a blank page) ....

 

I have to login >.. get blank page >.. then re-type admin (in the url) and I get the admin page ....

 

I have been through the entire installation twice now and can not see where I went wrong.

 

I am no programmer and any help at all would be greatly received.

 

Nigel.

Link to comment
Share on other sites

Feeling a little silly here as I seem to be the only one who could not install!! Installing version STS - 4.5.8 - Short problem is that I am getting "Blank Pages" in the admin area.

 

I followed all the instructions for a manual install (as I have other contrib's up and running) but did run into some mismatching that might have thrown me. I used the RC1 files during the install. I dropped the catalog from the path and have OSC loaded at the top level of the \public_protected. (I'm also using HTTPS)

 

in one section it states ...

 

2.4 Modify osCommerce file

 

catalog\admin\modules.php

 

but in 2.5.1 >> includes/modules.php (and this file does not seem to exist)

 

What has happened now is that if I log in I get a blank page even if the module is set to off, (though I'm not even sure that I'm actually installing it as it goes straight to a blank page) ....

 

I have to login >.. get blank page >.. then re-type admin (in the url) and I get the admin page ....

 

I have been through the entire installation twice now and can not see where I went wrong.

 

I am no programmer and any help at all would be greatly received.

 

Nigel.

 

Nigel,

 

Most likely you made the changes to the wrong module.php file.

 

For easy installation:

  1. Copy over all of the files from the STS folder into your shops folder structure. Keep the folder structure in tact after the "catalog" folder.
  2. Merge in the differences from the "files for MS2" or "files for RC1" (depending on which osC version you have) into your shops folder structure. Keep the folder structure in tact after the "catalog" folder.
  3. Configure STS in the STS Modules section in your shops admin.

:thumbsup: To make the merge easier, use a file comparison tool such as Beyond Compare to easy bring in the code changes. This helps to get the code in the correct lines and rule out any typos.

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

- BUG FIXED: STSv4.5.6 introduced a bug regarding how the buffer was cleaned. STSv4.5.8 reverts back to STSv4.5.5 method of destroying the buffer to allow cascading buffers. Files modified: catalog/includes/classes/sts.php.

 

From what I can see in this file ob_clean() has changed to ob_end_clean() around line 116.

 

Changing this however results in the last part of my templates '</html>' tag being cut off leaving me with '</' - which is obviously not so good...

Link to comment
Share on other sites

From what I can see in this file ob_clean() has changed to ob_end_clean() around line 116.

 

Changing this however results in the last part of my templates '</html>' tag being cut off leaving me with '</' - which is obviously not so good...

 

I don't see what you are referring to. Making those changes would not effect what you are getting.

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

I don't see what you are referring to. Making those changes would not effect what you are getting.

 

Sorry, I'll try and explain better.

 

I am trying to track down a really anoying bug where almost every other time you click the payment confirmation button the basket contents dissappears before the protx_process page can run (http://www.oscommerce.com/forums/index.php?s=&showtopic=195199&view=findpost&p=1158084), so I was checking the contribs I have used to see if there where any updates. In the lastest STS contrib you say

 

BUG FIXED: STSv4.5.6 introduced a bug regarding how the buffer was cleaned. STSv4.5.8 reverts back to STSv4.5.5 method of destroying the buffer to allow cascading buffers. Files modified: catalog/includes/classes/sts.php.

 

So I just change the ob_clean() to ob_end_clean() in the sts.php file (around line 116). Having only changed this I then found that the end of the template file was being cut off. '</' was visible at the bottom of the page and when I viewed the source my closing </html> tag was now only </ , if I added a comment afterwards it would truncate the comment instead and leave <!--.

 

When I changed ob_end_clean() abck to ob_clean() everything went back to normal.

 

I just thought that I would mention it, but maybe its only me that it happend to!?

BTW how was the bug manifesting itself?

Link to comment
Share on other sites

Thanks Bill - got it up and running in no time! I just love your template system :thumbsup:

 

 

In your STS page template, just add the include code. In your footer.php.html template, add your $footer_text and whatever else you want in there. :rolleyes:

~Tracy
 

Link to comment
Share on other sites

I cannot get my popups to work despite many frustrating hours looking at all of the forums!

 

I am using STS and it looks great but I get an error when I click to enlarge the image.

 

My Template page has the correct head section I think

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html $htmlparams>

<head>

<meta http-equiv="Content-Language" content="en-us">

<!--$headcontent-->

<link rel="stylesheet" type="text/css" href="stylesheet.css">

 

<script language="JavaScript" type="text/JavaScript">

 

And the code when displayed when I view online is

 

 

<!-- start get_javascript(applicationtop2header) //-->

 

<!-- end get_javascript(applicationtop2header) //-->

 

<link rel="stylesheet" type="text/css" href="stylesheet.css">

 

<script language="JavaScript" type="text/JavaScript">

<!--

 

My header file in catalog/includes/header.php includes....

 

// START STS 4.1

$sts->restart_capture ('applicationtop2header');

// END STS 4.1

 

// check if the 'install' directory exists, and warn of its existence

if (WARN_INSTALL_EXISTENCE == 'true') {

if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) {

$messageStack->add('header', WARNING_INSTALL_DIRECTORY_EXISTS, 'warning');

}

}

 

Can anyone shed any light on this please?

 

Many thanks

 

Eddy

Link to comment
Share on other sites

Eddy,

 

You do not need the following line in your template to use the popup image:

<script language="JavaScript" type="text/JavaScript">

Do you have the

<!--headcontent-->

in your head section?

 

This placeholder is very important in the template. It takes care of html meta tags and javascript that are to be placed in the html header of the page.

 

It will place the following in your template:

 

- http-equiv meta tag with charset

- title meta tag (from $headertags)

- base URL

- Javascript found in includes/header.php

 

 

Use: place between <head> and </head> of your template. It is important to keep the comment chars before and after $headcontent otherwise it won't work!

 

If the above does not apply, try using one of the sample templates to see if still are having popup image problems.

 

Does your popups not work if STS is disabled?

 

Edited by bkellum

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

Eddy,

 

You do not need the following line in your template to use the popup image:

<script language="JavaScript" type="text/JavaScript">

Do you have the

<!--headcontent-->

in your head section?

 

This placeholder is very important in the template. It takes care of html meta tags and javascript that are to be placed in the html header of the page.

 

It will place the following in your template:

 

- http-equiv meta tag with charset

- title meta tag (from $headertags)

- base URL

- Javascript found in includes/header.php

Use: place between <head> and </head> of your template. It is important to keep the comment chars before and after $headcontent otherwise it won't work!

 

If the above does not apply, try using one of the sample templates to see if still are having popup image problems.

 

Does your popups not work if STS is disabled?

 

Thanks for your reply. I have the javascript bit in there as I have some javascript rollovers on my design.

 

The pop ups dont seem to load either when STS is turned off. Also, when I upload a product, should I have a box to choose to upload a popup image along with the main image? I dont seem to have that option.

 

If it helps, the site can be found at www.coffeebeanstealeaves.co.uk/catalog so you can see what error I get. Please note that the site isnt finished but I want to go live asap.

 

thanks

 

Eddy

Link to comment
Share on other sites

Is there a way to edit the $categorybox placeholder?

i'm working with the latest version of sts. what im trying to do is to add some styling to the category box.

 

here is a slice of the code.

 

  <tr>
<td class="boxText"><a href="http://www.winecabinet-vinotemp.com/index.php?cPath=23">Wine Accessories</a><br><a href="http://www.winecabinet-vinotemp.com/index.php?cPath=21">Wine Chillers</a> (1)<br><a href="http://www.winecabinet-vinotemp.com/index.php?cPath=22">Wine Racking</a><br></td>
 </tr>

 

this is what my css looks like

 

.boxText a:link, .boxText a:visited, .boxText a:hover, .boxText a:active {
text-decoration:none;
color:#ffffff;
display: block;
height: 20px;
width: 150px;
background-color: #333333;
border: 1px solid #000000;
padding: 0px;
}

 

but the problem is the number of sub categories is not wrapped in the <a>

 

is there a way to edit the code so the number of sub categories is wrapped in side the <a> tag?

 

i hope this makes sense.

 

link to the test template

 

thanks

Link to comment
Share on other sites

Is there a way to edit the $categorybox placeholder?

i'm working with the latest version of sts. what im trying to do is to add some styling to the category box.

 

here is a slice of the code.

 

  <tr>
<td class="boxText"><a href="http://www.winecabinet-vinotemp.com/index.php?cPath=23">Wine Accessories</a><br><a href="http://www.winecabinet-vinotemp.com/index.php?cPath=21">Wine Chillers</a> (1)<br><a href="http://www.winecabinet-vinotemp.com/index.php?cPath=22">Wine Racking</a><br></td>
 </tr>

 

this is what my css looks like

 

.boxText a:link, .boxText a:visited, .boxText a:hover, .boxText a:active {
text-decoration:none;
color:#ffffff;
display: block;
height: 20px;
width: 150px;
background-color: #333333;
border: 1px solid #000000;
padding: 0px;
}

 

but the problem is the number of sub categories is not wrapped in the <a>

 

is there a way to edit the code so the number of sub categories is wrapped in side the <a> tag?

 

i hope this makes sense.

 

link to the test template

 

thanks

 

 

 

Nevermind guys i got it...

thanks!!

Link to comment
Share on other sites

Thanks for your reply. I have the javascript bit in there as I have some javascript rollovers on my design.

 

The pop ups dont seem to load either when STS is turned off. Also, when I upload a product, should I have a box to choose to upload a popup image along with the main image? I dont seem to have that option.

 

If it helps, the site can be found at www.coffeebeanstealeaves.co.uk/catalog so you can see what error I get. Please note that the site isnt finished but I want to go live asap.

 

thanks

 

Eddy

Eddy,

 

You do not need to upload an additional image for the popup_image.php to work properly. As this doesn't work for you with STS turned off, It appears that you have some code messed up in either your catalogs product_info.php, popup_image.php or even missing the javascript.

 

STS will not help you out until you get the above worked out. :(

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

IS THERE ANYWAY TO GET ADDITIONAL IMAGES v2.0.0 to work with STS. I TRIED IT AND for all my products when I click "click to enlarge" nothing happens. I don't get a pop-up [when I have STS "on (true)" but when I have STS "off (false)" my pop-ups work perfectly.]

example of pop-ups not working...

http://stilocamp.com/product_info.php?cPat...;products_id=32

 

Anyone have any clue what I can do?

Edited by bored2death
Link to comment
Share on other sites

For some reason, my footer is now inside the main part of my table, I've tried resizing the table to 780 in the four places this can be done but it still shows full screen and wonder if this is due to the footer placement.

 

This is my code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html $htmlparams>
<head>
<!--$headcontent-->
 <link rel="stylesheet" type="text/css" href="stylesheet.css">
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">

<table width="780" height="100" border="0"  align="center" cellpadding="10" cellspacing="0">
<tr class="header">
	<td valign="centre" bgcolor="#000000">
		<div align="center"><img border="0" src="images/logo.jpg">
			<a href="$urlmyaccount"></a>
			<a href="$urlcartcontents"></a>
		  <a href="$urlcheckout"></a> </div></td>
</tr>
</table>

<table border="0" width="780" cellspacing="0" cellpadding="1" align="center">
<tr class="headerNavigation">
	<td class="headerNavigation">
		  
		$breadcrumbs
	</td>
	<td align="right" class="headerNavigation">
		<a href="http://www.mydomain.co.uk">Home</a> | $myaccountlogoff | $cartcontents | $checkout 
		  
	</td>
</tr>
</table>

<table border="0" width="780" cellspacing="3" cellpadding="3" align="center">
 <tr>
<td width="125" height="167" valign="top">

  <table border="0" width="125" cellspacing="0" cellpadding="2">
	<tr><td>$catmenu</td></tr>
	<tr><td>$categorybox</td></tr>
	<tr><td>$specialbox</td>
	</tr>
	<tr><td>$searchbox</td>
	</tr>
	<tr><td>$informationbox</td>
  </table>
</td>
<td valign="top">
  <p>$content</p>
  <p> </p>
</td>
<td valign="top" width="125">
  <table border="0" width="125" cellspacing="0" cellpadding="2">
	<tr><td>$cartbox</td></tr>
  </table>
</td>
 </tr>
</table>

<table border="0" width="780" cellspacing="0" cellpadding="1" align="center">
 <tr class="footer">
<td class="footer">
  $date  
</td>
<td align="right" class="footer"><span class="smallText">$footer_text </span></td>
 </tr>
</table>
</body>
</html>

 

Any suggestions?

 

Thanks

 

Does anyone have any ideas on this, I've tried everything but cannot work out why my main shop is bigger than the header.

 

Would really appreciate some help.

Thanks

Link to comment
Share on other sites

is there anyway to get functional additional images with STS?

 

I tried using "Additional Images v2.0.0 with STS" and as long as STS is turned on (true) my images will not pop-up when I click "click to enlarge"

 

example of my problem...

http://stilocamp.com/product_info.php?cPat...;products_id=32

Edited by bored2death
Link to comment
Share on other sites

is there anyway to get functional additional images with STS?

 

I tried using "Additional Images v2.0.0 with STS" and as long as STS is turned on (true) my images will not pop-up when I click "click to enlarge"

 

example of my problem...

http://stilocamp.com/product_info.php?cPat...;products_id=32

Jon,

 

Do you have the

<!--headcontent-->

in your head section?

 

I do not use the Additional Image 2.0 contribution but I can advise you regarding STS and how it relates to other contributions that modifiy the product info page.

 

You'll need to make some changes in the includes/modules/sts_inc/product_info.php file.

In general, the changes that a contribution makes in catalog/product_info.php must also be done in the includes/modules/sts_inc/product_info.php file when using content templates. To rule out a content template issue, temporarily turn off the Product Info module for content templates in your store's admin.

 

:thumbsup: If all you want is to have additional images for your products, then checkout More Pics 6 or Ultrapics. Each are working with STS (check the STS Power Pack site for detailed installation for these contributions - link in my signature below).

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

Does anyone know if there is a search engine friendly URL package that works with STS? I have one installed but it makes the images function incorrectly for some reason. Looks like I may have to uninstall it to get things working

 

Eddy

Link to comment
Share on other sites

I used Ultimate SEO URL's by Chemo - didn't seem to cause any problems :thumbsup:

http://addons.oscommerce.com/info/2823

 

Does anyone know if there is a search engine friendly URL package that works with STS? I have one installed but it makes the images function incorrectly for some reason. Looks like I may have to uninstall it to get things working

 

Eddy

~Tracy
 

Link to comment
Share on other sites

I'm trying to re-build our site with RC1 and newer contrib's to see if I can get some glitches fixed.

 

Right now I have RC1, STS 4.5.8 and am trying to add HTC 2.6.3 - I can't seem to find any reason for this, but the Header tags only work for the page title when STS is turned off. Is there some change I need to make to an STS file? I can't seem to locate any looking at the install instructions that come with HTC 2.6.3 or in the sts_htc_docs_2of2 file (most recent instructions I've found for implementing HTC and STS).

 

TIA :thumbsup:

~Tracy
 

Link to comment
Share on other sites

PS - when I added headertags.php in the admin side after sts_user_code.php I got errors as it was looking in includes/modules/sts_inc/ for the headertags.php file - so I added that file from from STS 4.5.2 and had to change the "require" to "require_once" as I was getting "cannot redeclare" errors.

 

I have no errors at the moment - but I have absolutely no page titles either? It just shows me the browser type at the top of the browser window, but no title. :huh: I know I must be missing something quite simple - I have tried removing the comments from the <!-- $headcontent --> so that it is just $headcontent, didn't do anything, so I added $headertags underneath of it (neither one commented out) and still didn't change anything.

 

I see in the user manual for 4.5.8 it says this next to $headertags:

New in v4.0.4: The meta tags for the <head> section of the html page. By default contains only the <TITLE> meta tag. This variable is automatically inserted into the $headcontent variable, so you don't need to use it in your template.

Note: This variable can be modified by some modules to allow for other meta tags, for example a module for header tags controller modifies this variable to add description and keywords to the pages

 

But it doesn't really say how to modify that variable. I've gone through the install and various module pages in the doc folder as well, but I can't seem to locate any info on how to modify the $headcontent :blush:

 

 

I'm trying to re-build our site with RC1 and newer contrib's to see if I can get some glitches fixed.

 

Right now I have RC1, STS 4.5.8 and am trying to add HTC 2.6.3 - I can't seem to find any reason for this, but the Header tags only work for the page title when STS is turned off. Is there some change I need to make to an STS file? I can't seem to locate any looking at the install instructions that come with HTC 2.6.3 or in the sts_htc_docs_2of2 file (most recent instructions I've found for implementing HTC and STS).

 

TIA :thumbsup:

~Tracy
 

Link to comment
Share on other sites

Ah Hah! Ok - figured it out - I had followed the catalog side install instructions from HTC 2.6.3 and should not have :blush:

 

It now seems to be working - YAY! My only question now is - should I have changed the <!--$headcontent --> to $headcontent

$headertags

 

I have it one way on the index template and another on the index.php_1_9.html and both of them seem to be working properly :huh:

~Tracy
 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...