Jump to content
rigadin2

[Contribution] STS v4

Recommended Posts

Thanks Bill

 

That was a big help and I got most of that. Now I am lost on the $content. The instructions I believe say to edit the full/content/product_info.php.html file but when I look at it, It looks like the document for my products page.

 

What I'm lookin to do is on the main page I would like the "new products for (month)" box with my new products. Thats the only page I would like that box on and can't seem to figure out how to keep it to only the index page.

 

The site in question is http://www.bbpdesigns.com/clients/bbpdesigns/catalog/

 

Thanks again for the quick reply to my questions!

Hello Kevin,

You have some work ahead of you in order to accomplish the above...

 

Since I do not know your PHP skill level, I am going to suggest using a contribution to get this done.

  1. Install Featured Products (use my version as it has been tested extensively)
  2. You will noitice that Featured Products replaces the standard New Products For Month box with two options:
    • A new infobox
    • A replacement Infobox for the New Products

[*]Make the edits in the catalog/index.php and then comment them out ( use // ) This will cause PHP to skip these lines of code and therefore the Featured Products box that replaces the New Products box will not show.

[*]Add the new STS tag for the Featured Products infobox wherever you want it to be (in one of the columns or in the main content area).

[*]Control what products are displayed in the admin under Featured Products

I believe this will do what you are wanting to do with your templates and the New Products for month. By the way, you can still call the box "New Products for Month" or anything else you prefer. It does not have to say the default "Featured Products".

 

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

Hello All, I have just noticed that I have 2 exactly the same notification info Boxes.

 

What have I done to cause this.

 

I have the Simple template System installed, I have checked the template and there is only one notification box listed their.

 

Can anyone please point me in the right direction.

 

here is the URL Visit My Website

 

I have Version 4.3.3 STS installed.

 

I some one could please tell me which files to look into, I might be able to find the offending code myself.

 

Thanks in advance.

Share this post


Link to post
Share on other sites
Hello All, I have just noticed that I have 2 exactly the same notification info Boxes.

 

What have I done to cause this.

 

I have the Simple template System installed, I have checked the template and there is only one notification box listed their.

 

Can anyone please point me in the right direction.

 

here is the URL Visit My Website

 

I have Version 4.3.3 STS installed.

 

I some one could please tell me which files to look into, I might be able to find the offending code myself.

 

Thanks in advance.

Hello Robert and welcome to the STSv4 forum.

 

Before getting to deep into this, doublecheck your variables (placeholders). In STSv4.3.3, some variables do not work as the name implies when used with others. I think this may be your problem.

 

Look through the STS User Manual, particularily in the variable definitions. You will notice that some variables (placeholders) such as $bestsellersbox will actually display the "notification" box if certain "conditions" are net met. So...if you have both the notification and bestsellers box in your template at the same time, this could possibly give you the double box.

 

What variables are you using in your template? Are you using the $notificationbox or $bestsellersbox tags in combination with the $bestsellersbox_only tag? If so, then that is the problem.

 

Hope this 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

Hello Bill, and thank you fpr taking the time to help resolve my little problem.

 

Below I have listed the placeholder that I'm curently using.

 

$cartbox#

$currenciesbox#

$specialfriendbox#

$bestsellersbox#

$maninfobox#

$techproductsbox#

$orderhistorybox#

$notificationbox#

$reviewsbox#

$tellafriendbox#

$languagebox#

 

Are you saying that I shouldn't be using the $notificationbox# & $bestsellersbox# in the same template.

 

Thanks in advance

Rob

Share this post


Link to post
Share on other sites

Bill that worked perfectly!! Thank you so much!!!! Imagine what a "0" can do huh?! :thumbsup:

 

Now I want to pass you and the fellow board members another question and after that I hope :blink: I can get going on with designing my shop...

 

Let´s say I have this setup:

 

a category: clothes (index.php?cPath=26)

a product: blue jeans (product_info.php?cPath=26&products_id=40)

a product: white jeans (product_info.php?cPath=26&products_id=42)

a product: blue t-shirt

a product: white t-shirt

 

I have a product list menu showing: Jeans, T-shirts etc...

I have a category list menu showing: Clothes, Toys etc..

I don´t want to have any subcategories - blue jeans, white jeans etc because this doesn´t suit my preferred setup at all.

 

When I click on Jeans in the product list I want blue jeans and white jeans to be listed though.

Maybe this is not possible to achieve...? I don´t know. But if you could enlighten me here I´d be more than thankful.

 

Thanks again!

 

/John

Share this post


Link to post
Share on other sites
Bill that worked perfectly!! Thank you so much!!!! Imagine what a "0" can do huh?! :thumbsup:

 

Now I want to pass you and the fellow board members another question and after that I hope :blink: I can get going on with designing my shop...

 

Let´s say I have this setup:

 

a category: clothes (index.php?cPath=26)

a product: blue jeans (product_info.php?cPath=26&products_id=40)

a product: white jeans (product_info.php?cPath=26&products_id=42)

a product: blue t-shirt

a product: white t-shirt

 

I have a product list menu showing: Jeans, T-shirts etc...

I have a category list menu showing: Clothes, Toys etc..

I don´t want to have any subcategories - blue jeans, white jeans etc because this doesn´t suit my preferred setup at all.

 

When I click on Jeans in the product list I want blue jeans and white jeans to be listed though.

Maybe this is not possible to achieve...? I don´t know. But if you could enlighten me here I´d be more than thankful.

 

Thanks again!

 

/John

John,

Everything that you want to do is possible with STS or maybe easier without, meaning you have to edit some PHP code.

 

Doing it without PHP:

Create your own menu (static) with links to the categories and products. See this link on how to create your category and product links: http://forums.oscommerce.com/index.php?s=&...t&p=1162574

 

To do it using PHP, I would suggest that you either install a category menu contribution (Nested Unordered List) or the following contribution Remove Sub Categories from Catalog Box and List Products from specific category

 

I prefer to create my own dynamic category list by starting with the "Nested Unordered List" contribution and then modifying that to not show the subcategories.

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

Share this post


Link to post
Share on other sites

Thanks again for your reply Bill!

 

I did well with the static lists. Thanks for that! But maybe I´m not clear enough here.. Sorry for that.

 

My main problem is "When I click on Jeans in the product list I want blue jeans and white jeans to be listed though."

I don´t have any subcategories just a quick menu like this:

1- Products A-Z (Jeans, T-shirts etc)

2- Product Categories (Clothes, Toys etc)

 

So when I click on Jeans in the Product list I only get the blue jeans listed (product_info.php?products_id=40). But I want the white jeans as well to be listed (product_info.php?products_id=42).

When i click on Clothes in the Category list everything works as I want - Blue and white jeans listed as well as t-shirts. (index.php?cPath=26)

 

Is there an easy way to list two different product_id at the same time? Like putting the two product_id:s together and list them?

I have tried the contributions you recommended but no luck. I am now on to try some php editing but don´t know if this is the way to go...

 

Sorry for being a pain in the ass here with my stupid questions... :blush:

Share this post


Link to post
Share on other sites
Hello Kevin,

You have some work ahead of you in order to accomplish the above...

 

Since I do not know your PHP skill level, I am going to suggest using a contribution to get this done.

  1. Install Featured Products (use my version as it has been tested extensively)
  2. You will noitice that Featured Products replaces the standard New Products For Month box with two options:
    • A new infobox
    • A replacement Infobox for the New Products

[*]Make the edits in the catalog/index.php and then comment them out ( use // ) This will cause PHP to skip these lines of code and therefore the Featured Products box that replaces the New Products box will not show.

[*]Add the new STS tag for the Featured Products infobox wherever you want it to be (in one of the columns or in the main content area).

[*]Control what products are displayed in the admin under Featured Products

I believe this will do what you are wanting to do with your templates and the New Products for month. By the way, you can still call the box "New Products for Month" or anything else you prefer. It does not have to say the default "Featured Products".

 

Hope this helped,

 

Thanks Bill,

 

I installed the feature with only one small hitch which somewhere along the lines I installed something in spanish instead of English because when am in my admin panel under category, it is listed as "Productos destacados" instead of Featured like it's supposed to be. No problemo though because i know where it is and it still displays properly as you said it would. One question i do have regarding that is the text. Would that be edited under the stylesheet and if so where could I find it?

 

Thanks again you've been a heap load of help! From here on out all I should have to do is input the products.

 

-Kevin

Share this post


Link to post
Share on other sites

Back again Bill lol,

 

You've been a great help thus far so I hope I can get a little more help.

 

I thought I was ready to start adding products but realized some of the pages are not set up how I would like them to. For example if you'll go back to my site http://www.bbpdesigns.com/clients/bbpdesigns/catalog/ that page is set up correctly.

 

Then you go to Barrels, this page is also how I want it to look

 

Then you would pick your manufacturer, say for example smart parts.

 

This is the first page I would like to edit. Instead of the boxy-list type I would like it to be more like the page where you chose your manufacturer. Several rows of icons going to a specific product similar to this site http://www.punisherspb.com/smart-parts-barrels_1807.aspx What page would I have to edit in order to achieve this look?

 

Then you select your product and it takes you to the actual product page. I would also like to change the layout of this page. If you could point me in the direction I need to head in that would be great.

 

Thanks for all your help thus far you've been great.

 

-Kevin

Share this post


Link to post
Share on other sites
Back again Bill lol,

 

You've been a great help thus far so I hope I can get a little more help.

 

I thought I was ready to start adding products but realized some of the pages are not set up how I would like them to. For example if you'll go back to my site http://www.bbpdesigns.com/clients/bbpdesigns/catalog/ that page is set up correctly.

 

Then you go to Barrels, this page is also how I want it to look

 

Then you would pick your manufacturer, say for example smart parts.

 

This is the first page I would like to edit. Instead of the boxy-list type I would like it to be more like the page where you chose your manufacturer. Several rows of icons going to a specific product similar to this site http://www.punisherspb.com/smart-parts-barrels_1807.aspx What page would I have to edit in order to achieve this look?

 

Then you select your product and it takes you to the actual product page. I would also like to change the layout of this page. If you could point me in the direction I need to head in that would be great.

 

Thanks for all your help thus far you've been great.

 

-Kevin

Kevin,

This feature is not available in osC "out of the box". You will have to install a contribution such as the following to get that feature:

 

Product Listing In Columns


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

 

Using STS 4.5.4 and want to be able to change the look of the category pages bu cant work out how to do it. Tried index_0.html.php but that didn't work.

 

Any help is much appreciated.

Share this post


Link to post
Share on other sites

Under Admin/Modules/STS do you have Use Template for Index Page set to "true"

 

 

Hi guys,

 

Using STS 4.5.4 and want to be able to change the look of the category pages bu cant work out how to do it. Tried index_0.html.php but that didn't work.

 

Any help is much appreciated.


~Tracy
 

Share this post


Link to post
Share on other sites
Under Admin/Modules/STS do you have Use Template for Index Page set to "true"

 

PS - it should be index.php_0.html for the way the template page is saved :thumbsup:


~Tracy
 

Share this post


Link to post
Share on other sites

So I just got done installing the product columns and it seems to work how it's supposed to bbbuuuuuuuuuuuuuuttt I think it either A) interferes with the featured products contribution that I added or B) I'm an idiot and changed/deleted something I wasn't supposed to.

 

Does anyone know if one contribution such as this would get in the way of that?

 

Thanks,

-Kevin

Share this post


Link to post
Share on other sites
So I just got done installing the product columns and it seems to work how it's supposed to bbbuuuuuuuuuuuuuuttt I think it either A) interferes with the featured products contribution that I added or B) I'm an idiot and changed/deleted something I wasn't supposed to.

 

Does anyone know if one contribution such as this would get in the way of that?

 

Thanks,

-Kevin

Kevin, please post a question related to each specific contribution in the appropriate thread:

Featured Product Support

Product Listing In Columns Support

 

Or you can do a search on Google to see if anyone else has experienced the same issues:

 

site:forums.osCommerce.com Product Listing in Columns Featured Products


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, I've installed Imprint Text Options contribution (http://www.oscommerce.com/community/contributions,2618).

 

I've created a new text field called 'NAME' that is represented by a input text field in the product info page of all products i've entered in my shop. This allow customers to customize the product they buy.

 

That only works if I desactivate the STS Product Info module in the Admin section.

 

Can I create a placeholder for this 'NAME' input text field to use in my STS product info templates? How can I achieve that?

 

Can anybody help me, please?

 

Thanks a lot

Share this post


Link to post
Share on other sites
Hi, I've installed Imprint Text Options contribution (http://www.oscommerce.com/community/contributions,2618).

 

I've created a new text field called 'NAME' that is represented by a input text field in the product info page of all products i've entered in my shop. This allow customers to customize the product they buy.

 

That only works if I desactivate the STS Product Info module in the Admin section.

 

Can I create a placeholder for this 'NAME' input text field to use in my STS product info templates? How can I achieve that?

 

Can anybody help me, please?

 

Thanks a lot

Rafa, make the same edits in the sts_inc/product_info.php file. In general, the changes that a contribution makes in catalog/product_info.php must be done in this file when using content templates.

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

Content Templates (on normal pages)

 

Most of my e-commerce website is informational. We only have a few products that we plan on selling. With that being the case, STS looks great to us because it allows us to create a very custom look without a lot of non-sense stuff running in the background. I am having issues with $content however because we want to have it different on many pages (index.php/about_us.php/our_mission.php/faq.php) ETC. I noticed that there is a products_info module that has some type of content folder, but what about any speific page like I just made mention (index.php/about_us.php/our_mission.php/faq.php)?

 

For example, if someone goes to

 

URL/our_mission.php

 

I want it to look up the /content/our_mission.php.html file and input it in place of $content. I'm not sure how this works exactly and I have read through the manual several times and it makes mention about some coding but wasn't exactly sure what it was talking about. Suggestions?

Share this post


Link to post
Share on other sites
Content Templates (on normal pages)

 

Most of my e-commerce website is informational. We only have a few products that we plan on selling. With that being the case, STS looks great to us because it allows us to create a very custom look without a lot of non-sense stuff running in the background. I am having issues with $content however because we want to have it different on many pages (index.php/about_us.php/our_mission.php/faq.php) ETC. I noticed that there is a products_info module that has some type of content folder, but what about any speific page like I just made mention (index.php/about_us.php/our_mission.php/faq.php)?

 

For example, if someone goes to

 

URL/our_mission.php

 

I want it to look up the /content/our_mission.php.html file and input it in place of $content. I'm not sure how this works exactly and I have read through the manual several times and it makes mention about some coding but wasn't exactly sure what it was talking about. Suggestions?

This is very simple to do.

  1. Create a template for each page that you want custom content. For ex: about_us.php.html, our_mission.php.html, and so on.
  2. Do not add the $content tag on those pages. Add your own custom content directly in the template (easiest) or add a PHP Include statement to the custom content (harder to do and not neccessary since you could simply add the content directly in the template itself).

That's all there is to it.

Enjoy,


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
This is very simple to do.
  1. Create a template for each page that you want custom content. For ex: about_us.php.html, our_mission.php.html, and so on.
  2. Do not add the $content tag on those pages. Add your own custom content directly in the template (easiest) or add a PHP Include statement to the custom content (harder to do and not neccessary since you could simply add the content directly in the template itself).

That's all there is to it.

Enjoy,

 

Easy indeed!

Share this post


Link to post
Share on other sites
Rafa, make the same edits in the sts_inc/product_info.php file. In general, the changes that a contribution makes in catalog/product_info.php must be done in this file when using content templates.

 

Hi Bill,

 

I did what you say but it didn't work.

 

I tried another thing, I copy the code generated by the add-on script (an input with a given name) and paste in a product template, it works. Then I paste this code in the rest of my product templates but didn't work, only works for one product_info template.

 

Any idea to solve it?

 

Thanks a lot

Share this post


Link to post
Share on other sites

I posted question in http://forums.oscommerce.com/index.php?showtopic=285293 (working from this post now sorry)

I have uploaded the html_output.php into the includes/functions (after trying to edit by hand) Same status, I placed the logo in the template folder/images and it does not appear on the site.

 

I moved the origional from the /images to keep it from appearing also. Am I reading this right that I should be putting my images in the templatefolder/images for this to work.

Share this post


Link to post
Share on other sites

Think I found it looking into the code includes/modules/sts_inc

 

I needed to use $cataloglogo and also place my image into the templatefolder/images/english since the general.php has the language folder referenced

 

I also needed to name the image header_logo.gif and not store_logo.png

 

So I ended up with putting $cataloglogo instead of <img border="0" src="images/store_logo.png"> in the template (sts_template.html of index.php.html in my case)

and also created the image and placed it in includes/sts_templates/test/images/english naming it header_logo.gif to match the code

 

	$sts->template['cataloglogo'] = '<a href="' . tep_href_link(FILENAME_DEFAULT). '">' . tep_image(STS_TEMPLATE_DIR.'images/'.$language . '/header_logo.gif', STORE_NAME) . '</a>'; 
// Modified in v4.3

 

 

Great contribution.

Share this post


Link to post
Share on other sites

What's new box

 

I have an issue with the what's new box. Some day just dissapear from the index. I made the mistake of letting the issue to fix it later, made a lot of other modifications and now I cant fix it.

 

What could be the problem? If i put $whatsnewbox inthe sts_templeate, is does appear, but on every page. I want it to appear only where oscommerce places the box by default.

 

Where I shoud look into?

Share this post


Link to post
Share on other sites

Here we go again... :rolleyes:

 

Last problem not solved so I guess I need to make specific pages for my problem...

Anyway.... Is there a way to get rid of "Displaying 1 to 2 (of 2 products)" and "Result Pages: 1"?

 

I have searched the forum for two days now without luck.

 

Thanks!

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

×