Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[contribution] Simple Template System (sts)


DiamondSea

Recommended Posts

Does anybody have enough knowledge about this template system to know why my script cannot find the html template file?

 

Template file doesn't exist: [includes/sts_template.html]

Warning: fopen(STS_DEFAULT_TEMPLATE): failed to open stream: No such file or directory

 

I hate to sound rude, but every problem has been resolved, except for this one, and it seems like such a simple problem for somebody more experienced.

 

I have the right milestone version and I just uploaded it the 'easy' way as recommended.

 

what can cause this on a linux server with php 4+?

Link to comment
Share on other sites

Does anybody have enough knowledge about this template system to know why my script cannot find the html template file?

 

Template file doesn't exist: [includes/sts_template.html]

Warning: fopen(STS_DEFAULT_TEMPLATE): failed to open stream: No such file or directory

 

I hate to sound rude, but every problem has been resolved, except for this one, and it seems like such a simple problem for somebody more experienced.

 

I have the right milestone version and I just uploaded it the 'easy' way as recommended.

 

what can cause this on a linux server with php 4+?

 

Is the file .../catalog/includes/sts_template.html actually on your system? (Gotta ask the simple questions first)

 

Does the web server process have read permission on the file?

 

- bg

Simple Template System (STS)

Layout your site with 1 (or more) HTML file!

Download STS: http://www.oscommerce.com/community/contributions,1524

Support: http://www.oscommerce.com/forums/index.php?showtopic=58541

Link to comment
Share on other sites

I am aplogizing for taking my frustrations with the sts contribution out on the forum. I have since reinstalled 1.8 and took my time this time around and found that it was my rushing that caused the many problems that i had. I have a current working STS/OScommerce cart. My current problem is that i can't seem to get rid of the "New Products For ... " box in the "$content" area as you can see here: www.spidercases.com/catalog

 

I went into the /includes/languages/english/index.php, and tried to comment out the code that i thougt would take care of it, but to no avail. Being that it did not work, I in my lack of sleep deleted it. So, now i have to rewrite the box, which is no big deal, but i am trying to get rid of it completly, well at least for now. Thanks for your help.

 

Ben

 

OH... befor i forget, am i still able to go through css to change the colors and text?

Again GREAT, GREAT contribution. Many Thanks.

Edited by benjmnm
Link to comment
Share on other sites

Hi, still having problems with the Shopping cart total: on the top.. I downloaded "cart in Header" contribution and trying to install it but it doesnt work with the STS.. this is what the Cart in Header is asking me to do

<?php

