Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Contribution] STS v4


Guest

Recommended Posts

I've done a few clean reinstalls of OsCommerce followed by the STS4.1 contribution and the Index module v1.0.3 update and I'm still getting 2 headers. I've activated register_globals on my server, so I no longer have that problem. Can anyone please tell me what I'm doing wrong?
I suggest that you do not activate Register_Globals at all, but if you insist, take a look at this contribution: http://www.oscommerce.com/community/contributions,2097

 

 

 

Good luck and I hope it all works out for you,

 

Bill Kellum

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 suggest that you do not activate Register_Globals at all, but if you insist, take a look at this contribution: http://www.oscommerce.com/community/contributions,2097

 

 

 

Good luck and I hope it all works out for you,

 

Bill Kellum

Just for the record, I have register_globals turned "on" at the server level and I am not experiencing the double headers issue. I am not using the patch file mentioned above so that seems to be the only difference that may be causing you problems.

 

-Bill Kellum

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

HI

 

excuse me if posted on here before, i couldnt find it.

 

I have just installed the STS v4 mod. The installation process went fine except one major problem.

 

When i go into Admin>Modules>STS there is a button saying 'install' i click this button, it seems to just refresh the page as nothing changes. The install button is still there and i can configure or set up a template.

 

Have i missed somethign out during the installation process?

 

 

Thanks

 

Carl

Link to comment
Share on other sites

I've got STS working for the most part now, but still have one problem...

 

My index page and product category pages display properly like so:

 

http://216.69.130.253/store/index.php?cPath=13

 

But my individual product pages do not:

 

http://216.69.130.253/store/product_info.php?products_id=24

 

For my default template I just created a php file and put the $content tag in it.

 

In the admin for the product info template, I have the following selected:

 

Use template for product info page

true

 

Enable STS3 compatibility mode

false

 

Files for normal template

(nothing entered)

 

Files for content template

(nothing entered)

 

Anyone know what could be causing this problem?

Link to comment
Share on other sites

i am very new to oscommerce, and just found this contrib which will help me get my oen look to osc. however, after reading a fair amout i have chosen to go ahead with creloaded flavour of osc. will this contrib work with creloaded 6.2 ?

currently using OSC2.2MS2 051113 with the following contributions:

 

AJAX Attributemanager 2.1 - All_products 4.4 - Banner manager 1.5b - banner hack picture in manager * description in product listing hack ms2 v2.4 * drop shadow boxes v.1.1 * Easy populater 2.76d-ms2 by surfalot * FCKEditor * header tag controller v2.5.9 * jcssmenu * LoginBox 5.6 * option type feature v1.71 * OSC-Cach-v1.1 * popup_imagecleaned_stilized_2 * Remove from cart button hack * scrolling bestsellers * Article manager1.4 * Links Manager v1.14. * proffessional invoice&packingslip 6.1 * Ultimate SEO URLs

Personaly i think all these features NEED to be in the main core as they are quite basic features that are missing. but then again what do i know?

Link to comment
Share on other sites

Just for the record, I have register_globals turned "on" at the server level and I am not experiencing the double headers issue. I am not using the patch file mentioned above so that seems to be the only difference that may be causing you problems.

 

-Bill Kellum

 

Hi Bill,

 

Thanks for your help here, though I'm a little bit confused (and still have the double header problem).

 

My current setup is:

1. Register_globals on at the server level

2. No register globals patch applied

3. OsC 2.2 Ms2

4. STS 4.1

5. Index 1.0.3 Patch

 

Is there something I've missed? Or am I setting things up wrong? I'm quite new to OsCommerce, so I'm not quite familiar with the conventions.

 

After I copy all the OsCommerce files to my server, should I go through the installation process first, or just copy over STS and the Index patch and then run the installation? I've been installing OsCommerce first and then applying the contribution and patch.

 

Thanks again for your time.

Link to comment
Share on other sites

After I copy all the OsCommerce files to my server, should I go through the installation process first, or just copy over STS and the Index patch and then run the installation? I've been installing OsCommerce first and then applying the contribution and patch.
It appears you are doing everything right. Do you know what version of PHP is your server running? If anything, download STS again and install using those files instead of your previous download. I'll keep looking into this to see if there is something on the STS end that is causing you problems.

 

Good Luck,

 

