Jump to content
rigadin2

[Contribution] STS v4

Recommended Posts

I have just installed STS followed the install copied Files for MS2 over a fresh osCommerce 2.2MS2 (060817) installation.

and copied all these below from the STS folder into my store,

 

catalog\includes\classes\sts.php

 

catalog\includes\functions\sts.php

 

folder catalog\includes\languages\english\modules\sts (plus all other languages you may have in your setup)

 

folder catalog\includes\modules\sts

 

folder catalog\includes\modules\sts_inc

 

folder catalog\includes\sts_templates

 

doubled and tripled checked but in the Admin area under modules STS

only shows "Module Directory: C:/xampp/htdocs/catalog//includes/modules/sts/" and nothing more. when i install ms2 i have to install a htacess contrib from Vger to enable register_globals as i was getting this error when i installed MS2 over my new install on my main page

any help would be greatly appreciated

thanks

Paul

Paul, you are having some osCommerce configuration issues, possibly from the htacess you created (notice the double slash "//" in your catalog path? Is there a reason why you do not want to use osC RC1 which works with or without register globals?

 

Regarding the double slash: I think the problems actually lies in the following file:

 

This line in admin/includes/configure.php or includes/configure.php:

 

define('DIR_FS_DOCUMENT_ROOT', '/blah/blah/blah/catalog/'); // where the pages are located on the server

 

Should be:

 

define('DIR_FS_DOCUMENT_ROOT', '/blah/blah/blayh/catalog'); // where the pages are located on the server

 

No trailing SLASH after catalog...

 

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
No sir they work fine :) ,

 

They reason I want to test for them, as you say, if they don't hae a value they don't display. I have built a a table inside that has those variables in it, but the table

is empty looking obviously when those variable are empty, so by testing if they are empty, I can "spruce" up the drawn table with something else.

 

It would be better to visit these two pages to see the difference.

 

Here is a product that has options for color and the table looks "busy"

http://creativenestings.com/osc22rc1/catal...;products_id=35

 

Here is a product that has no options, and the table needs some "sprucing" up as it is basically blank

http://creativenestings.com/osc22rc1/catal...;products_id=43

 

I just want to be able to put some text in that box for product where there is no options available for it.

 

The variables work perfect....I just want to create html code for them if the are empty.

 

I hope that better explains what I want to do.

 

I am trying to use ONE template, as I know I could build individual templates for each product, but would prefer to use a default

one for all products.

 

Thanks sir.

 

Nacman

 

p.s. I have rang your bell enough, you've got paypal :)

 

First of all....THANK YOU FOR THE DONATION! That was very generous of you!

 

Have you considered adding your custom html in the sts_inc/product_info.php file:

 

Find the following code:

} else {
 // No options, blank out the template variables for them
 $template_pinfo['optionheader'] = '';
 $template_pinfo['optionnames'] = '';
 $template_pinfo['optionchoices'] = '';
}

This is the code that tells STS to do 'nothing' if there are no product attribute options. Try adding your custom HTML there.

 

:thumbsup: As with all STS placeholders, the following syntax is used to create them:

$sts->template['mynewtag'] = 'MyCode';

 

and place $mynewtag in the template to display 'MyCode'.

In the content product_info templates, you need to follow this syntax:

$template_pinfo['mynewtag'] = 'MyCode';

 

:thumbsup: The 'MyCode' part can be anything that you want to be displayed in the browser. Also remember that you can create STS tags directly in the template page itself but it would only be used on that page so it would be better off created in the propter STS PHP file. As for the option tags, they are created in: includes/modules/sts_inc/general.php.

 