/*

$Id: Cart in your header 1.0 2003/03/15 Kim Elliott-Bird Brain

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

###################################################################

 

To install simply copy and paste the table into your code where you would like it. I

use mine in the header. You will want to change the CSS classes to match your site.

Enjoy!!

 

Kim

 

<table align="right" class="infoBox" width="140" border="0" cellspacing="1" cellpadding="1">

<tr>

<td class="accountCategory" align="right">

Items:

</td>

<td class="accountCategory" align="left">

<?php echo $cart->

count_contents(); ?>  

</td>

<td class="accountCategory" align="right">

Total:

</td>

<td class="accountCategory" align="left">

<?php echo $currencies->

format($cart->show_total()); ?>

</td>

</tr>

</table>

Link to comment
Share on other sites

Hi, I'm using OS Commerce for my site, and just installed the files from STS version 1.2, but am getting this error

"Warning: main(includes/filenames.php): failed to open stream: No such file or directory in /home/buyybm/public_html/osCommerce/includes/application_top.php on line 53

 

Fatal error: main(): Failed opening required 'includes/filenames.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/buyybm/public_html/osCommerce/includes/application_top.php on line 53"

 

I'm not quite sure how to address this problem.

I'd appreciate any help, and I really need a response as soon as possible.

Thanks.

Link to comment
Share on other sites

Hi, I'm using OS Commerce for my site, and just installed the files from STS version 1.2, but am getting this error

"Warning: main(includes/filenames.php): failed to open stream: No such file or directory in /home/buyybm/public_html/osCommerce/includes/application_top.php on line 53

 

Fatal error: main(): Failed opening required 'includes/filenames.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/buyybm/public_html/osCommerce/includes/application_top.php on line 53"

 

I'm not quite sure how to address this problem.

I'd appreciate any help, and I really need a response as soon as possible.

Thanks.

 

 

First of all make sure that (includes/filenames.php) is uploaded to that directory. I know it sounds stupid but it happens more times than you think.

 

Second check the bottom line of application_top.php and if it has a blank line at the end of it after the ?> delete that blank line. Then reupload that file and see if that fixes it.

For an osCommerce and STS Tutorial click the www button in my profile.

Link to comment
Share on other sites

I'm trying to add custom boxes, using the $custombox1 $custombox2, for example

and in column_left.php I have to add the

"...include(DIR_WS_BOXES . 'customlogin.php');..."

stuff for each box twice for it to work , is that ok? ... well I guess it's ok since it seems to work :rolleyes: but is there a way I can make my boxes work without it being twice there?

 

ps: thanks for making this mod, it's the most useful and easy to use I've seen for ocs

Link to comment
Share on other sites

Congratulations by this great contribution. I have one doubts: it is possible to cause that the contribution of coolmenu with sts works?, I have not obtained it. It leaves box but empty , some idea ?

thx

 

someboy it happens the same? please help

 

sorry for my english

Link to comment
Share on other sites

Hi

I would like to add the login/accounts box

 

Any ideas on how I can do this

 

Cheers Malc

For a summary of how to add new features to STS, see this link:

 

http://www.oscommerce.com/forums/index.php?sho...ndpost&p=232727

 

- Brian

Simple Template System (STS)

Layout your site with 1 (or more) HTML file!

Download STS: http://www.oscommerce.com/community/contributions,1524

Support: http://www.oscommerce.com/forums/index.php?showtopic=58541

Link to comment
Share on other sites

Hi,

 

I've been trying to add a new box using the sts system...

 

I've added

  require(DIR_WS_BOXES . 'forum.php');

 // STS: ADD
 $sts_block_name = 'forum';
 require(STS_RESTART_CAPTURE);
 // STS: EOADD

to the column_left.php

 

and also added $forum to the sts_templates file..

 

I then edited the manufacturers.php file and re-uploaded it as forum.php

 

OSc still shows the variable instead of the box?

can anyone please tell me what I've missed or done wrong?

 

cheers,

http://www.4development.com/store/

Ian Harvie

Link to comment
Share on other sites

Hey im using ms 2.2 and sts 1.8 at the end of my store on first load it always has </

 

When I view the source it looks like its not loading </html> fully, with a quick refresh its gone.

 

Anyone else have this problem?

 

To view what I am talking about visit http://www.biostech.net/demo1/ and scroll to the bottom of the screen.

For an osCommerce and STS Tutorial click the www button in my profile.

Link to comment
Share on other sites

Hi,

 

I've been trying to add a new box using the sts system...

 

I've added

  require(DIR_WS_BOXES . 'forum.php');

 // STS: ADD
 $sts_block_name = 'forum';
 require(STS_RESTART_CAPTURE);
 // STS: EOADD

to the column_left.php

 

and also added $forum to the sts_templates file..

 

I then edited the manufacturers.php file and re-uploaded it as forum.php

 

OSc still shows the variable instead of the box?

can anyone please tell me what I've missed or done wrong?

 

cheers,

http://www.4development.com/store/

 

If it is a box you are adding, for consistencies sake I'd change the name of it from forum to forumbox.

 

You also need to add the code to link the captured block of text to the $template[] variable.

 

In sts_display_output.php (though you could put in column_left.php just as well) like this:

 

$template['forumbox'] = strip_unwanted_tags($sts_block['forumbox'], 'forumbox');

 

That should do it for you.

 

- Brian

Simple Template System (STS)

Layout your site with 1 (or more) HTML file!

Download STS: http://www.oscommerce.com/community/contributions,1524

Support: http://www.oscommerce.com/forums/index.php?showtopic=58541

Link to comment
Share on other sites

Hey im using ms 2.2 and sts 1.8 at the end of my store on first load it always has </

 

When I view the source it looks like its not loading </html> fully, with a quick refresh its gone.

 

Anyone else have this problem?

I would check to see if http://www.oscommerce.com/community/bugs,1242 applies. Note: since you aren't using the standard layout, it won't show up the same way as it does in the bug report. Put simply, it is simply a bug in PHP (4.2 series) that causes the HTML to get mangled. Jan's post gives URLs for the PHP bug reports if you would like more info.

 

Hth,

Matt

Link to comment
Share on other sites

Yesterday I installed STS 1.8 on a clean install of MS2, but today I noticed I the default language value is not being recognized.

 

I set the default language to German in the admin section, but the shop still shows up in English. After some investigating I found out that the language of the shop is determined by my default browser language.

 

The language variable seems empty and therefore defaults to my default browser language.

 

I'm not sure if this is STS related, but could it be that STS caused this issue?

OSC 2.2 MS2

 

Using the following contributions:

STS v1.8

Graphical Infobox Headers

Description in Product Listing Hack MS2 v.2.4

Link to comment
Share on other sites

Hi, this is my 4th plea for help.

 

Is it that hard to find out why my uploaded html template file cannot be read? What permission is needed to read it?

 

I cannot read/open the html template file.

 

What do I do? I can't wait another week for a reply.

 

Error below after I uploaded the mod:

 

Template file doesn't exist: [includes/sts_template.html]

Warning: fopen(STS_DEFAULT_TEMPLATE): failed to open stream: No such file or directory in /home/travelel/public_html/catalog/includes/sts_display_output.php on line 82

Can't open Template file: [sTS_DEFAULT_TEMPLATE]

Warning: filesize(): Stat failed for STS_DEFAULT_TEMPLATE (errno=2 - No such file or directory) in /home/travelel/public_html/catalog/includes/sts_display_output.php on line 86

Edited by jbh
Link to comment
Share on other sites

Hi

So far I have added quite a few contributions after STS and all seems to work OK...

 

My problem now is that the client I am building this site for is using Worldpay on is old site and wants to continue to use Worldpay on this new site...

 

Having search for and found a Worldpay contribution, to my dismay I have found the following message on a thread about the contribution...

 

It took me around 3 hours to fix this problem for someone else - you need to remove all references to STS from wpcallback (and all its included modules, eg application_top, etc) - I did it "live" so didnt keep any files.

 

Basically, dont install STS - it is not compatible with Worldpay, or I suspect many other payment contributions (but I havent tested any others) -

URL for Forum Thread

 

Can you throw any light or help on this DiamondSea

 

Thanks Malc

Link to comment
Share on other sites

JBH - I had the same problem, I had to reinstall ms2.2 and sts (the 1.8 verson) and also upload all the other attached sts template files... all is good. Currently my site looks like this:My shopping cart.

All the colors were changed via the .css files, as was the fonts ect. I am currently working on getting a flash interactive cart using osc & brian's STS system. We'll see how it turns out. Good luck to you.

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