Bill Kellum

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 am very new to oscommerce, and just found this contrib which will help me get my oen look to osc. however, after reading a fair amout i have chosen to go ahead with creloaded flavour of osc. will this contrib work with creloaded 6.2 ?
Creloaded 6.2 is nothing more than a heavily modded Oscommerce. I would suggest installing STS manually when using Creloaded 6.2 so as you do not interfere with the other contributions that are already installed.

 

I believe that a Creloaded shop with STS v4 is the ultimate setup. Not for the faint of heart though...install each modification of code carefully and be careful not to add any additional blank spaces and blank lines at the end of the line of code that is being modified.

 

Good luck,

 

Bill Kellum

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

HI

 

excuse me if posted on here before, i couldnt find it.

 

I have just installed the STS v4 mod. The installation process went fine except one major problem.

 

When i go into Admin>Modules>STS there is a button saying 'install' i click this button, it seems to just refresh the page as nothing changes. The install button is still there and i can configure or set up a template.

 

Have i missed somethign out during the installation process?

 

 

Thanks

 

Carl

Re-check your install files. You are possibly missing a file or put a file or folder in the wrong location. Re-install carefully paying attention to the location of each file/folder.

 

Good luck,

 

Bill Kellum

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

It appears you are doing everything right. Do you know what version of PHP is your server running? If anything, download STS again and install using those files instead of your previous download. I'll keep looking into this to see if there is something on the STS end that is causing you problems.

 

Good Luck,

 

Bill Kellum

 

Hi Bill,

 

Thanks for the quick response! Well, I just tried another clean install of OsCommerce, this time with Register_Globals off. So I first applied the register_globals patch you linked to, and then I installed OsC. Next, I manually installed STS 4.1 ... same problem - 2 headers, second one green. Applied the "Index 1.0.3" patch, removed the Default and Index STS modules, installed them again, same problem.

 

I'm running:

PHP 4.4.2 as CGI on Apache 2.2.2 on WinXP SP2

 

Mike

Link to comment
Share on other sites

Not sure if this helps at all, but I just want to describe the behavior when the catalog index page loads:

 

The first header shows up about a moment before the rest of the page renders.

 

Mike

Link to comment
Share on other sites

i am very new to oscommerce, and just found this contrib which will help me get my oen look to osc. however, after reading a fair amout i have chosen to go ahead with creloaded flavour of osc. will this contrib work with creloaded 6.2 ?

 

Creloaded is using another template system called BTS, so STS will not work.

 

- Rigadin

Link to comment
Share on other sites

Hi everyone i asked this a few days ago but in such a busy discussion it may have been missed...

 

Ive got a weird issue ive just noticed thats started to happen

 

for some reason my pages are getting:

 

<!-- footer_eof //-->
<br>
</body>
</html>

 

added to the bottom of the page so its doubling the closing tags up and causing problems:

</body>
</html><!-- footer_eof //-->
<br>
</body>
</html>

 

i know the footer comment and the extra tags are coming from the original oscommerce files but i cant for the life of me figure out why they are being added onto the end of the page like this???

 

anyone have any ideas?

Link to comment
Share on other sites

Creloaded 6.2 is nothing more than a heavily modded Oscommerce. I would suggest installing STS manually when using Creloaded 6.2 so as you do not interfere with the other contributions that are already installed.

 

I believe that a Creloaded shop with STS v4 is the ultimate setup. Not for the faint of heart though...install each modification of code carefully and be careful not to add any additional blank spaces and blank lines at the end of the line of code that is being modified.

 

Good luck,

 

Bill Kellum

 

i have followed the install ( update route) directions carefully and pasted every bit of code in to place, with one exception :

- admin/includes/boxes/modules.php:

find:

'<a href="' . tep_href_link(FILENAME_MODULES, 'set=payment', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_MODULES_PAYMENT . '</a><br>' .

add after:

// START STS 4.1

'<a href="' . tep_href_link(FILENAME_MODULES, 'set=sts', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_MODULES_STS . '</a><br>' .

// END STS 4.1

 

which is not the same in creloaded

 

so i placed it in the closest line that seems to be very similar.

STS doesnt work for me at the moment, i cant access the sts area in the admin.

 

 

has anyone ever added this to creloaded ? i would love some help. please, pretty please :(

currently using OSC2.2MS2 051113 with the following contributions:

 

AJAX Attributemanager 2.1 - All_products 4.4 - Banner manager 1.5b - banner hack picture in manager * description in product listing hack ms2 v2.4 * drop shadow boxes v.1.1 * Easy populater 2.76d-ms2 by surfalot * FCKEditor * header tag controller v2.5.9 * jcssmenu * LoginBox 5.6 * option type feature v1.71 * OSC-Cach-v1.1 * popup_imagecleaned_stilized_2 * Remove from cart button hack * scrolling bestsellers * Article manager1.4 * Links Manager v1.14. * proffessional invoice&packingslip 6.1 * Ultimate SEO URLs

Personaly i think all these features NEED to be in the main core as they are quite basic features that are missing. but then again what do i know?

Link to comment
Share on other sites

Hi all,

I don't know if this asked before, I tried to search but these STS topics are jaust to long.

I have the following problem. I created my template etc. the code is like this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html $htmlparams>
<head>
<!--$headcontent-->
<link rel="stylesheet" type="text/css" href="custom.css" />
</head>
<body>
<table class="main" cellspacing="0" cellpadding="0" border="0">
<tr>
 <td class="vmenutop"></td>
 <td class="dmenutop"></td>
 <td class="logo"></td>
</tr> 
<tr>
 <td class="vmenu"></td>
 <td class="dmenu"></td>
 <td>
<table cellspacing="0">
 <tr><td colspan="2" class="fw"></td></tr>
 <tr>
  <td class="thumbs"></td>
  <td class="thumbs"></td>
 </tr>
</table>
 </td>
</tr>
<tr>
 <td class="vmenubottom"></td>
 <td class="dmenutop"></td>
 <td class="cop"></td>
</tr>
</table>	  



</body>
</html>

 

When I open the page in the browser and look at the page source I see that code from the default index.php is added screwing up my design.

<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr class="header">
<td valign="middle"><a href="http://localhost/custom/catalog/index.php?osCsid=f68c5981bb1b28b7fc2d6d4e30049b5d"><img src="images/oscommerce.gif" border="0" alt="osCommerce" title=" osCommerce " width="204" height="50"></a></td>
<td align="right" valign="bottom"><a href="http://localhost/custom/catalog/account.php?osCsid=f68c5981bb1b28b7fc2d6d4e30049b5d"><img src="images/header_account.gif" border="0" alt="My Account" title=" My Account " width="30" height="30"></a>??<a href="http://localhost/custom/catalog/shopping_cart.php?osCsid=f68c5981bb1b28b7fc2d6d4e30049b5d"><img src="images/header_cart.gif" border="0" alt="Cart Contents" title=" Cart Contents " width="30" height="30"></a>??<a href="http://localhost/custom/catalog/checkout_shipping.php?osCsid=f68c5981bb1b28b7fc2d6d4e30049b5d"><img src="images/header_checkout.gif" border="0" alt="Checkout" title=" Checkout " width="30" height="30"></a>??</td>
 </tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="1">
 <tr class="headerNavigation">
<td class="headerNavigation">??<a href="http://localhost" class="headerNavigation">Top</a> ? <a href="http://localhost/custom/catalog/index.php?osCsid=f68c5981bb1b28b7fc2d6d4e30049b5d" class="headerNavigation">Catalog</a></td>

<td align="right" class="headerNavigation"><a href="http://localhost/custom/catalog/account.php?osCsid=f68c5981bb1b28b7fc2d6d4e30049b5d" class="headerNavigation">My Account</a> ?|? <a href="http://localhost/custom/catalog/shopping_cart.php?osCsid=f68c5981bb1b28b7fc2d6d4e30049b5d" class="headerNavigation">Cart Contents</a> ?|? <a href="http://localhost/custom/catalog/checkout_shipping.php?osCsid=f68c5981bb1b28b7fc2d6d4e30049b5d" class="headerNavigation">Checkout</a> ??</td>
 </tr>
</table>
<!-- header_eof //-->

<!-- body //-->
<table border="0" width="100%" cellspacing="3" cellpadding="3">
 <tr>
<td width="125" valign="top"><table border="0" width="125" cellspacing="0" cellpadding="2">
<!-- left_navigation //-->
<!-- right_navigation_eof //-->
</table></td>
 </tr>
</table>
<!-- body_eof //-->

<!-- footer //-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html dir="LTR" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>osCommerce</title><base href="http://localhost/custom/catalog/">

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

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

<link rel="stylesheet" type="text/css" href="custom.css" />
</head>
<body>
<table class="main" cellspacing="0" cellpadding="0" border="0">
<tr>
 <td class="vmenutop"></td>

 <td class="dmenutop"></td>
 <td class="logo"></td>
</tr> 
<tr>
 <td class="vmenu"></td>
 <td class="dmenu"></td>
 <td>
<table cellspacing="0">
 <tr><td colspan="2" class="fw"></td></tr>

 <tr>
  <td class="thumbs"></td>
  <td class="thumbs"></td>
 </tr>
</table>
 </td>
</tr>
<tr>
 <td class="vmenubottom"></td>

 <td class="dmenutop"></td>
 <td class="cop"></td>
</tr>
</table>	  



</body>
</html><!-- footer_eof //-->
<br>
</body>
</html>

As you can see, there are double tags und much of the default code is included. I created an index.php.html template in my template folder with exactly the same contents as my original template, but the problem was not solved. How can I get rid of the default code?? I think another user (albi ?? albo) posted pretty much the same problem few posts before, but I haven't see an answer yet. Could you help us out?

 

Thanks in advance

babil

Link to comment
Share on other sites

Creloaded is using another template system called BTS, so STS will not work.

 

- Rigadin

Hey Rigadin,

 

Couldn't Creloaded users just cancel out the BTS system and use STS instead? I don't see why they couldn't just uninstall the BTS contribution and load STS in its place and all should be well.

 

-Bill Kellum

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

BTS completely modifies the structure of the code. All files in catalog are different, the whole structure is different. In my opinion BTS is not something you can remove, if don't want it, start with a clean osC or another "ready" project.

 

It could be possible to write an STS version only for BTS, but takes time I guess.

 

- Rigadin

Link to comment
Share on other sites

Hi,

 

I've spent ages looking on the forums for any answers but cannot find any...so...

 

I have STS PLUS V4.0.7 installed and am trying to install cdynamics Meta tags V1.4 but cannot get them working together, they both work on their own.

 

I followed these instructions found on the cdynamics contribution support forum:

 

 

STS v4.1

+

cDynamic Meta Tags v1.4

 

 

-------------------------------------------------------------------------------------

 

1. remove <title> tags from all pages in the catalog directory,

in index.php, product_info.php

delete

<?php

# cDynamic Meta Tags

/*<title><?php echo TITLE; ?>*/

require(DIR_WS_INCLUDES . 'meta_tags.php');

#

?>

 

2. copy your meta_tags.php into catalog/includes/modules/sts_inc/

rename it to "headertags.php"

 

3.

- Go to your admin panel, modules, STS.

- For each module installed, add 'headertags.php' to the list of files to include. Example:

for the default module, you have a parameter named 'Files for normal template'. By default it contains only

'sts_user_code.php'.

If you modify this parameter to 'sts_user_code.php;headertags.php' you will have Header Tags

Controller working for all pages

using the default template (which name is defined in this same module).

For the index module, the parameter is called 'Files for index.php template'.

For product_info module, there are 2 parameters: 'Files for normal template' and 'Files for content template'.

- That's it. Now STS will automatically add meta tags to the pages header, no need to modify your templates.

 

 

But still they don't work, has anyone got any further ideas, or comment on whether they think these instructions should work?

 

Many Thanks

 

Becki

 

P.S If nobody has any advice on using cdynamics - is header tags controller worth installing instead?

Link to comment
Share on other sites

Hi,

On the older versions of sts you had product_info.php.html and you could add and take away attributes like $productdesc, $imagesmall etc and move them around to place them where they looked best. But on this version you just get the attribute $content.

 

I don't want things like 'This product was added to our catalog on...' etc.. which files need editing to remove things like this?

 

Thanks

You can create a content template. Follow the example given in the install package in includes/sts_templates/test/content/product_info.php_26.html and is described in section 3.9.2 Template for the Content of the page.
Link to comment
Share on other sites

Hi,

 

I've spent ages looking on the forums for any answers but cannot find any...so...

 

I have STS PLUS V4.0.7 installed and am trying to install cdynamics Meta tags V1.4 but cannot get them working together, they both work on their own.

 

I followed these instructions found on the cdynamics contribution support forum:

But still they don't work, has anyone got any further ideas, or comment on whether they think these instructions should work?

 

Many Thanks

 

Becki

 

P.S If nobody has any advice on using cdynamics - is header tags controller worth installing instead?

 

Becki,

I do not know about cdynamics but Header Tags Controller works fine and with all STS versions and is a an actively supported contribution. I recommend it highly.

Link to comment
Share on other sites

I've got STS working for the most part now, but still have one problem...

 

My index page and product category pages display properly like so:

 

http://216.69.130.253/store/index.php?cPath=13

 

But my individual product pages do not:

 

http://216.69.130.253/store/product_info.php?products_id=24

 

For my default template I just created a php file and put the $content tag in it.

 

In the admin for the product info template, I have the following selected:

 

Use template for product info page

true

 

Enable STS3 compatibility mode

false

 

Files for normal template

(nothing entered)

 

Files for content template

(nothing entered)

 

Anyone know what could be causing this problem?

Edited by tactics
Link to comment
Share on other sites

I've got STS working for the most part now, but still have one problem...

 

My index page and product category pages display properly like so:

 

http://216.69.130.253/store/index.php?cPath=13

 

But my individual product pages do not:

 

http://216.69.130.253/store/product_info.php?products_id=24

 

For my default template I just created a php file and put the $content tag in it.

 

In the admin for the product info template, I have the following selected:

 

Use template for product info page

true

 

Enable STS3 compatibility mode

false

 

Files for normal template

(nothing entered)

 

Files for content template

(nothing entered)

 

Anyone know what could be causing this problem?

Try the following:

 

1. locate your catalog/includes/sts_templates/xyz/sts_templates.html /* xyz is whichever folder name you placed your sts_template.html file in */

2. Place your content layout file in your catalog/includes/sts_templates/xyz/content/product_info.php.html

3. in admin/STS , you have three modules for which parameters need to be set, consider setting them as follows:

 

Default

---------

Use Templates? :true

Code for debug output: debug

Files for normal template: sts_user_code.php;headertags.php

Template folder: xyz

Default template file: sts_template.html

 

Index

-------

Use template for index page: true

Files for index.php template: sts_user_code.php;headertags.php

 

Product Info

---------------

Use template for product info page: false

Enable STS3 compatibility mode: false

Files for normal template: sts_user_code.php;headertags.php

Files for content template: sts_user_code.php;product_info.php;headertags.php

Link to comment
Share on other sites

Becki,

I do not know about cdynamics but Header Tags Controller works fine and with all STS versions and is a an actively supported contribution. I recommend it highly.

 

Hi,

 

Thanks for the reply, could you give any details of which version of header tags controller to install? Do you install the module for STS for the HTC and then a version of HTC? If you have used a particular version and installed with no complications id like to know so i can use that, iv'e had far to many problems trying to get contributions working!

 

Thankyou

 

Becki

 

P.S has anyone got any ideas for cdynamics meta tags with 4.0.7 STS - this is my final call for help before i remove it :)

Link to comment
Share on other sites

Hi,

 

Thanks for the reply, could you give any details of which version of header tags controller to install? Do you install the module for STS for the HTC and then a version of HTC? If you have used a particular version and installed with no complications id like to know so i can use that, iv'e had far to many problems trying to get contributions working!

 

Thankyou

 

Becki

 

P.S has anyone got any ideas for cdynamics meta tags with 4.0.7 STS - this is my final call for help before i remove it :)

Becki, sorry but I can't help you with either since I do not use them. However, I know a lot of STS users prefer HTC.

 

-Bill Kellum

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

Try the following:

 

1. locate your catalog/includes/sts_templates/xyz/sts_templates.html /* xyz is whichever folder name you placed your sts_template.html file in */

2. Place your content layout file in your catalog/includes/sts_templates/xyz/content/product_info.php.html

3. in admin/STS , you have three modules for which parameters need to be set, consider setting them as follows:

 

Default

---------

Use Templates? :true

Code for debug output: debug

Files for normal template: sts_user_code.php;headertags.php

Template folder: xyz

Default template file: sts_template.html

 

Index

-------

Use template for index page: true

Files for index.php template: sts_user_code.php;headertags.php

 

Product Info

---------------

Use template for product info page: false

Enable STS3 compatibility mode: false

Files for normal template: sts_user_code.php;headertags.php

Files for content template: sts_user_code.php;product_info.php;headertags.php

 

Hi Deano,

 

I tried what you suggested, but the result is the same. If you look at the code on this category page, you will see that it is complete:

 

http://216.69.130.253/store/index.php?cPath=13

 

But when you view an individual product from that page, the code is only partially complete. It's missing a bunch of code.

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...