Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[contribution] Simple Template System (sts)


DiamondSea

Recommended Posts

I would like to use STS with Printer Friendly Product Page. When clicking "print" on the product_info page it opens a product_print.php which, however, shows a blank sts template with no content. Can I deactivate STS for specific pages? Please anyone, help me out. I'm sure someone are using bot contributions.

Link to comment
Share on other sites

i really like how easy STS makes it easy for me to add or remove things from my pages, however i was wondering if there is a quick way to center everything and give it a fixed width and not 100% so it can line up better with my CMS front end.

 

i tried just using an HTML page that generates my front page and add the $catalog, etc where i wanted things to show up, but it never worked, so im willing to stay fairly default and just make it look similar.

 

any help is greatly appreciated.

 

Thanks!

David, use the blank template (included in the test folder) as a starting point and then just add the variables that you need. The center page thing is dependent upon HTML and/or CSS of your template page. 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

I would like to use STS with Printer Friendly Product Page. When clicking "print" on the product_info page it opens a product_print.php which, however, shows a blank sts template with no content. Can I deactivate STS for specific pages? Please anyone, help me out. I'm sure someone are using bot contributions.

 

You can do it in catalog\includes\modules\sts\sts_default.php, at the beginning of function find_template. I know there is some text there saying that it's not the best way to do it, but it is the most simple. The only down side is that you'll have to do this modification each time you upgrade the module sts_default.php (but it's not so often).

 

The other solution is to create a module sts_product_print.php that handles this, but it's a bit more complex if you have never done it.

 

- Chris

Link to comment
Share on other sites

Hello,

 

I've set up an index page on my store with a custom welcome message (made in dreamweaver).

Now I have the following problem. When I click on a categorie, my welcome message also comes under the products.. I want this to be empty.. What's the problem or how can I change it?

 

Thank you!

 

Sharon

Link to comment
Share on other sites

Hello,

 

I've set up an index page on my store with a custom welcome message (made in dreamweaver).

Now I have the following problem. When I click on a categorie, my welcome message also comes under the products.. I want this to be empty.. What's the problem or how can I change it?

 

Thank you!

 

Sharon

Sharon, not knowing how you created your "custom" welcome message, let me explain how to solve your problem using the stock welcome message:

 

Try this:

In catalog/index.php, find:

<td class="main"><?php echo tep_customer_greeting(); ?></td>

Change it to (comment it out):

<td class="main"><?php //echo tep_customer_greeting(); ?></td>

 

Now place the following in your STS Template where you want the $greeting string (that is called in general.php):

<td class="main"><?php echo tep_customer_greeting(); ?></td>

Also: You will need to modify the HTML Table tags above to meet your needs in your template.

NOTE: Since version 4, STS Templates can now include PHP coding. So, using the above, you can place the welcome message only where you want it and in only the template pages that you want it to show up on.

 

Hope this was useful,

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 Patrick,

 

Your template for product 30 is nearly working. I explain:

There are 2 types of templates: main templates that display header/columns/footer/$content and content templates that replace the $content of the main template.

Content templates are placed in the content folder, so your first trial was correct: product_info.php_30.html in content folder.

 

Now, when you look at the product_info.php page for product ID 30, it is using index.php.html as main template and content/product_info.php_30.html as content template (you can find more details about how the templates are selected in the manual). As index.php.html has $content completely down on the page, your product parameters (description, name, price, ...) are also down the page.

 

If you wonder why you have too many $ on the page, it is because you wrote the placeholders like this: $description$ but by default templates need only $description. You should place the following code at the beginning of your content template:

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

Or remove all the dollars at end of placeholders (it is however better to place the php code, to avoid extra loops when replacing placeholders by their value).

 

I hope it helps,

 

Chris "Rigadin2"

 

Hi there!

I've got the same prob as Patrick:

I am using STS 4.5,

-----------

in Admin I put @the product info module:

Product info templates and content templates (v2.1.0)

Use template for product info page

true

 

Enable STS3 compatibility mode

false

 

Files for normal template

sts_user_code.php

 

Files for content template

sts_user_code.php;product_info.php.html

 

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

@ the Index Module:

Index template (v2.0.0)

 

Use template for index page

true

 

Files for index.php template

sts_user_code.php

 

Check parent templates

true

-----------

 

I tried the following file names for the templated copied from the "full" folder:

- product_info.php_485.html and called this specific product by "http://mydomain/product_info.php/products_id/485"

- product_info.php.html (tried any call of any product)

 

The Test-Template would sadly not come up ...

 

BUT - I noticed the following:

If I use the file name "product_info.php.html"

and just use "http://mydomain/product_info.php]http://mydomain/product_info.php" without any product ID, it works!

 

Any advice would be great - I'm really getting desperate ...

Big THANKS in advance!

 

Jogi.

Edited by jogi_man
Link to comment
Share on other sites

The parameter "Files for content template" is made to include php files where placeholders are created, not to include templates. The module will find itself the correct template(s) to use.

Generally you want to include sts_user_code.php and product_info.php, but not product_info.php.html!

 

Correct this and it will work.

 

- Chris

Link to comment
Share on other sites

Hi Brian,

Can you help me out with some support. I have installed STS but am getting the following on opening the catalogue page from admin and opening the website.(www.arogaya.com)

Warning: main(includes/classes/sts.php) [function.main]: failed to open stream: No such file or directory in /home/arogaya/public_html/includes/application_top.php on line 497

 

Warning: main(includes/classes/sts.php) [function.main]: failed to open stream: No such file or directory in /home/arogaya/public_html/includes/application_top.php on line 497

 

Fatal error: main() [function.require]: Failed opening required 'includes/classes/sts.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/arogaya/public_html/includes/application_top.php on line 497

 

Thank you

Regards

Vipin

 

Simple Template System (STS) README.txt v1.3

Contribution Author: Brian Gallagher @ DiamondSea.com

Contribution Author Email: [email protected]

 

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

WHAT IT DOES:

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

Lets you create simple HTML templates to customize the look and feel of OSC.

 

You simply create an HTML page that looks the way you want it to and put in

placeholders for the various elements wherever you want to position them.

 

For example, you would put "$cartbox" wherever on the page you want the

Shopping Cart box to appear. Put "$categorybox" where you want the Categories

box to appear. Put "$content" wherever you want the main page

content (the central part where all the magic happens) to appear, etc.

 

It does this by changing only a few /catalog/includes/ files, leaving all

other files untouched, making it easy to add other contributions later.

 

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

BONUS FEATURES: Simple HEADER TAG CONTROLLER Integration

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

This contribution also allows you to use WebMakers.com's

Header Tag Controller contribution without having to modify every file on

the system. Just copy the Header Tag Controller's include files into place

and STS will automatically add them to all pages without having to modify

every PHP script in the /catalog/ directory.

 

STS will auto-detect if Header Tag Controller is installed and use it if

available.

 

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

HOW TO INSTALL:

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

 

Installation Instructions are found in the readme.txt file included in the package. Please read the readme.txt file for a list of installation instructions, new features, new variables and other enhancements to STS.

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

HOW TO USE:

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

Just modify the

 

/catalog/includes/sts_template.html

 

file to look however you want. Use stylesheet settings or HTML setting to

provide a custom look and feel to your site and arrange elements wherever you

like them.

 

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

SUPPORTED TAGS:

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

Here are the tags that are supported so far (more sure to come in later

versions):

 

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

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

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

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

working. Sorry!

 

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

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

 

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

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

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

installed.

 

$cataloglogo: The OSC logo and link

$urlcataloglogo: The URL used by the $catalog logo.

$myaccountlogo: The MyAccount graphic and link

$urlmyaccountlogo: The URL used by the My Account function

$cartlogo: The Cart graphic and link

$urlcartlogo: The URL used by the Cart function

$checkoutlogo: The Checkout graphic and link

$urlcheckoutlogo: The URL used by the Checkout function

$breadcrumbs: The "Top > Catalog > whatever..." breadcrumbs text and links

$myaccount: The text version of "My Account" and link. Changes to "Logoff" if logged on.

$urlmyaccount: The URL used by the MyAccount function.

$cartcontents: The text version of the "Cart Contents" function.

$urlcartcontents: The URL used by the MyAccount function.

$checkout: The text version of the "Check Out" function.

$urlcheckout: The URL used by the "Check Out" function.

 

$categorybox: The Category box

$manufacturerbox: The Manufacturer box

$whatsnewbox: The What's New box

$searchbox: The Search box

$informationbox: The Information box

$cartbox: The Shopping Cart box

$maninfobox: The Manufacturer Info box (blank if not used on a page)

$orderhistorybox: The Order History box (blank if not used on a page, ie: use not logged in)

$bestsellersbox: The Best Sellers box

$specialfriendbox: Either the Specials box or the Tell A Friend box (depending on page viewed)

$reviewsbox: The Reviews box

$languagebox: The Languages box

$currenciesbox: The Currencies box

$content: The main content of the page (the middle of the page)

$date: The current date

$numrequests: The "XXX requests Since DATE" text

$counter: The page view counter

$footer: The footer output from footer.php

$banner: The banner output from footer.php

 

$sid: The string for the Session ID in the format "SessionIdVarName=WhateverTheSessionIdIs"

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

DEBUGGING:

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

In the /catalog/includes/application_bottom.php file you can see the

following settings (near the top of the file):

 

$display_template_output = 1;

$display_normal_output = 0;

$display_debugging_output = 0;

 

Display_Template_Output (the default setting) will cause it to display the

template versions of the pages.

 

Display_Normal_Output will cause it to display the non-template version of

the pages.

 

Display_Debugging_Output will cause it to display debugging information

showing all of the blocks of data that it is using and how it translates

them into template variables.

 

You can use any or all of the settings in any combination. If you have both

Normal and Template output, the Template output will be displayed first.

 

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

REMOTE DEBUGGING:

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

You can toggle the debugging options via URL options. You can use the

following parameters in your URL to turn on/off options from your browser

 

sts_template=1 Turns on the Template display

sts_template=0 Turns off the Template display

sts_normal=1 Turns on the Normal display

sts_normal=0 Turns off the Normal display

sts_debug=1 Turns on the Debugging display

sts_debug=0 Turns off the Debugging display

sts_version=1 Turns on Version Number display

sts_version=0 Turns off Version Number display

 

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

SUPPORT:

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

 

For support, please post to this thread.

Link to comment
Share on other sites

Hi Brian,

Can you help me out with some support. I have installed STS but am getting the following on opening the catalogue page from admin and opening the website.(www.arogaya.com)

Warning: main(includes/classes/sts.php) [function.main]: failed to open stream: No such file or directory in /home/arogaya/public_html/includes/application_top.php on line 497

 

Warning: main(includes/classes/sts.php) [function.main]: failed to open stream: No such file or directory in /home/arogaya/public_html/includes/application_top.php on line 497

 

Fatal error: main() [function.require]: Failed opening required 'includes/classes/sts.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/arogaya/public_html/includes/application_top.php on line 497

 

Thank you

Regards

Vipin

 

Simple Template System (STS) README.txt v1.3

Contribution Author: Brian Gallagher @ DiamondSea.com

Contribution Author Email: [email protected]

 

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

WHAT IT DOES:

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

Lets you create simple HTML templates to customize the look and feel of OSC.

 

You simply create an HTML page that looks the way you want it to and put in

placeholders for the various elements wherever you want to position them.

 

For example, you would put "$cartbox" wherever on the page you want the

Shopping Cart box to appear. Put "$categorybox" where you want the Categories

box to appear. Put "$content" wherever you want the main page

content (the central part where all the magic happens) to appear, etc.

 

It does this by changing only a few /catalog/includes/ files, leaving all

other files untouched, making it easy to add other contributions later.

 

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

BONUS FEATURES: Simple HEADER TAG CONTROLLER Integration

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

This contribution also allows you to use WebMakers.com's

Header Tag Controller contribution without having to modify every file on

the system. Just copy the Header Tag Controller's include files into place

and STS will automatically add them to all pages without having to modify

every PHP script in the /catalog/ directory.

 

STS will auto-detect if Header Tag Controller is installed and use it if

available.

 

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

HOW TO INSTALL:

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

 

Installation Instructions are found in the readme.txt file included in the package. Please read the readme.txt file for a list of installation instructions, new features, new variables and other enhancements to STS.

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

HOW TO USE:

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

Just modify the

 

/catalog/includes/sts_template.html

 

file to look however you want. Use stylesheet settings or HTML setting to

provide a custom look and feel to your site and arrange elements wherever you

like them.

 

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

SUPPORTED TAGS:

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

Here are the tags that are supported so far (more sure to come in later

versions):

 

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

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

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

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

working. Sorry!

 

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

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

 

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

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

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

installed.

 

$cataloglogo: The OSC logo and link

$urlcataloglogo: The URL used by the $catalog logo.

$myaccountlogo: The MyAccount graphic and link

$urlmyaccountlogo: The URL used by the My Account function

$cartlogo: The Cart graphic and link

$urlcartlogo: The URL used by the Cart function

$checkoutlogo: The Checkout graphic and link

$urlcheckoutlogo: The URL used by the Checkout function

$breadcrumbs: The "Top > Catalog > whatever..." breadcrumbs text and links

$myaccount: The text version of "My Account" and link. Changes to "Logoff" if logged on.

$urlmyaccount: The URL used by the MyAccount function.

$cartcontents: The text version of the "Cart Contents" function.

$urlcartcontents: The URL used by the MyAccount function.

$checkout: The text version of the "Check Out" function.

$urlcheckout: The URL used by the "Check Out" function.

 

$categorybox: The Category box

$manufacturerbox: The Manufacturer box

$whatsnewbox: The What's New box

$searchbox: The Search box

$informationbox: The Information box

$cartbox: The Shopping Cart box

$maninfobox: The Manufacturer Info box (blank if not used on a page)

$orderhistorybox: The Order History box (blank if not used on a page, ie: use not logged in)

$bestsellersbox: The Best Sellers box

$specialfriendbox: Either the Specials box or the Tell A Friend box (depending on page viewed)

$reviewsbox: The Reviews box

$languagebox: The Languages box

$currenciesbox: The Currencies box

$content: The main content of the page (the middle of the page)

$date: The current date

$numrequests: The "XXX requests Since DATE" text

$counter: The page view counter

$footer: The footer output from footer.php

$banner: The banner output from footer.php

 

$sid: The string for the Session ID in the format "SessionIdVarName=WhateverTheSessionIdIs"

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

DEBUGGING:

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

In the /catalog/includes/application_bottom.php file you can see the

following settings (near the top of the file):

 

$display_template_output = 1;

$display_normal_output = 0;

$display_debugging_output = 0;

 

Display_Template_Output (the default setting) will cause it to display the

template versions of the pages.

 

Display_Normal_Output will cause it to display the non-template version of

the pages.

 

Display_Debugging_Output will cause it to display debugging information

showing all of the blocks of data that it is using and how it translates

them into template variables.

 

You can use any or all of the settings in any combination. If you have both

Normal and Template output, the Template output will be displayed first.

 

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

REMOTE DEBUGGING:

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

You can toggle the debugging options via URL options. You can use the

following parameters in your URL to turn on/off options from your browser

 

sts_template=1 Turns on the Template display

sts_template=0 Turns off the Template display

sts_normal=1 Turns on the Normal display

sts_normal=0 Turns off the Normal display

sts_debug=1 Turns on the Debugging display

sts_debug=0 Turns off the Debugging display

sts_version=1 Turns on Version Number display

sts_version=0 Turns off Version Number display

 

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

SUPPORT:

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

 

For support, please post to this thread.

Link to comment
Share on other sites

Hi Brian,

Can you help me out with some support. I have installed STS but am getting the following on opening the catalogue page from admin and opening the website.(www.arogaya.com)

Warning: main(includes/classes/sts.php) [function.main]: failed to open stream: No such file or directory in /home/arogaya/public_html/includes/application_top.php on line 497

 

Warning: main(includes/classes/sts.php) [function.main]: failed to open stream: No such file or directory in /home/arogaya/public_html/includes/application_top.php on line 497

 

Fatal error: main() [function.require]: Failed opening required 'includes/classes/sts.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/arogaya/public_html/includes/application_top.php on line 497

 

Thank you

Regards

Vipin

 

Simple Template System (STS) README.txt v1.3

Contribution Author: Brian Gallagher @ DiamondSea.com

Contribution Author Email: [email protected]

 

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

WHAT IT DOES:

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

Lets you create simple HTML templates to customize the look and feel of OSC.

 

You simply create an HTML page that looks the way you want it to and put in

placeholders for the various elements wherever you want to position them.

 

For example, you would put "$cartbox" wherever on the page you want the

Shopping Cart box to appear. Put "$categorybox" where you want the Categories

box to appear. Put "$content" wherever you want the main page

content (the central part where all the magic happens) to appear, etc.

 

It does this by changing only a few /catalog/includes/ files, leaving all

other files untouched, making it easy to add other contributions later.

 

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

BONUS FEATURES: Simple HEADER TAG CONTROLLER Integration

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

This contribution also allows you to use WebMakers.com's

Header Tag Controller contribution without having to modify every file on

the system. Just copy the Header Tag Controller's include files into place

and STS will automatically add them to all pages without having to modify

every PHP script in the /catalog/ directory.

 

STS will auto-detect if Header Tag Controller is installed and use it if

available.

 

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

HOW TO INSTALL:

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

 

Installation Instructions are found in the readme.txt file included in the package. Please read the readme.txt file for a list of installation instructions, new features, new variables and other enhancements to STS.

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

HOW TO USE:

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

Just modify the

 

/catalog/includes/sts_template.html

 

file to look however you want. Use stylesheet settings or HTML setting to

provide a custom look and feel to your site and arrange elements wherever you

like them.

 

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

SUPPORTED TAGS:

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

Here are the tags that are supported so far (more sure to come in later

versions):

 

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

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

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

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

working. Sorry!

 

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

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

 

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

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

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

installed.

 

$cataloglogo: The OSC logo and link

$urlcataloglogo: The URL used by the $catalog logo.

$myaccountlogo: The MyAccount graphic and link

$urlmyaccountlogo: The URL used by the My Account function

$cartlogo: The Cart graphic and link

$urlcartlogo: The URL used by the Cart function

$checkoutlogo: The Checkout graphic and link

$urlcheckoutlogo: The URL used by the Checkout function

$breadcrumbs: The "Top > Catalog > whatever..." breadcrumbs text and links

$myaccount: The text version of "My Account" and link. Changes to "Logoff" if logged on.

$urlmyaccount: The URL used by the MyAccount function.

$cartcontents: The text version of the "Cart Contents" function.

$urlcartcontents: The URL used by the MyAccount function.

$checkout: The text version of the "Check Out" function.

$urlcheckout: The URL used by the "Check Out" function.

 

$categorybox: The Category box

$manufacturerbox: The Manufacturer box

$whatsnewbox: The What's New box

$searchbox: The Search box

$informationbox: The Information box

$cartbox: The Shopping Cart box

$maninfobox: The Manufacturer Info box (blank if not used on a page)

$orderhistorybox: The Order History box (blank if not used on a page, ie: use not logged in)

$bestsellersbox: The Best Sellers box

$specialfriendbox: Either the Specials box or the Tell A Friend box (depending on page viewed)

$reviewsbox: The Reviews box

$languagebox: The Languages box

$currenciesbox: The Currencies box

$content: The main content of the page (the middle of the page)

$date: The current date

$numrequests: The "XXX requests Since DATE" text

$counter: The page view counter

$footer: The footer output from footer.php

$banner: The banner output from footer.php

 

$sid: The string for the Session ID in the format "SessionIdVarName=WhateverTheSessionIdIs"

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

DEBUGGING:

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

In the /catalog/includes/application_bottom.php file you can see the

following settings (near the top of the file):

 

$display_template_output = 1;

$display_normal_output = 0;

$display_debugging_output = 0;

 

Display_Template_Output (the default setting) will cause it to display the

template versions of the pages.

 

Display_Normal_Output will cause it to display the non-template version of

the pages.

 

Display_Debugging_Output will cause it to display debugging information

showing all of the blocks of data that it is using and how it translates

them into template variables.

 

You can use any or all of the settings in any combination. If you have both

Normal and Template output, the Template output will be displayed first.

 

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

REMOTE DEBUGGING:

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

You can toggle the debugging options via URL options. You can use the

following parameters in your URL to turn on/off options from your browser

 

sts_template=1 Turns on the Template display

sts_template=0 Turns off the Template display

sts_normal=1 Turns on the Normal display

sts_normal=0 Turns off the Normal display

sts_debug=1 Turns on the Debugging display

sts_debug=0 Turns off the Debugging display

sts_version=1 Turns on Version Number display

sts_version=0 Turns off Version Number display

 

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

SUPPORT:

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

 

For support, please post to this thread.

Link to comment
Share on other sites

Hi Brian,

Can you help me out with some support. I have installed STS but am getting the following on opening the catalogue page from admin and opening the website.(www.arogaya.com)

Warning: main(includes/classes/sts.php) [function.main]: failed to open stream: No such file or directory in /home/arogaya/public_html/includes/application_top.php on line 497

 

Warning: main(includes/classes/sts.php) [function.main]: failed to open stream: No such file or directory in /home/arogaya/public_html/includes/application_top.php on line 497

 

Fatal error: main() [function.require]: Failed opening required 'includes/classes/sts.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/arogaya/public_html/includes/application_top.php on line 497

Although you asked for "Brian", I'll try and help you out (Brian has not posted here in quite a while)...

When you get an error such as the "No such file or directory in /some/dir/ on xx line", this is exactly what is wrong. Check that you installed the files correctly and confirm that you have actually uploaded the files to the correct folders.

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 All

 

I'm really stuck on this, I have used STS once before and got it working fine but that was STS v3. It seems a lot has changed since then.

 

My problem is this, I have created a file called index.php.html which has all the code/tags from the original sts_template.html file except I removed the $content tag and replaced it with all the static content I want on the homepage.

 

When uploaded this file the index page appears nicely but all the category links do not work.....

 

I have tried removing the index.php.html and just used an exact copy of it but with the $content tag included and everything works fine.

 

 

This is probably so simple but I just don't get it. Why did this work in v3 and not in v4.... Do i have to modify a specific file to edit the $content tag on the index.php.html template I've created?

 

Visit My Website

 

Thanks for any help

 

Weavers

Link to comment
Share on other sites

Hi,

I am in process of upgrading from sts 4.4 to 4.5,

I was using STS 4.4 for one single html page which change look of whole website , and it was great.

Now I want to edit specific pages Like Checkout and login because I want customer to chose between paypal or google checkout.

I understand in STS I can create one single page which will look exactly the way we want.

Please advise how I can change/create html and apply in main website for specific pages.

is there any help available, and what is placeholder code for checkout options.

 

Thanks

zee

Link to comment
Share on other sites

Hello!

I got a problem with the installation of sts.

I extracted the new files, uploaded it to the server and then installed the files through the admin panel (modules => sts).

The problem is that the installed files don't influence the template of the shop. I even can delete the sts_templates folder!

 

Can anyone help me?

 

link: http://www.unknown-stylez.com/entertainmen...talog/index.php

Link to comment
Share on other sites

Posted this yesterday after installing STS v4.5 but in "Templates & Images" forum pages rather than STS specific thread....

 

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

 

Can anyone with good STS knowledge help??? I am baffled!

Bug fix 1 of 2 can be found at: http://www.oscommerce.com/forums/index.php?s=&...t&p=1023674

 

At the very end of application_top.php, it should look like this:

 

 // START STS 4.1
 require (DIR_WS_CLASSES.'sts.php');
 $sts= new sts();
 $sts->start_capture();
 // END STS 4.1
// initialize the message stack for output messages
 require(DIR_WS_CLASSES . 'message_stack.php');
 $messageStack = new messageStack;

// set which precautions should be checked
 define('WARN_INSTALL_EXISTENCE', 'true');
 define('WARN_CONFIG_WRITEABLE', 'true');
 define('WARN_SESSION_DIRECTORY_NOT_WRITEABLE', 'true');
 define('WARN_SESSION_AUTO_START', 'true');
 define('WARN_DOWNLOAD_DIRECTORY_NOT_READABLE', 'true');
?>

 

Bug fix 2 of 2 can be found at: http://www.oscommerce.com/forums/index.php?s=&...t&p=1037770

 

Templates are not being recognized by STS.

 

Open the includes/modules/sts/sts_default.php file.

Find:

 

if (strstr($scriptbasename, "popup") || strstr($scriptbasename, "info_shopping_cart")) {
return ''; // We don't use template for these scripts

$check_file = STS_TEMPLATE_DIR .$scriptbasename . ".html";

if (file_exists($check_file)) return $check_file;

 }

 

Replace with (you will remove the bracket):

 

if (strstr($scriptbasename, "popup") || strstr($scriptbasename, "info_shopping_cart"))
  return ''; // We don't use template for these scripts

$check_file = STS_TEMPLATE_DIR .$scriptbasename . ".html";

if (file_exists($check_file)) return $check_file;

 

If you leave the brackets "as is", then you will experience templates not being recognized by STS.

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 All

 

I'm really stuck on this, I have used STS once before and got it working fine but that was STS v3. It seems a lot has changed since then.

 

My problem is this, I have created a file called index.php.html which has all the code/tags from the original sts_template.html file except I removed the $content tag and replaced it with all the static content I want on the homepage.

 

When uploaded this file the index page appears nicely but all the category links do not work.....

 

I have tried removing the index.php.html and just used an exact copy of it but with the $content tag included and everything works fine.

 

 

This is probably so simple but I just don't get it. Why did this work in v3 and not in v4.... Do i have to modify a specific file to edit the $content tag on the index.php.html template I've created?

 

Visit My Website

 

Thanks for any help

 

Weavers

Prior to version 4, STS required that you modify the configure.php files. Well, that is no longer necessary. Your configure.php file may still reflect modifications that are no longer needed or you may just have some errors there. Check to be sure you have configured the includes/configure.php file correctly.

 

Open this file:

includes/configure.php

Find the following line:

 

define('DIR_FS_CATALOG', '/home/catalog/blueystore.com/');

 

Change it to the following:

define('DIR_FS_CATALOG', '/home/catalog/blueystore.com');

The extra slash is causing your link problems.

 

Let me know if you are still having 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,

I am in process of upgrading from sts 4.4 to 4.5,

I was using STS 4.4 for one single html page which change look of whole website , and it was great.

Now I want to edit specific pages Like Checkout and login because I want customer to chose between paypal or google checkout.

I understand in STS I can create one single page which will look exactly the way we want.

Please advise how I can change/create html and apply in main website for specific pages.

is there any help available, and what is placeholder code for checkout options.

 

Thanks

zee

zee, you can continue to use the one template for your entire site and then just add the checkout page templates for whatever you want. I'm assuming that you do know that your customer will only have the option to use PayPal or Google checkouts only if you have these options setup in the payment modules (that have nothing to do with STS).

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

Hello!

I got a problem with the installation of sts.

I extracted the new files, uploaded it to the server and then installed the files through the admin panel (modules => sts).

The problem is that the installed files don't influence the template of the shop. I even can delete the sts_templates folder!

 

Can anyone help me?

 

link: http://www.unknown-stylez.com/entertainmen...talog/index.php

You need to at least set the STS DEFAULT MODULE to "Use Templates = True".

The DEFAULT MODULE allows you to also change the settings for your template folder (test by default), whether or not you want to use Infobox Templates (false by default), etc.

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 recently upgraded the version of STS in my shop from v4.4 to 4.5.2. I do alot of random mock orders to check functionality and discovered that the button to update cart contents was non SSL when the cart contents page was SSL. This is when logged in, I am not worried about it when someone is not logged in. I need the security message in my browser to disappear.

 

I am thinking that this issue is related with STS with this line in the description on the STS contribution page.

- BUG FIXED where $cartcontents was not using SSL. (general.php)

I was unable to backtrack and downgrade to 4.4 using my instant back-up system since I installed Easy Coupons after the STS 4.5.2, and could not take coupons offline.

 

The store is located at http://www.theblackberrypatch.com/

If it would help I created an account for anyone to look at it, but please do not place an order using this account, or any others unless you are serious in purchasing something. My shop is a live shop.

E-Mail: [email protected]

Password: password

 

I really appreciate all the help that I have received since I began using OSCommerce in January.

 

Karl

Link to comment
Share on other sites

Hello, could someone please tell me how to call a different template when using a different LANGUAGE? My site will be in 4 languages but I don't know how to call a different template when people choose to browse in another language!

 

I have been using STS V.1.8 since 4 years ago in all my sites and they all work great, however now I have a few customers who will be translating their sites and I am stuck there.

 

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