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

[Contribution] STS v4

Recommended Posts

Kira Go Into languages/english.php it it is there for the whats new here. You can also find the answer to the cartoon question in the install and configuration thread. The top one getting pinned.

I hope this helps

Pat

 

lol @ the "cartoon" question : )

 

For another store I just replaced all the images with 1x1 transparent files (aka spacer.gif - renamed) and that seemed to work. But on this store, it's not. Anyhoo...


☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆

Share this post


Link to post
Share on other sites
Please listen to what I am saying. HTC is MORE than metatags. It will assist you in dynamically changing your page headings to match the existing category, page title, or even something custom depending upon what you want.

 

Sorry Bill :( -- It was an extremely hectic day yesterday and I forgot that when you run Header Tags it does change the pages' headings -

 

I will play with it today but I think for now, the index page will have NO $content - I will just put lorem ipsum paragraph and the design I want. Then on the other pages it's not so cumbersome. It doesn't look so bad to say Contact Us on the contact form. I just hate that stupid What's New Here? I've not liked it on any store I've built.

 

ok time to get to it! see ya~


☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆

Share this post


Link to post
Share on other sites

Hi Bill,

 

One page checkout by itwebexperts works (version1.03, contains lots of fixes over the original version) with sts except for the change address buttons which are Java controlled. It would appear most payment and shipping modules work.

 

If I disable the change address buttons java coding the non java works and uses the default change address.

 

I appreciate that you can't do everything as previously mentioned but it would be a great module to have compatible with STS.

 

Please can you consider looking at this, I have tried and failed missarbly to try and get this to work for days now.

 

If you can give me some tips i will go and have another look and hopfully be succesfull, but its a great mod and the only thing not working in sts at the moment is teh change address buttons, the rest of the buttons work fine.

 

Thanks

Johnny


Getting better with mods but no programmer am I.

Share this post


Link to post
Share on other sites

Important Posts for the STS newbie:

 

Post #3755: http://forums.oscommerce.com/index.php?sho...p;#entry1226986

 

Post #4326: http://forums.oscommerce.com/index.php?sho...p;#entry1303555

 

Post #4974: http://forums.oscommerce.com/index.php?sho...p;#entry1361366

 

Post #3772: http://forums.oscommerce.com/index.php?sho...p;#entry1227769

 

Post #3757: http://forums.oscommerce.com/index.php?sho...p;#entry1227006

 

Please review the above for insight on how the Simple Template System allows you to make templates for pages, categories, home page, products and infoboxes.

 

Hope this was helpful,


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

It's too bad you don't have your own subforum here so you could sticky that.


☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆

Share this post


Link to post
Share on other sites

Which php file contains the code for pages that are linked from category links? For example, /index.php?cPath=21 - I believe this is the product listing page.

 

I want to remove the "Let's see what we have here" and the manufacturer drop down box.

 

Thank you

Share this post


Link to post
Share on other sites
Which php file contains the code for pages that are linked from category links? For example, /index.php?cPath=21 - I believe this is the product listing page.

 

I want to remove the "Let's see what we have here" and the manufacturer drop down box.

 

Thank you

 

There are several different methods to removing the title. I suggest looking in the STS User Manual as I have an entire section devoted to it (Dynamic Page Titles).

 

Remove the manufacturer's box tag from your template.


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
Remove the manufacturer's box tag from your template.

 

From which template file do I remove the manufacturer's box tag? I have index.php_1.html with $content in it, but there is no manufacturer's box tag.

Share this post


Link to post
Share on other sites

Hi!

 

I am trying to install STS 4.5.8 on a fresh install of 2RC2a and I have a question.

 

I'm at 2.4 Modify osCommerce files and it says to modify the file located here: "catalog\includes\classes\boxes.php"

 

but the file in that directory online is called box.php - there is no boxes.php.

 

Do I need to delete box.php after I upload the STS file boxes.php?

 

I could be doing something wrong or maybe I'm looking in the wrong place, so please point (or shove) me in the right direction if that be the case.

 

Thank you!

Share this post


Link to post
Share on other sites
Hi!

 

I am trying to install STS 4.5.8 on a fresh install of 2RC2a and I have a question.

 

I'm at 2.4 Modify osCommerce files and it says to modify the file located here: "catalog\includes\classes\boxes.php"

 

but the file in that directory online is called box.php - there is no boxes.php.

 

Do I need to delete box.php after I upload the STS file boxes.php?

 

I could be doing something wrong or maybe I'm looking in the wrong place, so please point (or shove) me in the right direction if that be the case.

 

Thank you!

 

Nevermind, I was in the admin directory not the regular directory.

Share this post


Link to post
Share on other sites
Important Posts for the STS newbie:

 

Post #3755: http://forums.oscommerce.com/index.php?sho...p;#entry1226986

 

Post #4326: http://forums.oscommerce.com/index.php?sho...p;#entry1303555

 

Post #4974: http://forums.oscommerce.com/index.php?sho...p;#entry1361366

 

Post #3772: http://forums.oscommerce.com/index.php?sho...p;#entry1227769

 

Post #3757: http://forums.oscommerce.com/index.php?sho...p;#entry1227006

 

Please review the above for insight on how the Simple Template System allows you to make templates for pages, categories, home page, products and infoboxes.

 

Hope this was helpful,

 

 

Bill, can't thank you enough for these. I'm creating my own bookmark folder just for useful posts on this huge thread.

 

I have a strange issue.

 

 

One of my categories doesn't display it's sub categories. The category is Measure (http://www.woodwerks.com/catalog/index.php?cPath=33)

 

If you look at the category menu, you can plainly see there are 6 sub categories and items in 5 of those. However the Measure page doesn't display the standard subcategory links and a "what's new" box like all the other categories do.

 

You can see a working category (Joinery) here: (http://www.woodwerks.com/catalog/index.php?cPath=67)

 

What could possibly be causing Measure to display differently. It's like the $content tag is pulling a different template.

 

Thanks for your help,

 

Boom

Share this post


Link to post
Share on other sites

Well, I feel like I've done my duty trying to search for the answer to my quandry, but I couldn't find it so here goes...

 

I am at the part where I want to customize the file that is supposed to be located here: /catalog/includes/sts_template.html

 

I do not have a file named sts_template.html in my public_html/includes/ directory.

 

I tried making changes to public_html/includes/sts_templates/full/sts_templates.html, but none of the changes I made showed up after I uploaded my edited file.

 

Did I do something wrong? If not, where is the file located that I should be customizing? How do I get my changes to take effect?

 

If the answer is readily available online somewhere, please send me a link to it. If this somehow has not yet been explained, please oblige me.

 

THANK YOU!!!

Share this post


Link to post
Share on other sites
Bill, can't thank you enough for these. I'm creating my own bookmark folder just for useful posts on this huge thread.

 

I have a strange issue.

 

 

One of my categories doesn't display it's sub categories. The category is Measure (http://www.woodwerks.com/catalog/index.php?cPath=33)

 

If you look at the category menu, you can plainly see there are 6 sub categories and items in 5 of those. However the Measure page doesn't display the standard subcategory links and a "what's new" box like all the other categories do.

 

You can see a working category (Joinery) here: (http://www.woodwerks.com/catalog/index.php?cPath=67)

 

What could possibly be causing Measure to display differently. It's like the $content tag is pulling a different template.

 

Thanks for your help,

 

Boom

 

Does the subcategory have any products in it? You may have modified your shop to not display empty categories or you may have the enable/disable category contribution installed?


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 feel like I've done my duty trying to search for the answer to my quandry, but I couldn't find it so here goes...

 

I am at the part where I want to customize the file that is supposed to be located here: /catalog/includes/sts_template.html

 

I do not have a file named sts_template.html in my public_html/includes/ directory.

 

I tried making changes to public_html/includes/sts_templates/full/sts_templates.html, but none of the changes I made showed up after I uploaded my edited file.

 

Did I do something wrong? If not, where is the file located that I should be customizing? How do I get my changes to take effect?

 

If the answer is readily available online somewhere, please send me a link to it. If this somehow has not yet been explained, please oblige me.

 

THANK YOU!!!

It will be located in your template folder, whatever you have that set as in the STS Default Module. Also, you want to make sure you did not change the default settings other than the template folder name so that you still have sts_templates.html set as your default template.

your-shop-folder(could be the root)/includes/sts_templates/*your-template-folder*/sts_templates.html


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
Does the subcategory have any products in it? You may have modified your shop to not display empty categories or you may have the enable/disable category contribution installed?

 

5 of the 6 subcategories had items in them, and I added an item to the 6th to see if that was causing it. no go. The only clue I have, is that at one point, there WAS a single item in the Measure top level category, and it showed up on the Measure category page. (mind you, the sub category links still didn't)

 

It was a mistake that the item was in the top level, and after I moved it, it still seemed broke.

 

Could I of messed something up by putting an item in the top level category?

 

I don't know what the enable/disable category contribution is, and it wasn't in my downloaded mods folder, so it's a safe bet that I don't have it installed. I looked in the admin for the "do not display empty categories" option, and couldn't find it anywhere. Can you give me directions? I'll of course be looking in the forums for the answer to that as well.

 

Thanks Bill,

 

Boom

Share this post


Link to post
Share on other sites
It will be located in your template folder, whatever you have that set as in the STS Default Module. Also, you want to make sure you did not change the default settings other than the template folder name so that you still have sts_templates.html set as your default template.

your-shop-folder(could be the root)/includes/sts_templates/*your-template-folder*/sts_templates.html

 

Hi, Bill!

 

Thanks for the reply!

 

I do have sts_templates.html set as my default template, but after I upload that file with changes I've made, the changes do not show up online.

 

Of course, after I ask I THINK figured it out.

 

When I looked at my storefront I was seeing the message "This is the template for index.php page. You can find it here: /includes/sts_templates/full/index.php.html." I decided to make changes to index.php.html to see what would happen.

 

After I uploaded my modified version of index.php.html, the changes I made showed up online.

 

If that is not right, then I still need help.

Share this post


Link to post
Share on other sites
Hi, Bill!

 

Thanks for the reply!

 

I do have sts_templates.html set as my default template, but after I upload that file with changes I've made, the changes do not show up online.

 

Of course, after I ask I THINK figured it out.

 

When I looked at my storefront I was seeing the message "This is the template for index.php page. You can find it here: /includes/sts_templates/full/index.php.html." I decided to make changes to index.php.html to see what would happen.

 

After I uploaded my modified version of index.php.html, the changes I made showed up online.

 

If that is not right, then I still need help.

 

Jessica,

 

A few posts up from yours is a post labled...Important Posts for the STS Newbie. Please read up on those links and it will explain how STS selects the various templates to use.


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

 

A few posts up from yours is a post labled...Important Posts for the STS Newbie. Please read up on those links and it will explain how STS selects the various templates to use.

 

Great, thanks! I checked out the post titled "TIP: Here is a quick rundown of common template names" which seems the most relevant to the point I'm at regarding configuring my store and STS.

 

It says that index.php.html is the Default Category template used for all category pages that do not have a specific template page created for it - if you didn't have this template, STS would use sts_template.html.

 

So, just to make sure I understand this okay, if I deleted index.php.html, then the changes I made to sts_template.html would show up?

 

If I keep index.php.html, is that the file I should be customizing for the overall layout of the store?

 

I guess I am unsure about that because it is the default category template. I suppose that on my homepage it is showing the category "Top" and that's probably why the changes I make to index.php.html take precedence over changes made to sts_template.html.

 

Please let me know if I am on the right track here or not.

 

Thanks for helping with this. I appreciate it very much.

 

~ Jess

Share this post


Link to post
Share on other sites

I'm not sure where to post this but I have installed STS 4.5.8 and it looks great but the problem I have is that the Category specific templates are not workin on the product_info.php pages.

 

I can get them to work if I put the cPath in the URL (my site doesn't have this in the product_info.php url)

 

I don't want to have URLs with the cPath in them as it can result in duplicate content issues becasue one product page can have multiple URLs.

 

I want to be able to have category specific templates that some how know which category the product is in and not need this by the URL (same issue I assume for people with SEO Magic as the URL doesn't have cPath)

 

My site: www.mysite.com/product_info.php?products_id=300

to get it to work with category specifc templates it would have to be: www.mysite.com/product_info.php?products_id=300&cPath=2 (I don't want to have to have the cPath in the URL)

 

I will be so thankful for anyone who can help me!!!

 

Leslie

Share this post


Link to post
Share on other sites
Great, thanks! I checked out the post titled "TIP: Here is a quick rundown of common template names" which seems the most relevant to the point I'm at regarding configuring my store and STS.

 

It says that index.php.html is the Default Category template used for all category pages that do not have a specific template page created for it - if you didn't have this template, STS would use sts_template.html.

 

So, just to make sure I understand this okay, if I deleted index.php.html, then the changes I made to sts_template.html would show up?

 

If I keep index.php.html, is that the file I should be customizing for the overall layout of the store?

 

I guess I am unsure about that because it is the default category template. I suppose that on my homepage it is showing the category "Top" and that's probably why the changes I make to index.php.html take precedence over changes made to sts_template.html.

 

Please let me know if I am on the right track here or not.

 

Thanks for helping with this. I appreciate it very much.

 

~ Jess

 

Jess,

 

If you only created a single template, you would need to have at least sts_templates.html. It would used for every page.

 

If you wanted more flexibility in your design, you would then create a specific template for that page. For example, a template for the home page would be index.php_0.html. The home page would use this while all other pages used sts_templates.html.

 

The posts in the links I provided go into greater detail.


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'm not sure where to post this but I have installed STS 4.5.8 and it looks great but the problem I have is that the Category specific templates are not workin on the product_info.php pages.

 

I can get them to work if I put the cPath in the URL (my site doesn't have this in the product_info.php url)

 

I don't want to have URLs with the cPath in them as it can result in duplicate content issues becasue one product page can have multiple URLs.

 

I want to be able to have category specific templates that some how know which category the product is in and not need this by the URL (same issue I assume for people with SEO Magic as the URL doesn't have cPath)

 

My site: www.mysite.com/product_info.php?products_id=300

to get it to work with category specifc templates it would have to be: www.mysite.com/product_info.php?products_id=300&cPath=2 (I don't want to have to have the cPath in the URL)

 

I will be so thankful for anyone who can help me!!!

 

Leslie

 

Even though I totally disagree with your logic regarding the cpath and duplicate content, STS will work just fine with contributions that correctly modify the URL. You would need to make the template name in the same manner as any other osCommerce shop (index.php_12.html for example) and STS will know which template to use.


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 guess I'm not very good at describing this. I'm not sure why my installation doesn't have the cPath in the url for the product_info.php pages and I've had it this way for eons so there are links to my site and those product pages that don't have the cPath in the product_info.php pages so I'm more looking for some way to have the sts template script look to the categorie the product is in and not check the URL.

 

Does this make sense? I love this script and just want the ability to modify the templates for the product_info.php pages by category and have it stay even if there isn't a cPath in the url for the product_info.php page which often happens if you click the product page from advance seach or from the new products or come at it from some other way other than the category listing. (for example)

 

http://demo.oscommerce.com/product_info.php?products_id=26

 

I'd like not to have to create page for each product but rather to create 1 template for all the products in a category that will always get called even if they come at the product via another way.

 

i'm wondering if this is possible.

 

I love this script and thank you for your time!

Leslie

Share this post


Link to post
Share on other sites
I guess I'm not very good at describing this. I'm not sure why my installation doesn't have the cPath in the url for the product_info.php pages and I've had it this way for eons so there are links to my site and those product pages that don't have the cPath in the product_info.php pages so I'm more looking for some way to have the sts template script look to the categorie the product is in and not check the URL.

 

Does this make sense? I love this script and just want the ability to modify the templates for the product_info.php pages by category and have it stay even if there isn't a cPath in the url for the product_info.php page which often happens if you click the product page from advance seach or from the new products or come at it from some other way other than the category listing. (for example)

 

http://demo.oscommerce.com/product_info.php?products_id=26

 

I'd like not to have to create page for each product but rather to create 1 template for all the products in a category that will always get called even if they come at the product via another way.

 

i'm wondering if this is possible.

 

I love this script and thank you for your time!

Leslie

 

Yes, this is how STS works. Have you tried it?

 

It does not matter if the link comes from product_info or where ever, STS knows when to use the correct template.

 

Did you turn on the STS Index Module in the admin?

product_info.php_c23.html

 

  • = Product template for all products in a specific category (23 in this example – change to the category ID needed)

So, if I were to click on a link such as mydomain.com/product_info.php?products_id=31 which happens to be in category 23, STS would look for what template to use in the following order:

1. Check for a main template based on the product ID, for example product with ID 31:

 

1.1 Use product_info.php_31.html if exists.

 

2. Check for category specific main template, based on the category ID where the product is located. (Example below with a product located in category 11, located in category 23)

 

2.1 Use product_info.php_c23_11.html if exists.

 

2.2 Use product_info.php_c23.html if exists.

 

2.3 Use product_info.php.html if exists.

 

3. No specific template found, use default template like defined in default module (by default it is sts_template.html)

 

 

 

Now that we have a main template, look if there is a content template, based on product ID and the category where it belongs: example with product ID31:

(STS looks in the includes/sts_templates/*Template-Folder*/content folder)

 

1.1 Use product_info.php_31.html if exists.

 

2. Check for category specific content template, based on the category ID where the product is located. (Example below with a product located in category 23, located in category 11)

 

2.1 Use product_info.php_c23_11.html if exists.

 

2.2 Use product_info.php_c23.html if exists.

 

2.3 Use product_info.php.html if exists.

 

If no content template is found then do not use any, $content will come from the original catalog/product_info.php .


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
Yes, this is how STS works. Have you tried it?

 

It does not matter if the link comes from product_info or where ever, STS knows when to use the correct template.

 

Did you turn on the STS Index Module in the admin?

product_info.php_c23.html

 

  • = Product template for all products in a specific category (23 in this example – change to the category ID needed)

So, if I were to click on a link such as mydomain.com/product_info.php?products_id=31 which happens to be in category 23, STS would look for what template to use in the following order:

1. Check for a main template based on the product ID, for example product with ID 31:

 

1.1 Use product_info.php_31.html if exists.

 

2. Check for category specific main template, based on the category ID where the product is located. (Example below with a product located in category 11, located in category 23)

 

2.1 Use product_info.php_c23_11.html if exists.

 

2.2 Use product_info.php_c23.html if exists.

 

2.3 Use product_info.php.html if exists.

 

3. No specific template found, use default template like defined in default module (by default it is sts_template.html)

 

 

 

Now that we have a main template, look if there is a content template, based on product ID and the category where it belongs: example with product ID31:

(STS looks in the includes/sts_templates/*Template-Folder*/content folder)

 

1.1 Use product_info.php_31.html if exists.

 

2. Check for category specific content template, based on the category ID where the product is located. (Example below with a product located in category 23, located in category 11)

 

2.1 Use product_info.php_c23_11.html if exists.

 

2.2 Use product_info.php_c23.html if exists.

 

2.3 Use product_info.php.html if exists.

 

If no content template is found then do not use any, $content will come from the original catalog/product_info.php .

 

Thank you, Thank you, thank you for this...I realize there is a problem with my installation. I just assumed everyone had this experience.

 

I have STS turned on but alas here is what is happening

 

if you go to : http://www.schtickers.com/catalog/product_...05&cPath=70 it will use the correct category template product_info.php.htm_c70

but if you go to http://www.schtickers.com/catalog/product_...products_id=605 doesn't get the correct template. Product 605 is only listed in category 70. Any ideas of what could be causing this or where I might look to correct this issue.

 

Sorry for the confusion and thank you for your time..

Also what is supposed to happen if a product is linked to say 3 different catgories

 

Thanks,

Leslie

Share this post


Link to post
Share on other sites

I'm coming along pretty well with getting my site laid out how I want thanks to STS and the support here. :)

 

Now I'm looking into customizing the content elements differently on the category pages and the sub-category pages.

 

In the STS User Manual, I have read section 3.11 "Create content templates for any page," but it makes no sense to me. It's saying to do things with scripts, logic, and arrays, which are all foreign terms to me.

 

I've also found the following posts which kind of relate to what I'm trying to do:

 

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

 

change $Content, Help plx

http://forums.oscommerce.com/index.php?s=&...t&p=1179348

 

And I've read this document:

 

Infobox Templates

for use with the Simple Template System

Version 4.2

(STS v4.2)

User Manual

 

But I am still confused.

 

Is there a step-by-step explanation out there that will help me figure out how customize the content elements to do the following:

 

1. Remove the "New Products" box on the Category pages (the pages that shows for Hardware, Software, and DVD Movies)

 

2. Rearrange the way the products are shown in the content element when viewing a sub-category page such as on Hardware > Graphics Cards

 

I've installed the STS Module "Product info" which I'm pretty sure is the first step, but what's next?

 

I really have tried to find out how to do this by searching the information already out there, but I could really use some hand-holding on this one because what I'm finding just goes over my head.

 

Thank you!

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

×