I would be interested in you final outcome for this so please keep us posted. :rolleyes:

 

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
Paul, you are having some osCommerce configuration issues, possibly from the htacess you created (notice the double slash "//" in your catalog path? Is there a reason why you do not want to use osC RC1 which works with or without register globals?

 

Regarding the double slash: I think the problems actually lies in the following file:

 

This line in admin/includes/configure.php or includes/configure.php:

 

define('DIR_FS_DOCUMENT_ROOT', '/blah/blah/blah/catalog/'); // where the pages are located on the server

 

Should be:

 

define('DIR_FS_DOCUMENT_ROOT', '/blah/blah/blayh/catalog'); // where the pages are located on the server

 

No trailing SLASH after catalog...

 

Hope this helped,

 

Hi Bill really appreciate the reply , I am actually using RC1 sorry i was a bit confused so i was actually putting the MS2 files

over my RC1 installation which was wrong, so i did a fresh install of oscommerce RC1 and copied the RC1 files over this time and also the STS files, but this the same thing in my Admin when i click on Modules,STS i get just this Module Directory: C:/xampp/htdocs/catalog//includes/modules/sts/. I tryed what you said also about the removing the // in the config.php but still the same. I am using Xampp by the way, for a local install.

Share this post


Link to post
Share on other sites
Hi Bill really appreciate the reply , I am actually using RC1 sorry i was a bit confused so i was actually putting the MS2 files

over my RC1 installation which was wrong, so i did a fresh install of oscommerce RC1 and copied the RC1 files over this time and also the STS files, but this the same thing in my Admin when i click on Modules,STS i get just this Module Directory: C:/xampp/htdocs/catalog//includes/modules/sts/. I tryed what you said also about the removing the // in the config.php but still the same. I am using Xampp by the way, for a local install.

Paul, since you are using RC1, don't add the Register Global edtis that were suggested. You should not need any of that.

 

I still believe your issues stem from your configure.php file(s) -there are two by the way (check both).

If you have this option available to you, try installing osC RC1 and STSv4.5.8 on your live server in a test folder to see if you will even have these issues in your live server settings.


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
Paul, since you are using RC1, don't add the Register Global edtis that were suggested. You should not need any of that.

 

I still believe your issues stem from your configure.php file(s) -there are two by the way (check both).

If you have this option available to you, try installing osC RC1 and STSv4.5.8 on your live server in a test folder to see if you will even have these issues in your live server settings.

 

Bill

I have not added the register global edits as before as the problem with that does not come up now as i am now coping RC1 over RC1 instead off MS2 over RC1 which i was doing before.I have looked at the config.php file in catalog/includes but it does not have the line define('DIR_FS_DOCUMENT_ROOT', '/blah/blah/blah/catalog/'); // which is in the Admin/Includes .i do not have live hosting to upload into which is a problem.

Edited by lamai30

Share this post


Link to post
Share on other sites

I just installed a fresh copy of oscommerce 2.2 RC1. For the first module I downloaded STS, but having a bit of a problem. When I click Install STS module .... nothing happens....

 

What could be wrong? :huh:

Edited by torpike

Share this post


Link to post
Share on other sites
I just installed a fresh copy of oscommerce 2.2 RC1. For the first module I downloaded STS, but having a bit of a problem. When I click Install STS module .... nothing happens....

 

What could be wrong? :huh:

anna, Are you absolutely sure that you are not using the 060817 version of osCommerce rather than the RC1 version? Can you enable other modules such as shipping, payment, etc?

 

If you do have RC1, then reinstall STS as you must have missed something.


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
Bill

I have not added the register global edits as before as the problem with that does not come up now as i am now coping RC1 over RC1 instead off MS2 over RC1 which i was doing before.I have looked at the config.php file in catalog/includes but it does not have the line define('DIR_FS_DOCUMENT_ROOT', '/blah/blah/blah/catalog/'); // which is in the Admin/Includes .i do not have live hosting to upload into which is a problem.

 

paul,

Look at the following lines in each of your configure.php files:

 

admin/includes/configure.php:

define('HTTP_SERVER', 'http://www.blah.com');

define('HTTP_CATALOG_SERVER', 'http://www.blah.com');

define('HTTPS_CATALOG_SERVER', 'http://www.blah.com');

define('ENABLE_SSL_CATALOG', 'false');

define('DIR_FS_DOCUMENT_ROOT', '/home/blah/public_html/catalog/');

define('DIR_WS_ADMIN', '/catalog/admin/');

define('DIR_FS_ADMIN', '/home/blah/public_html/catalog/admin/');

define('DIR_WS_CATALOG', '/catalog/');

define('DIR_FS_CATALOG', '/home/blah/public_html/catalog/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

includes/configure.php:

define('HTTP_SERVER', 'http://www.blah.com');

define('HTTPS_SERVER', 'http://www.blah.com');

define('ENABLE_SSL', false);

define('HTTP_COOKIE_DOMAIN', 'www.blah.com');

define('HTTPS_COOKIE_DOMAIN', 'www.blah.com');

define('HTTP_COOKIE_PATH', '/catalog/');

define('HTTPS_COOKIE_PATH', '/catalog/');

define('DIR_WS_HTTP_CATALOG', '/catalog/');

define('DIR_WS_HTTPS_CATALOG', '/catalog/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', '/home/blah/public_html/catalog/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

This is not an STS problem but rather an issue with how you have either your shop configured or your home test server. I am out of suggestions if you have your configure.php files configured correctly.


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
Have you considered adding your custom html in the sts_inc/product_info.php file:

 

Find the following code:

} else {
 // No options, blank out the template variables for them
 $template_pinfo['optionheader'] = '';
 $template_pinfo['optionnames'] = '';
 $template_pinfo['optionchoices'] = '';
}

This is the code that tells STS to do 'nothing' if there are no product attribute options. Try adding your custom HTML there.

 

:thumbsup: As with all STS placeholders, the following syntax is used to create them:

$sts->template['mynewtag'] = 'MyCode';

want

and place $mynewtag in the template to display 'MyCode'.

In the content product_info templates, you need to follow this syntax:

$template_pinfo['mynewtag'] = 'MyCode';

 

:thumbsup: The 'MyCode' part can be anything that you want to be displayed in the browser. Also remember that you can create STS tags directly in the template page itself but it would only be used on that page so it would be better off created in the propter STS PHP file. As for the option tags, they are created in: includes/modules/sts_inc/general.php.

 

I would be interested in you final outcome for this so please keep us posted. :rolleyes:

 

Hope this helped you out,

 

That did the trick. AWESOME. What I love most about STS is the ability to take whatever formating you want and mark it up in your HTML editor of choice and then

paste it (carefully) into the php file handling output. I learned quick about using a possessive form of a word though. Like "Item's", you need to preceed the apostrophe with a leading \

to keep parsing errors from cropping up.

 

Thanks again. I am sure I will have more questions as I delve deeper into this.

 

Nacman

Edited by Nacman

Share this post


Link to post
Share on other sites

I have STS installed. I have two issues.

 

Firstly on the main shop page the main table body is wider than the rest - the footer also appears within the main table body which could be why it is wider - does anyone know how to fix this. index.php.html seems to hold the template for these files but I can't work it out - all other pages - ie product pages are fine.

 

My other issue is I want to install HTC for meta information but I'm not entirely sure which contribution to install as I already have STS4 installed - could someone tell me which contribution to use?

 

Thanks very much

 

Lotti

Share this post


Link to post
Share on other sites
anna, Are you absolutely sure that you are not using the 060817 version of osCommerce rather than the RC1 version? Can you enable other modules such as shipping, payment, etc?

 

If you do have RC1, then reinstall STS as you must have missed something.

 

Problem solved :blush: ..... I uploaded the STS folder into the wrong one :-" ..... thank you for your reply

Share this post


Link to post
Share on other sites
paul,

Look at the following lines in each of your configure.php files:

 

admin/includes/configure.php:

define('HTTP_SERVER', 'http://www.blah.com');

define('HTTP_CATALOG_SERVER', 'http://www.blah.com');

define('HTTPS_CATALOG_SERVER', 'http://www.blah.com');

define('ENABLE_SSL_CATALOG', 'false');

define('DIR_FS_DOCUMENT_ROOT', '/home/blah/public_html/catalog/');

define('DIR_WS_ADMIN', '/catalog/admin/');

define('DIR_FS_ADMIN', '/home/blah/public_html/catalog/admin/');

define('DIR_WS_CATALOG', '/catalog/');

define('DIR_FS_CATALOG', '/home/blah/public_html/catalog/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

includes/configure.php:

define('HTTP_SERVER', 'http://www.blah.com');

define('HTTPS_SERVER', 'http://www.blah.com');

define('ENABLE_SSL', false);

define('HTTP_COOKIE_DOMAIN', 'www.blah.com');

define('HTTPS_COOKIE_DOMAIN', 'www.blah.com');

define('HTTP_COOKIE_PATH', '/catalog/');

define('HTTPS_COOKIE_PATH', '/catalog/');

define('DIR_WS_HTTP_CATALOG', '/catalog/');

define('DIR_WS_HTTPS_CATALOG', '/catalog/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', '/home/blah/public_html/catalog/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

This is not an STS problem but rather an issue with how you have either your shop configured or your home test server. I am out of suggestions if you have your configure.php files configured correctly.

 

 

Hi Bill,

Still the same problem as before looked at the 2 configure.php and they look the same. i did a fresh install again on xampp no contribs or anything at the moment here are my to configure.php files

 

catalog/includes

 

<?php

define('HTTP_SERVER', 'http://localhost');

define('HTTPS_SERVER', 'http://localhost');

define('ENABLE_SSL', false);

define('HTTP_COOKIE_DOMAIN', 'localhost');

define('HTTPS_COOKIE_DOMAIN', 'localhost');

define('HTTP_COOKIE_PATH', '/catalog/');

define('HTTPS_COOKIE_PATH', '/catalog/');

define('DIR_WS_HTTP_CATALOG', '/catalog/');

define('DIR_WS_HTTPS_CATALOG', '/catalog/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', 'C:/xampp/htdocs/catalog//');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

define('DB_SERVER', '127.0.0.1');

define('DB_SERVER_USERNAME', 'root');

define('DB_SERVER_PASSWORD', 'password');

define('DB_DATABASE', 'paulsite');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

?>

 

Admin/Includes

 

<?php

define('HTTP_SERVER', 'http://localhost');

define('HTTP_CATALOG_SERVER', 'http://localhost');

define('HTTPS_CATALOG_SERVER', 'http://localhost');

define('ENABLE_SSL_CATALOG', 'false');

define('DIR_FS_DOCUMENT_ROOT', 'C:/xampp/htdocs/catalog//');

define('DIR_WS_ADMIN', '/catalog/admin/');

define('DIR_FS_ADMIN', 'C:/xampp/htdocs/catalog//admin/');

define('DIR_WS_CATALOG', '/catalog/');

define('DIR_FS_CATALOG', 'C:/xampp/htdocs/catalog//');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

define('DB_SERVER', '127.0.0.1');

define('DB_SERVER_USERNAME', 'root');

define('DB_SERVER_PASSWORD', 'password');

define('DB_DATABASE', 'paulsite');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

?>

 

thanks for all your help before

paul

Edited by lamai30

Share this post


Link to post
Share on other sites

I want to install QT Pro and Easy populate I have STS v4 installed.

 

Do I need to use this QT Pro STS hack to get it working?

 

 

Thanks

Share this post


Link to post
Share on other sites
I want to install QT Pro and Easy populate I have STS v4 installed.

 

Do I need to use this QT Pro STS hack to get it working?

 

 

Thanks

Lotti,

If a contribution makes changes to the product_info.php file, then the same changes need to be made in the sts_inc/product_info.php file.

With that said, the QT Pro STS hack listed in the Power Pack site does this but in an odd way. What it does is cancel out the stock STS tags for options and creates a new STS tag for QT options. It works but I would rather add an "else" clause in the PHP code to add in the QT options.

 

:thumbsup: Keep in mind that the QT Pro contribution works with STS "out of the box" as long as you don't use product content templates. By not using product content templates, STS will use the stock product_info.php file to fill in the $content tag of your template whic would pick up all of the QT Pro options that was added when you installed the QT Pro contribution.

 

Hope that helps,


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
I have STS installed. I have two issues.

 

Firstly on the main shop page the main table body is wider than the rest - the footer also appears within the main table body which could be why it is wider - does anyone know how to fix this. index.php.html seems to hold the template for these files but I can't work it out - all other pages - ie product pages are fine.

 

My other issue is I want to install HTC for meta information but I'm not entirely sure which contribution to install as I already have STS4 installed - could someone tell me which contribution to use?

 

Thanks very much

 

Lotti

Lotti,

If you want to install HTC, then I strongly urge you to follow my step by step (see link in my signature below) and also if you want the HTC category descriptions to work then you would also need to edit your index.php file according to this step by step link:

 

http://forums.oscommerce.com/index.php?sho...p;#entry1116611

 

:thumbsup: Use the step by step in my signature below first though.

 

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

If you want to install HTC, then I strongly urge you to follow my step by step (see link in my signature below) and also if you want the HTC category descriptions to work then you would also need to edit your index.php file according to this step by step link:

 

http://forums.oscommerce.com/index.php?sho...p;#entry1116611

 

:thumbsup: Use the step by step in my signature below first though.

 

Hope this helped you out,

 

Hi Bill,

 

Thanks for answering.

 

I've looked into it further and found that I do already have HTC installed - I thought I did, but form some reason the extra fields no longer appear on the category or product pages - I haven't worked on the shop for a while and thought I must have not installed it.

 

For this to have disappeared is this an STS issue or an HTC issue - I have the HTC section in admin still.

 

Thanks

 

Lotti

Share this post


Link to post
Share on other sites

I have just done a fresh install of RC1 and included, STS 4.5.8 and when if i point admin to my new page in the TEMP folder, it simply shows the original OS Commerce page with the following error in the top-left:

 

Template file does not exist: [includes/sts_templates/temp/temp.html]

 

Does anyone have an idea?

 

Thanks

Share this post


Link to post
Share on other sites

Hi Bill,

 

Thanks for your great work and continuous support.

I am using STS for a while now.

Recently updated my system with latest Update of STS.

 

I do not have Header Tags Controller in my system yet, but I am not sure if I need that, actually I am not really aware of full functionality of HTC. what difference HTC can make.

 

I am more interested in changing my Manufacture and Category pages individually.

 

can I change content display different way in different Catgories or manufactures.

 

I am still not good in PHP and relying more on help and forum support.

 

I will appreciate any comments on my site which really looks what it is because of STS.

 

Regards

 

Zee

www.zeeshop.co.uk

Share this post


Link to post
Share on other sites
Hi Bill,

 

Thanks for answering.

 

I've looked into it further and found that I do already have HTC installed - I thought I did, but form some reason the extra fields no longer appear on the category or product pages - I haven't worked on the shop for a while and thought I must have not installed it.

 

For this to have disappeared is this an STS issue or an HTC issue - I have the HTC section in admin still.

 

Thanks

 

Lotti

 

Hi Bill,

 

I got it working, wasn't an STS problem - more a user one!

Share this post


Link to post
Share on other sites

I am getting the following error when trying to access my admin panel:

 

Warning: require(includes/classes/navigation_history.php) [function.require]: failed to open stream: No such file or directory in C:\xampp\htdocs\catalog\admin\includes\application_top.php on line 128

 

Fatal error: require() [function.require]: Failed opening required 'includes/classes/navigation_history.php' (include_path='.;C:\xampp\php\pear\') in C:\xampp\htdocs\catalog\admin\includes\application_top.php on line 128

 

I did a fresh install of OSC and copied the two folders from the "Files for RC1" directory to overwrite the OSC files. I am running OSC locally using XAMPP.

 

I did a search on the forum but could not find a definitive solution.

 

Any suggestions?

Share this post


Link to post
Share on other sites
I am getting the following error when trying to access my admin panel:

 

Warning: require(includes/classes/navigation_history.php) [function.require]: failed to open stream: No such file or directory in C:\xampp\htdocs\catalog\admin\includes\application_top.php on line 128

 

Fatal error: require() [function.require]: Failed opening required 'includes/classes/navigation_history.php' (include_path='.;C:\xampp\php\pear\') in C:\xampp\htdocs\catalog\admin\includes\application_top.php on line 128

 

I did a fresh install of OSC and copied the two folders from the "Files for RC1" directory to overwrite the OSC files. I am running OSC locally using XAMPP.

 

I did a search on the forum but could not find a definitive solution.

 

Any suggestions?

Lee,

This is not a STS issue. This thread is for STS support.

:thumbsup: Your problem proabably arises from files and folders having the wrong permission settings causing the admin to not be able to locate them.


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

hello bill thanks for the help before and actually solved some issues lol.......I am working on the popimage and realixed I was not putting the $headcontents in for it to put up.....well got that and now the popup actually popsup but I get this:

 

Warning: main(includes/modules/sts_inc/popup_image.php.html) [function.main]: failed to open stream: No such file or directory in /home/icecream/public_html/catalog/includes/modules/sts_inc/sts_display_output.php on line 21

 

Warning: main(includes/modules/sts_inc/popup_image.php.html) [function.main]: failed to open stream: No such file or directory in /home/icecream/public_html/catalog/includes/modules/sts_inc/sts_display_output.php on line 21

 

Warning: main(includes/modules/sts_inc/popup_image.php.html) [function.main]: failed to open stream: No such file or directory in /home/icecream/public_html/catalog/includes/modules/sts_inc/sts_display_output.php on line 21

 

Warning: main() [function.include]: Failed opening 'includes/modules/sts_inc/popup_image.php.html' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/icecream/public_html/catalog/includes/modules/sts_inc/sts_display_output.php on line 21

Share this post


Link to post
Share on other sites
hello bill thanks for the help before and actually solved some issues lol.......I am working on the popimage and realixed I was not putting the $headcontents in for it to put up.....well got that and now the popup actually popsup but I get this:

 

Warning: main(includes/modules/sts_inc/popup_image.php.html) [function.main]: failed to open stream: No such file or directory in /home/icecream/public_html/catalog/includes/modules/sts_inc/sts_display_output.php on line 21

 

Warning: main(includes/modules/sts_inc/popup_image.php.html) [function.main]: failed to open stream: No such file or directory in /home/icecream/public_html/catalog/includes/modules/sts_inc/sts_display_output.php on line 21

 

Warning: main(includes/modules/sts_inc/popup_image.php.html) [function.main]: failed to open stream: No such file or directory in /home/icecream/public_html/catalog/includes/modules/sts_inc/sts_display_output.php on line 21

 

Warning: main() [function.include]: Failed opening 'includes/modules/sts_inc/popup_image.php.html' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/icecream/public_html/catalog/includes/modules/sts_inc/sts_display_output.php on line 21

Tom, It appears you have included a template file name in the STS Modules configuration....Don't do that. :-

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

 

Thanks for your great work and continuous support.

I am using STS for a while now.

Recently updated my system with latest Update of STS.

 

I do not have Header Tags Controller in my system yet, but I am not sure if I need that, actually I am not really aware of full functionality of HTC. what difference HTC can make.

 

I am more interested in changing my Manufacture and Category pages individually.

 

can I change content display different way in different Catgories or manufactures.

 

I am still not good in PHP and relying more on help and forum support.

 

I will appreciate any comments on my site which really looks what it is because of STS.

 

Regards

 

Zee

www.zeeshop.co.uk

Zee,

Sounds like you have been only using a single template for all pages in your shop. STS allows you to create a template for specific categories/products as well. Check out the STS User Manual for detailed instrucitons on how to do this. Basically STS will use a template for any PHP scripts that have a template named after them.

 

For example:

index.php.html = index.php

index.php_2.html = index.php?cPath=2

 

By the way, HTC is a contributions that creates meta tags for each page in your shop in order for the search engines to find your shop. It is optional but really useful to bring in sales. If you decide to install HTC, you could follow my Step by Step in my signature below for an easy installation for STS users.

 

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
I have just done a fresh install of RC1 and included, STS 4.5.8 and when if i point admin to my new page in the TEMP folder, it simply shows the original OS Commerce page with the following error in the top-left:

 

Template file does not exist: [includes/sts_templates/temp/temp.html]

 

Does anyone have an idea?

 

Thanks

Change the STS Default Module back to its original settings and then test STS to make sure you have it installed correctly.

 

After you have tested (meaning the sample sts template shows when viewing in your browser), then change the template folder to to whatever you want (in your case "temp") and then change the name of your default template to "sts_template.html". It doesn't matter what you call this so you should keep it sts_template.html since the user will never see this name in thier browser anyway.


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

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

×