Jump to content
Latest News: (loading..)
rigadin2

[Contribution] STS v4

Recommended Posts

 

You may want to take a look at the Featured Products contribution (I have uploaded a version with detailed STS instructions. http://www.oscommerce.com/community/contributions,651

 

For the Specials, are you referring to the image as well or just wanting to add the specials.php box to the front page? If it is the latter, just add the $specialsbox tag to your home page.


Bill Kellum

 

Sounds Good Productions

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

Share this post


Link to post
Share on other sites
You may want to take a look at the Featured Products contribution (I have uploaded a version with detailed STS instructions. http://www.oscommerce.com/community/contributions,651

Reading the details about it, it implies that it has to be setup with in the admin area and the products to be listed have to be selected. This isn't really what I want, I just want a new way of displaying the category index' so instead of the awful looking 3 column "panel" affair with a pic on the left, description in the middle, then price then Buy Now. I just want a 4xY grid of products, with a pic on top, product title underneth and then the price under that, no description and no buy now.

 

For the Specials, are you referring to the image as well or just wanting to add the specials.php box to the front page? If it is the latter, just add the $specialsbox tag to your home page.

 

No, here's a shot of what I'm working on as a store site for a client ...

 

newshop.png

 

Notice the top product on the main body is the where I want and how, the Specials to appear.

Edited by Stewart Gilray

Share this post


Link to post
Share on other sites

hi,

 

can anyone help....i thought i'd give the sts a try but after two installs i still get this error:

 

Warning: main(includes/application_top.php) [function.main]: failed to open stream: Permission denied in /home/user/public_html/shop/index.php on line 13

 

Warning: main(includes/application_top.php) [function.main]: failed to open stream: Permission denied in /home/user/public_html/shop/index.php on line 13

 

Warning: main(includes/application_top.php) [function.main]: failed to open stream: Permission denied in /home/user/public_html/shop/index.php on line 13

 

Fatal error: main() [function.require]: Failed opening required 'includes/application_top.php' (include_path='.:/usr/php4/lib/php:/usr/local/php4/lib/php') in /home/user/public_html/shop/index.php on line 13

 

the 1st installation seemed to work and i even managed to get into admin to install sts. The problem started when i changed the 'test' template to 'full'.

 

Anyone any ideas what i should do??

 

Thanks

Edited by janice171

Share this post


Link to post
Share on other sites
hi,

 

can anyone help....i thought i'd give the sts a try but after two installs i still get this error:

 

Warning: main(includes/application_top.php) [function.main]: failed to open stream: Permission denied in /home/user/public_html/shop/index.php on line 13

 

Warning: main(includes/application_top.php) [function.main]: failed to open stream: Permission denied in /home/user/public_html/shop/index.php on line 13

 

Warning: main(includes/application_top.php) [function.main]: failed to open stream: Permission denied in /home/user/public_html/shop/index.php on line 13

 

Fatal error: main() [function.require]: Failed opening required 'includes/application_top.php' (include_path='.:/usr/php4/lib/php:/usr/local/php4/lib/php') in /home/user/public_html/shop/index.php on line 13

 

the 1st installation seemed to work and i even managed to get into admin to install sts. The problem started when i changed the 'test' template to 'full'.

 

Anyone any ideas what i should do??

 

Thanks

Janice,

 

Leave all of the other settings as the default settings and then it should work for you.


Bill Kellum

 

Sounds Good Productions

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

Share this post


Link to post
Share on other sites

Any ideas re: my plight Bill?

 

If you could help out I'd appreciate it...

 

I'm starting to think for the category thing that I'm going to have to get dirty in the product_listings.php file

Share this post


Link to post
Share on other sites
Reading the details about it, it implies that it has to be setup with in the admin area and the products to be listed have to be selected. This isn't really what I want, I just want a new way of displaying the category index' so instead of the awful looking 3 column "panel" affair with a pic on the left, description in the middle, then price then Buy Now. I just want a 4xY grid of products, with a pic on top, product title underneth and then the price under that, no description and no buy now.

No, here's a shot of what I'm working on as a store site for a client ...

 

Notice the top product on the main body is the where I want and how, the Specials to appear.

 

There is a contribution that allows you to create as many or as little columns as you want, as most people usually opt for a 3xy grid, although you could do 4 just remember that depending on your template design especially if you have one that is centered in the middle of the screen it may push your store out.

 

As for the Specials, that is also down by another contribution called Specials by Category. Which does exactly what the name says it creates a special item for each category, but you will hvae to specify which product you want as a special.

 

Specials by Category (There are several ones so you can chose the one best for your needs)

Link

http://addons.oscommerce.com/category?sear...als+by+category

 

Multiple Coulmns

Link

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

Edited by Eighteen48

Powered By osC 2.2RC2a STS 4.5.8 - HTC 2.6.3 - FP 1.5.9 - BCH 1.0.0

Share this post


Link to post
Share on other sites

Weirdly I just found that multiple columns mod myself, however having just installed it, I get butkis....

 

I was literally on my way to look for a thread on it.

 

Is it compatible with STS ?!

Share this post


Link to post
Share on other sites

Hello

it may be a newbie quiz but i'm kinda desperate here! i've search the forum for answers maybe i'm not searching where i should... :(

 

I really need to know how to call a STS defined variable in php!

 

description:

i "have product_info.php" like so:

 

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

 

<?php DEFINE ('STS_CONTENT_END_CHAR', '$'); ?>

 

$startform$

 

<br>$productname$

<br>$productmodel$

 

<div align="center">$product_popup$</div>

 

<br>Price: $regularprice$ $specialprice$

<br>Desc: $productdesc$

 

ID produs in baza: $productsid$

 

$endform$

 

 

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

 

i really need to call $productdesc$ for example in php ... (trim it, etc)

 

do i do domething like (in the same file)

 

<?

echo $productdesc;

?>

 

but i don't see no output at all!

 

How can i get that?... or any other sts variable?

 

please help asap as i'm in a desperate situation...

 

Thank you very very much

 

:huh:

Share this post


Link to post
Share on other sites

Thanks BKELLUM...but still no joy.

 

I have now deleted the database and files and started from a clean slate and now i get this error on step 4 of installation:

 

Warning: main(../includes/database_tables.php) [function.main]: failed to open stream: Permission denied in /home/user/public_html/shop/install/templates/pages/install_4.php on line 13

 

Warning: main(../includes/database_tables.php) [function.main]: failed to open stream: Permission denied in /home/user/public_html/shop/install/templates/pages/install_4.php on line 13

 

Warning: main(../includes/database_tables.php) [function.main]: failed to open stream: Permission denied in /home/user/public_html/shop/install/templates/pages/install_4.php on line 13

 

Fatal error: main() [function.require]: Failed opening required '../includes/database_tables.php' (include_path='.:/usr/php4/lib/php:/usr/local/php4/lib/php') in /home/user/public_html/shop/install/templates/pages/install_4.php on line 13

 

 

Does anyone know what i should do?

 

Thanks for any help

Share this post


Link to post
Share on other sites

Hi Everyone,

 

I'm new to Oscommerce and STS and i really need some help. I have followed all the instructions for installing STS and I created a page in HTML which I save as sts_template in the test folder. However nothing seems to be happening to my store.

It still has the old layout not even any images have shown up. Please tell me if I am missing something. Maybe I have uploaded my css file and images to the wrong folder?

Is there a step by step guide to actually modifying the store the doc that I downloaded with the STS is a bit vague for me....sorry I did say I was new to this!

 

Any help would be very much appreciated.

 

Thanks,

 

Liz.

 

P.s. Just wanted to add I have installed the module from the admin side also.

Edited by Nisa

Share this post


Link to post
Share on other sites
Hello

it may be a newbie quiz but i'm kinda desperate here! i've search the forum for answers maybe i'm not searching where i should... :(

 

I really need to know how to call a STS defined variable in php!. . . . . . . . .

 

. . . . . . . . please help asap as i'm in a desperate situation...

 

Thank you very very much

 

:huh:

If you read through the manual towards the in the STS tags are listed that you can use to customize your template, for instance $content is used to populate the main body of your pages or infoboxes if you have made a template for that.

 

With STS you do not need to worry about calling any php or anything just create a html template and put the tags of your choice in your desired locations.

 

I suggest you take a look at the templates supplied with STS so you can get a better idea of what is going on. And if you have a WYSIWYG editor that is even better as you can see full how the tags are place and what you need to do.

 

I hope this helps.

Edited by Eighteen48

Powered By osC 2.2RC2a STS 4.5.8 - HTC 2.6.3 - FP 1.5.9 - BCH 1.0.0

Share this post


Link to post
Share on other sites
Hi Everyone,

 

I'm new to Oscommerce and STS and i really need some help. I have followed all the instructions for installing STS and I created a page in HTML which I save as sts_template in the test folder. However nothing seems to be happening to my store.

It still has the old layout not even any images have shown up. Please tell me if I am missing something. Maybe I have uploaded my css file and images to the wrong folder?

Is there a step by step guide to actually modifying the store the doc that I downloaded with the STS is a bit vague for me....sorry I did say I was new to this!

 

Any help would be very much appreciated.

 

Thanks,

 

Liz.

 

P.s. Just wanted to add I have installed the module from the admin side also.

 

Make sure you specify STS to use that particular template by going into the Modules --> STS --> Default.

 

Once under Default template name type in the name of the template you want to use.

 

Note this is only if you want that template to be used throughout your whole store. If you just want that template to be used for a certain category or certain page you need to name it accordingly, for example if you just want that template to be used on the index of your store you would name it "index.php_0.html.

 

There is more info on naming the template for certain categories, pages, etc in the STS User Manual.


Powered By osC 2.2RC2a STS 4.5.8 - HTC 2.6.3 - FP 1.5.9 - BCH 1.0.0

Share this post


Link to post
Share on other sites
Thanks BKELLUM...but still no joy.

 

I have now deleted the database and files and started from a clean slate and now i get this error on step 4 of installation:

 

Warning: main(../includes/database_tables.php) [function.main]: failed to open stream: Permission denied in /home/user/public_html/shop/install/templates/pages/install_4.php on line 13

 

Warning: main(../includes/database_tables.php) [function.main]: failed to open stream: Permission denied in /home/user/public_html/shop/install/templates/pages/install_4.php on line 13

 

Warning: main(../includes/database_tables.php) [function.main]: failed to open stream: Permission denied in /home/user/public_html/shop/install/templates/pages/install_4.php on line 13

 

Fatal error: main() [function.require]: Failed opening required '../includes/database_tables.php' (include_path='.:/usr/php4/lib/php:/usr/local/php4/lib/php') in /home/user/public_html/shop/install/templates/pages/install_4.php on line 13

Does anyone know what i should do?

 

Thanks for any help

 

It seems as if your permissions are not set correctly in your directory that your attempting to installed osC in check to make sure everything is CHMOD properly, as well as you have uploaded all your files.


Powered By osC 2.2RC2a STS 4.5.8 - HTC 2.6.3 - FP 1.5.9 - BCH 1.0.0

Share this post


Link to post
Share on other sites
Make sure you specify STS to use that particular template by going into the Modules --> STS --> Default.

 

Once under Default template name type in the name of the template you want to use.

 

Note this is only if you want that template to be used throughout your whole store. If you just want that template to be used for a certain category or certain page you need to name it accordingly, for example if you just want that template to be used on the index of your store you would name it "index.php_0.html.

 

There is more info on naming the template for certain categories, pages, etc in the STS User Manual.

 

Hi Eighteen48,

 

Thanks alot for the reply. Yes, I had already changed the default template name. I also tried changing it to sts_blank_template (the file that is included with STS) to see if it would register, but it still shows up the same shopfront that it orignally had.

 

I just noticed one thing...on the installation it refers to folder catlog...I don't have a folder catlog in my OsCommerce installation and so I just put everything in their corrosponding folders...i.e...includes>classes....etc. I didnt think it mattered as I was still placing them in the correct folder but maybe it does??

 

Please help.

Thanks,

Liz.

Share this post


Link to post
Share on other sites
Hi Eighteen48,

 

Thanks alot for the reply. Yes, I had already changed the default template name. I also tried changing it to sts_blank_template (the file that is included with STS) to see if it would register, but it still shows up the same shopfront that it orignally had.

 

I just noticed one thing...on the installation it refers to folder catlog...I don't have a folder catlog in my OsCommerce installation and so I just put everything in their corrosponding folders...i.e...includes>classes....etc. I didnt think it mattered as I was still placing them in the correct folder but maybe it does??

 

Please help.

Thanks,

Liz.

When you see the the mention Folder Catalog, it just means the base of your store, for example my site is configured as such http://mysite.com/store, I created a folder called styles placed in my store and in that folder is the name of my template. So it looks like this My Site --> store --> styles --> theme1 all my files related to that theme is located in theme1 folder including all images and stylesheets. just make sure that your paths are correct.

 

I hope I have not confused you.

 

Basically all you have to do is just upload all the files to their respective folders so anything in catalog would go to where your store is located.

 

Catalog --> Includes /yoursite.com/includes or however you have your store configureed yoursite.com/store/includes

 

 

Also make sure you refresh your site, as sometimes broswers will cache your page so you wont see the changes until you force a refresh.


Powered By osC 2.2RC2a STS 4.5.8 - HTC 2.6.3 - FP 1.5.9 - BCH 1.0.0

Share this post


Link to post
Share on other sites
Hi Eighteen48,

 

Thanks alot for the reply. Yes, I had already changed the default template name. I also tried changing it to sts_blank_template (the file that is included with STS) to see if it would register, but it still shows up the same shopfront that it orignally had.

 

I just noticed one thing...on the installation it refers to folder catlog...I don't have a folder catlog in my OsCommerce installation and so I just put everything in their corrosponding folders...i.e...includes>classes....etc. I didnt think it mattered as I was still placing them in the correct folder but maybe it does??

 

Please help.

Thanks,

Liz.

Liz,

You can leave the settings in the STS Modules in their "out of the box" status (see below) and then rename your custom default template as "sts_template.html". Your post above did not show an extension (not sure if that was a typo in your post or if you actually named your template "sts_template").

 

Note: The "test" template folder is just a test folder and should not be used for a live shop. You will miss out on most of what STS has to offer such as infobox templates, content templates, etc. I suggest that you change the following settings in the STS Default Module:

  1. Set "Use Templates" to TRUE
  2. Set the "Template Folder" to full

Rename the current sts_template.html to something like sts_template_orig.html (this way you have it for reference) and then add your custom sts_template.html to the full template folder.

 

View your shop and you should see your new template being used.

 

Hope this helped,


Bill Kellum

 

Sounds Good Productions

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

Share this post


Link to post
Share on other sites
Thanks BKELLUM...but still no joy.

 

I have now deleted the database and files and started from a clean slate and now i get this error on step 4 of installation:

 

Warning: main(../includes/database_tables.php) [function.main]: failed to open stream: Permission denied in /home/user/public_html/shop/install/templates/pages/install_4.php on line 13

 

Warning: main(../includes/database_tables.php) [function.main]: failed to open stream: Permission denied in /home/user/public_html/shop/install/templates/pages/install_4.php on line 13

 

Warning: main(../includes/database_tables.php) [function.main]: failed to open stream: Permission denied in /home/user/public_html/shop/install/templates/pages/install_4.php on line 13

 

Fatal error: main() [function.require]: Failed opening required '../includes/database_tables.php' (include_path='.:/usr/php4/lib/php:/usr/local/php4/lib/php') in /home/user/public_html/shop/install/templates/pages/install_4.php on line 13

 

 

Does anyone know what i should do?

 

Thanks for any help

Janice, are you using a stock osCommerce? If so, which version of osCommerce do you have?

 

It appears you may be using the 3.0 Beta version of osCommerce in which you can not use STS, the same for all of the other MS2.2 contributions. :(


Bill Kellum

 

Sounds Good Productions

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

Share this post


Link to post
Share on other sites

Hi all,

 

MY first post so be gentle with me ;)

 

I have "inherited" an OSC site that is not behaving itself since it was migrated to a new server. It was fine before. I know a fair bit about PHP, but am struggling with this one.

 

Version details:

 

STS_VERSION=[4.5]

OSC_VERSION=[osCommerce 2.2-MS2]

 

The problem is, with STS switched ON in the Admin panel I get a plain white blank screen. Nothing is inserted in either the Apache error log or the PHP error log to give me a clue as to the cause.

 

If I switch STS template OFF in the Admin panel, I can see the index/product pages fine (using the sts_template??!!!) , BUT (there's always a BUT!) this OSC install is also using the "Image Magic" contrib which is no longer available and I cannot see thumbnails. In fact they're not even being created.

 

I don't know what versions of PHP/MySQL the server this used to sit on was running, but it's now on a server running PHP 5.1.6 and MySQL 5.0.27

 

I appreciate this may be an Image Magic contrib problem, but first I need to sort out why the sts template displays fine when switched to OFF and I get a blank screen when it's switched on.

 

I believe the custom work on this site was originally done by the guy who wrote the sts system. I've tried contacting him (happy to pay for it to be fixed), but got no response :(

 

TIA

Andy

Share this post


Link to post
Share on other sites
Hi all,

 

MY first post so be gentle with me ;)

 

I have "inherited" an OSC site that is not behaving itself since it was migrated to a new server. It was fine before. I know a fair bit about PHP, but am struggling with this one.

 

Version details:

 

STS_VERSION=[4.5]

OSC_VERSION=[osCommerce 2.2-MS2]

 

The problem is, with STS switched ON in the Admin panel I get a plain white blank screen. Nothing is inserted in either the Apache error log or the PHP error log to give me a clue as to the cause.

 

If I switch STS template OFF in the Admin panel, I can see the index/product pages fine (using the sts_template??!!!) , BUT (there's always a BUT!) this OSC install is also using the "Image Magic" contrib which is no longer available and I cannot see thumbnails. In fact they're not even being created.

 

I don't know what versions of PHP/MySQL the server this used to sit on was running, but it's now on a server running PHP 5.1.6 and MySQL 5.0.27

 

I appreciate this may be an Image Magic contrib problem, but first I need to sort out why the sts template displays fine when switched to OFF and I get a blank screen when it's switched on.

 

I believe the custom work on this site was originally done by the guy who wrote the sts system. I've tried contacting him (happy to pay for it to be fixed), but got no response :(

 

TIA

Andy

Andy, depending upon what other contributions are installed on your older shop I think you have a rough road ahead of you. Migrating to MySQL 5 and PHP 5 could bring on inconsistent results if you do not update each of the contributions to play nicely with it.

 

STS on the other hand, does not care if you are using PHP 4 or 5, or MySQL 4 or 5 so STS is giving you the problems (as long as it has been installed and configured correctly).

 

With that said, make sure you do not have any older versions of STS still lingering in your files, primarily STS versions 1-3. You can easily rule this out be inspecting your two configure.php files located in catalog/admin/includes and catalog/includes to see if there is any STS defines listed. You should not have any STS defines in either of those two files.

 

Another option is to completely reinstall STSv4.5.8. You should be able to keep your existing sts_templates folder and use it in version 4.5.8. Also, be sure to back up your current version of sts_user_code.php file as the previouse owner of the shop may have added some custom STS tags that you will need later.


Bill Kellum

 

Sounds Good Productions

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

Share this post


Link to post
Share on other sites

Wow - I can't believe they haven't correct this forum's link yet :blink: At least I finally realized why I wasn't getting any emails stating there was a new reply to the STS forum - ugh :blush:

 

Had a question and I'm not sure where to ask it - so thought someone here might know off the top of their head (can't seem to find it in a google search - but google may not yet be searching this thread under the new ID).

 

On my advanced_search_results.php, inside the table (have used both product_listing.php and allprods.php to generate the table - same result with either) I have a "+" sign after the words "Product Name" - so the title of the table is "Product Name+". I don't want the "+" sign there though. I cannot find a "+" sign after TABLE_HEADING_PRODUCTS in either product_listing.php or allprods.php and the includes/languages/english/advanced_search.php has the define for TABLE_HEADING_PRODUCTS but it doesn't have the "+" sign in the define either. Any ideas where this "+" sign is coming from? :huh:

 

TIA!


~Tracy
 

Share this post


Link to post
Share on other sites
Wow - I can't believe they haven't correct this forum's link yet :blink: At least I finally realized why I wasn't getting any emails stating there was a new reply to the STS forum - ugh :blush:

 

Had a question and I'm not sure where to ask it - so thought someone here might know off the top of their head (can't seem to find it in a google search - but google may not yet be searching this thread under the new ID).

 

On my advanced_search_results.php, inside the table (have used both product_listing.php and allprods.php to generate the table - same result with either) I have a "+" sign after the words "Product Name" - so the title of the table is "Product Name+". I don't want the "+" sign there though. I cannot find a "+" sign after TABLE_HEADING_PRODUCTS in either product_listing.php or allprods.php and the includes/languages/english/advanced_search.php has the define for TABLE_HEADING_PRODUCTS but it doesn't have the "+" sign in the define either. Any ideas where this "+" sign is coming from? :huh:

 

TIA!

Tracy,

 

The moderator screwed up the links for this thread but has since been corrected. The only remanants of the error is that now none of my "saved" links for specific topics in this thread no longer work. :angry:

 

Oh well....now to your problem....

 

As you know, this is not a STS issue but I will try to help you out (I only mentioned this so as not to confuse any beginners). :-

 

The modifications need to be made in the functions/general.php file.

Find this line:

$sort_suffix = (substr($sortby, 0, 1) == $colnum ? (substr($sortby, 1, 1) == 'a' ? '+' : '-') : '') . '</a>';

Change to this to get rid of the + and the -:

$sort_suffix = (substr($sortby, 0, 1) == $colnum ? (substr($sortby, 1, 1) == 'a' ? '' : '') : '') . '</a>';

 

Hope that helped you out,


Bill Kellum

 

Sounds Good Productions

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

Share this post


Link to post
Share on other sites

hey when i Click to enlarge it will take me back to the index page with all the tags i looked up the fourm and tryed their answar but noting worked out....

 

<HEAD>

<!--$headcontent-->

<TITLE>bn4c</TITLE>

<meta http-equiv="Content-Style-Type" content="text/css">

<LINK HREF="includes/sts_templates/zz/style.css" TYPE="text/css" REL="stylesheet">

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

Share this post


Link to post
Share on other sites
hey when i Click to enlarge it will take me back to the index page with all the tags i looked up the fourm and tryed their answar but noting worked out....

Well, I do not have much to go on with the little information that you provided so.....

 

I'm assuming you are using osC RC2a and you tried to install STSv4.5.8.

 

With that said, it appears you changed the default settings in the STS Default Module. Change the settings back to how they were and you will be back in business. That is, if you had osC installed correctly to begin with.

 

Hope this helped you out,


Bill Kellum

 

Sounds Good Productions

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

Share this post


Link to post
Share on other sites
Well, I do not have much to go on with the little information that you provided so.....

 

I'm assuming you are using osC RC2a and you tried to install STSv4.5.8.

 

With that said, it appears you changed the default settings in the STS Default Module. Change the settings back to how they were and you will be back in business. That is, if you had osC installed correctly to begin with.

 

Hope this helped you out,

 

iam not sure what you mean by "Change the settings back to how they were" do you mean:

Default template (v2.1.1)

 

Use Templates?

false (off as of now)

 

Code for debug output

debug

 

Files for normal template

sts_user_code.php

 

Base folder

includes/sts_templates/

 

Template folder

zz <<<< to (test)

 

Default template file

index-1.html <<<<<< to (sts_template.html)

 

Use template for infoboxes

true

 

changing it back did not work too, but when i turn sts off it works fine!!

(what info do you need?)

......................

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×