Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Contribution] STS v4


Guest

Recommended Posts

Well I can't get the site working properly using STS with IE. SO, does anyone know of any easy way to change the layout without STS?

 

 

The problem is not STS or IE, but with your coding in your template or CSS.

 

This is why STS comes with sample templates. Use them and get aquainted with STS and osCommerce and then create your own templates.

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

The problem is not STS or IE, but with your coding in your template or CSS.

 

This is why STS comes with sample templates. Use them and get aquainted with STS and osCommerce and then create your own templates.

 

 

If that were so, the stock templates should work.

Link to comment
Share on other sites

If that were so, the stock templates should work.

 

 

They do, as I am viewing them now in IE. Hmmmmm.. maybe something else on your PC or your setup is causing the problem?

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

They do, as I am viewing them now in IE. Hmmmmm.. maybe something else on your PC or your setup is causing the problem?

 

 

I thought that too so I had someone else loook at the site in IE and they couldn't see the images on that page either.

Link to comment
Share on other sites

this is a reply to my original thread (http://www.oscommerce.com/forums/topic/362514-sts-content-not-showing/), but as requested by the starter of this topic, I am moving the discussion in here! :)

 

What version of osC are you using?

Currently using osC MS2 (including some patches applied manually)

 

Did you upload all of the files within the STS folder as well as all of the files from the RC2 folder?

I uploaded all the new files from the MS2 folder, and made the changes to the existing files manually.

 

Did you keep the folder structure intact?

I kept the entire folder structure intact and used all the default STS and osC folder names.

 

Did you try using STS using the default settings (other than the enabling the Default module by clicking on the Install button of course)?

After installing STS, I first tried the default settings with one of the sample templates; right from the start I have not seen any $content being displayed, other than what I posted in my previous thread.

 

If no $content would show up altogether, I would expect I had done something wrong editing the files, but since some content does show (albeit nothing usable), I suspect something else has gone wrong.

 

I also tried using the debugging function of STS, but couldn't detect anything strange. No errors/exceptions/warnings are thrown...

 

As I mentioned before, everything is working as expected, it's just that all pages are empty since the $content variable does not contain the expected code.

 

Any suggestion is welcome... :)

Edited by Netson
Link to comment
Share on other sites

Hello all...

 

I have a question. Using STS 4.x, where I have a few different links coded into the template (ie, Index, Forum, etc) it does not carry the osCid= string with it. Therefore it loses the session, logs the user out and deletes the cart.

 

Does anyone know why or what settings I should check?

 

Thanks!

Link to comment
Share on other sites

Hello all...

 

I have a question. Using STS 4.x, where I have a few different links coded into the template (ie, Index, Forum, etc) it does not carry the osCid= string with it. Therefore it loses the session, logs the user out and deletes the cart.

 

Does anyone know why or what settings I should check?

 

Thanks!

 

Yes, you need to make sure you have created your links properly (to retain the session ID).

See the following thread in this STS Forum:

 

Creating Page Links

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

this is a reply to my original thread (http://www.oscommerce.com/forums/topic/362514-sts-content-not-showing/), but as requested by the starter of this topic, I am moving the discussion in here! smile.gif

 

 

Currently using osC MS2 (including some patches applied manually)

 

 

I uploaded all the new files from the MS2 folder, and made the changes to the existing files manually.

 

 

I kept the entire folder structure intact and used all the default STS and osC folder names.

 

 

After installing STS, I first tried the default settings with one of the sample templates; right from the start I have not seen any $content being displayed, other than what I posted in my previous thread.

 

If no $content would show up altogether, I would expect I had done something wrong editing the files, but since some content does show (albeit nothing usable), I suspect something else has gone wrong.

 

I also tried using the debugging function of STS, but couldn't detect anything strange. No errors/exceptions/warnings are thrown...

 

As I mentioned before, everything is working as expected, it's just that all pages are empty since the $content variable does not contain the expected code.

 

Any suggestion is welcome... smile.gif

 

Check your installation.

 

  1. Be sure you have indeed uploaded the contents of the "STS" folder to the correct location on your server, keeping the file/folder structure intact (meaning, do not upload the STS folder and everything in it but only upload everything inside of the STS folder.
  2. Either upload everything in the RC2 folder or make the changes to each file manually. If you choose the manual route, save yourself some time and pain by using a good file comparison tool such as Beyond Compare or WinMerge to merge in the changes manually, so as to make sure the modified code is going to the correct location.

Once the above is completed, click on the "install" button for the STS Default module in the admin. Keep all of the default settings and then test your shop.

 

 

 

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 have a question that seems relatively simple but I can't figure it out and can't find anything in this forum to solve it. Sorry if its obvious but I'm relatively new to this.

 

I want to take the links in the $infobox and separate them in the footer of a template. I can't find a variable for them. So I assumed I could create one - basically if I can find the code where the variables are created/executed, copy and change the link. Then use $shipping instead of $infobox. Seems logical but can't follow it in the code. I have been through all the php modules and can't find them.

 

How would I create a variable for Shipping & Returns, Privacy Notice, etc. or is there an easier way of putting these horizontally in a foother without the box heading?

 

Thanks in advance for your reply.

 

Steve

Link to comment
Share on other sites

I want to take the links in the $infobox and separate them in the footer of a template. I can't find a variable for them. So I assumed I could create one - basically if I can find the code where the variables are created/executed, copy and change the link. Then use $shipping instead of $infobox. Seems logical but can't follow it in the code. I have been through all the php modules and can't find them.

 

How would I create a variable for Shipping & Returns, Privacy Notice, etc. or is there an easier way of putting these horizontally in a foother without the box heading?

 

You have various ways to go

 

1. You use the infobox. First thing is you go to file includes/boxes/information.php and remove the linebreaks <br>. Then you will want to make a template for your infobox, this you call infobox_information.php.html and you place it into the "boxes" folder of your sts template folder. The simpliest way is to have just the $content tag thre, no header no nothing. Last, you place the infobox tag to your template wherever you like.

 

2. You create a tag for each page, as your question. You can look how it is done in file includes/modules/sts_inc/general.php. For example a link to the login page would look like this

$sts->template['login'] = '<a href=' . tep_href_link(FILENAME_LOGIN, '', 'SSL') . '>' .  HEADER_TITLE_LOGIN . '</a>';

 

3. You make the links directly in your template, like this

<li><a href="<?php echo tep_href_link(FILENAME_PRIVACY, '', 'NONSSL'); ?>"><?php echo(LINK_PRIVACY); ?></a></li>

. Of course you need to put it into your own table or div structure + maybe some additional css. If you have your store just in one language, then you dont need a special text definition like in the example, but you can replace <?php echo(LINK_PRIVACY); ?> with just "privacy" or whatever.

 

There are many posts about this and similar issues already in this topic, here are some useful links

Link to comment
Share on other sites

You have various ways to go

 

1. You use the infobox. First thing is you go to file includes/boxes/information.php and remove the linebreaks <br>. Then you will want to make a template for your infobox, this you call infobox_information.php.html and you place it into the "boxes" folder of your sts template folder. The simpliest way is to have just the $content tag thre, no header no nothing. Last, you place the infobox tag to your template wherever you like.

 

2. You create a tag for each page, as your question. You can look how it is done in file includes/modules/sts_inc/general.php. For example a link to the login page would look like this

$sts->template['login'] = '<a href=' . tep_href_link(FILENAME_LOGIN, '', 'SSL') . '>' .  HEADER_TITLE_LOGIN . '</a>';

 

3. You make the links directly in your template, like this

<li><a href="<?php echo tep_href_link(FILENAME_PRIVACY, '', 'NONSSL'); ?>"><?php echo(LINK_PRIVACY); ?></a></li>

. Of course you need to put it into your own table or div structure + maybe some additional css. If you have your store just in one language, then you dont need a special text definition like in the example, but you can replace <?php echo(LINK_PRIVACY); ?> with just "privacy" or whatever.

 

There are many posts about this and similar issues already in this topic, here are some useful links

 

 

Thanks Multimixer - I thought about this before your reply and just went the add link to the template route. I will try the mod in item 1 as that seems easier over the long haul.

 

Thanks again for the information.

 

Steve

Link to comment
Share on other sites

Hello

 

I've been experimenting with STS for a new site and I'm running my templates around in circles trying to solve what is probably a simple design issue.

 

I have STS 4.6 w/ Enchanced Specials, Simple Multi Images, and Fancy Tag for STS working perfectly. I am evolving a free template into a "multi" template with header/footer/sidebar/content pages using CSS.

 

My problem occurred when I was following a click stream through our "catalog":

 

Home > Pools > Inground > Accessories

 

Within the Accessories Sub-Catergory I have both products and other sub-categories (yes the logic is flawed, but..) I would like to display the sub-categories at the top and the products below.

 

I would also like to alter the layout of any sub_category pages with sub_categories within them... (wow that was painful)

 

I though that creating an index.php_X.html and index.php_X_X.html would solve this, but that only changes the product_info pages...

 

Please shed some light on this subject or maybe I'm simply not reading the Users Manual/Beginners Tut correctly...

 

thanks

-jt

Link to comment
Share on other sites

Hello All,

 

I'm new to using sts and I am having a problem with it. I put a placeholder in to the page I am going to use for my shop home page (only my shop homepage not my website homepage:

http://www.nasawear.com/apparel.php

When I looked at the page I still see the placeholders and not the content that should be there when I visit it. I am stumped on why it not working. Can someone help me?

Sorry if the answer turns out to be a no brainer, but osc is my first encounter with php.

Thanks,

-Luc

My Installed Contributions:

1. Ultimate SEO URLs V 2-2.2d-X

2. Quantity Box on Product Info Page

3. httpbl4osc Version 1.1.0

4. QTpro for osc 2.3

5. Header Tags SEO V 3.0 (For 2.3)

6. DHTML State Selection for 2.3.1

And Good To Know:

I use a 960gs fluid style sheet.

I do have a honey pot on my website.

Store Version: 2.3

 

“Pain is temporary. Quitting lasts forever."

- Lance Armstrong

Link to comment
Share on other sites

Hello All,

 

I'm new to using sts and I am having a problem with it. I put a placeholder in to the page I am going to use for my shop home page (only my shop homepage not my website homepage:

http://www.nasawear.com/apparel.php

When I looked at the page I still see the placeholders and not the content that should be there when I visit it. I am stumped on why it not working. Can someone help me?

Sorry if the answer turns out to be a no brainer, but osc is my first encounter with php.

Thanks,

-Luc

 

Well, first of all why have you got a file in oscommerce called appareal.php?

My guess is that you renamed something....and you have somehow altered the standard oscommerce structure.

Link to comment
Share on other sites

Hi all,

 

I have a question, I'm trying to integrate the following contrib on my OSC which of course runs STS:

Ajax attributes images

 

What it does is simply linking an option to a an image, so that by slecting the corresponding option you can see a corresponding image in realtime.

 

Unfortunately, when the ajax call happens in product_info.php the result given is not the content I'm supposed to retrive but the HTML code of the STS template.

 

I suppose the two contributions have issues because of this code:

 

    <script language="javascript">

function createRequestObject() {

   var req;

   if(window.XMLHttpRequest){
	  req = new XMLHttpRequest();
   } else if(window.ActiveXObject) {
	  req = new ActiveXObject("Microsoft.XMLHTTP");
   } else {
	  req = NULL;
	  alert('Probleem met het aanmaken van hetXMLHttpRequest object');
   }

   return req;

}

   var http = createRequestObject();

   function sendRequestSearch(iets) {

      http.open('get', 'ajaximage.php?zoek='+iets);
      http.onreadystatechange = handleResponseSearch;
      http.send(null);

   }

   function handleResponseSearch() {




      if(http.readyState == 4 && http.status == 200){
         if(http.responseText) {
            document.getElementById("zoek_resultaten").innerHTML = http.responseText;
         } else {
            document.getElementById("zoek_resultaten").innerHTML = "   ";
         }

      } else {
         document.getElementById("zoek_resultaten").innerHTML = "   ";
      }

   }

</script>   

 

 

Any work around suggested?

 

thanks!

Link to comment
Share on other sites

Well, first of all why have you got a file in oscommerce called apparel.php?

My guess is that you renamed something....and you have somehow altered the standard oscommerce structure.

 

I did not alter the names of any of the os commerce files. What I did do was make a new page that was almost a exact copy of my home page on the top level. I was hoping to use that as my store and just put the placeholders in that page since I already have how I want my shop to look. The original store is here: http://www.nasawear.com/store/.

Correct me if I wrong, but I thought with sts I would be able to but the placeholders in any page I wanted to be my store like the page http://www.nasawear.com/apparel.php.

 

- Luc

My Installed Contributions:

1. Ultimate SEO URLs V 2-2.2d-X

2. Quantity Box on Product Info Page

3. httpbl4osc Version 1.1.0

4. QTpro for osc 2.3

5. Header Tags SEO V 3.0 (For 2.3)

6. DHTML State Selection for 2.3.1

And Good To Know:

I use a 960gs fluid style sheet.

I do have a honey pot on my website.

Store Version: 2.3

 

“Pain is temporary. Quitting lasts forever."

- Lance Armstrong

Link to comment
Share on other sites

I did not alter the names of any of the os commerce files. What I did do was make a new page that was almost a exact copy of my home page on the top level. I was hoping to use that as my store and just put the placeholders in that page since I already have how I want my shop to look. The original store is here: http://www.nasawear.com/store/.

Correct me if I wrong, but I thought with sts I would be able to but the placeholders in any page I wanted to be my store like the page http://www.nasawear.com/apparel.php.

 

- Luc

.... :)

You're wrong...

 

STS is a system designed to work INSIDE the OSC environment...it helps you creating in a far easier and versatile way templates to ovverride OSC standard (and pretty poor) graphics.

 

You can't crate copies of pages inside OSC on the outside. What you could do could be calling some products and other modules outside Oscommerce with this simple contrib:

Content Outside OSC

 

 

 

Now, would somebody answer also my question please? :)

Link to comment
Share on other sites

.... :)

You're wrong...

 

STS is a system designed to work INSIDE the OSC environment...it helps you creating in a far easier and versatile way templates to ovverride OSC standard (and pretty poor) graphics.

 

You can't crate copies of pages inside OSC on the outside. What you could do could be calling some products and other modules outside Oscommerce with this simple contrib:

Content Outside OSC

 

 

 

Now, would somebody answer also my question please? :)

 

Thanks for that information, but I have a few more questions.

 

Would it be possible to bring the page I created and put it in the index file in the oscommerce folder or would that just mess everything up more? Secondly, would I be able to use the "Content Outside OSC" to put all of the content that you would normally find inside OSC on to the page I created to match my homepage and then use sts to change the look of the boxes to match my page? And finally does this mean sts is strictly for changing the look of the original OSC store and images?

 

- Luc

My Installed Contributions:

1. Ultimate SEO URLs V 2-2.2d-X

2. Quantity Box on Product Info Page

3. httpbl4osc Version 1.1.0

4. QTpro for osc 2.3

5. Header Tags SEO V 3.0 (For 2.3)

6. DHTML State Selection for 2.3.1

And Good To Know:

I use a 960gs fluid style sheet.

I do have a honey pot on my website.

Store Version: 2.3

 

“Pain is temporary. Quitting lasts forever."

- Lance Armstrong

Link to comment
Share on other sites

.... :)

You're wrong...

 

STS is a system designed to work INSIDE the OSC environment...it helps you creating in a far easier and versatile way templates to ovverride OSC standard (and pretty poor) graphics.

 

You can't crate copies of pages inside OSC on the outside. What you could do could be calling some products and other modules outside Oscommerce with this simple contrib:

Content Outside OSC

 

 

 

Now, would somebody answer also my question please? :)

 

I just put that contribution into my apparel page and all I got were error messages, I don't know what I did wrong, I followed the instructions, whitch were not very helpful and I did not work. This is the page: http://www.nasawear.com/apparel.php Does any one have any clue to why I am having all these problems?

 

- Luc

My Installed Contributions:

1. Ultimate SEO URLs V 2-2.2d-X

2. Quantity Box on Product Info Page

3. httpbl4osc Version 1.1.0

4. QTpro for osc 2.3

5. Header Tags SEO V 3.0 (For 2.3)

6. DHTML State Selection for 2.3.1

And Good To Know:

I use a 960gs fluid style sheet.

I do have a honey pot on my website.

Store Version: 2.3

 

“Pain is temporary. Quitting lasts forever."

- Lance Armstrong

Link to comment
Share on other sites

Hello,

 

The front end of my store is working fine, but my admin tool is running very slowly. The tech support representative at my web hosting service said the following errors were showing on the server:

 

[sat Aug 14 02:47:02 2010] [error] [client 75.142.190.21] File does not exist: /home/lisassti/public_html/admin/includes/javascript/tiny_mce/plugins/codeprotect, referer: http://lisasstitchingpost.com/admin/categories.php?cPath=17

 

[sat Aug 14 02:47:02 2010] [error] [client 75.142.190.21] File does not exist: /home/lisassti/public_html/admin/includes/javascript/tiny_mce/plugins/ibrowser, referer: http://lisasstitchingpost.com/admin/categories.php?cPath=17

 

He said I should share the above errors with those of you on the OsC community forums and see if you could give me any directions that he might be able to assist me with.

 

Thank you in advance,

Lisa

Link to comment
Share on other sites

I must be a complete NOOB.

 

I've read the docs and everyone seems to get this up and running. I can not seem to get it right.

 

I make the changes to the sts_template.html and when I log into my filemanager and look that file, i can see all the changes I've made.

 

BUT when I go to the site, there are NO changes. It is still the default sts template.

 

YES, I've gone through and enabled the module from the oscommerce admin site. Yes, I've reloaded the store from scratch and followed the directions to a T ...okay so maybe I haven't because it STILL DOESN"T work! aRRRGGGgggHHHHHh

 

Any clues? I've only been able to modify the logo by going through and uploading my own image and naming it store_logo.png

 

grrr please please PLEASE someone help me

 

thanks

Link to comment
Share on other sites

I must be a complete NOOB.

 

I've read the docs and everyone seems to get this up and running. I can not seem to get it right.

 

I make the changes to the sts_template.html and when I log into my filemanager and look that file, i can see all the changes I've made.

 

BUT when I go to the site, there are NO changes. It is still the default sts template.

 

YES, I've gone through and enabled the module from the oscommerce admin site. Yes, I've reloaded the store from scratch and followed the directions to a T ...okay so maybe I haven't because it STILL DOESN"T work! aRRRGGGgggHHHHHh

 

Any clues? I've only been able to modify the logo by going through and uploading my own image and naming it store_logo.png

 

grrr please please PLEASE someone help me

 

thanks

 

Hello and welcome to osCommerce RC2a and STSv4.6. Sorry to see that you are having problems right at the start.

 

  • Be sure you are indeed uploading the modified template back onto your server in the same location.
  • Be sure you have the correct template set selected that you have made the modifications in (the folder where this modified template resides).
  • If the template set is using a index.php.html template, then you would need to modify that template as well.
  • If all esle fails, refresh the cache in your browser as you may be viewing an old cached page of your site. Try viewing your site from a different computer to see for sure.

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

Link to comment
Share on other sites

Thanks for that information, but I have a few more questions.

 

Would it be possible to bring the page I created and put it in the index file in the oscommerce folder or would that just mess everything up more? Secondly, would I be able to use the "Content Outside OSC" to put all of the content that you would normally find inside OSC on to the page I created to match my homepage and then use sts to change the look of the boxes to match my page? And finally does this mean sts is strictly for changing the look of the original OSC store and images?

 

- Luc

 

 

Luc,

 

STS allows you to make your own home page using HTML and naming that page as so: index.php_0.html

This page would then be used as your home page. You would then make sure you have a default index template named index.php.html to be used for all of your other catalog pages. This is different from the default template page (sts_template.html). The sts_template.html is used for anyother page in your shop in which you have not created a specific template for such as your privacy.php and shipping.php pages.

 

See these posts for more information:

 

Important Posts for the STS newbie:

 

Post #3755: http://forums.oscomm...p;#entry1226986

 

Post #4326: http://forums.oscomm...p;#entry1303555

 

Post #4974: http://forums.oscomm...p;#entry1361366

 

Post #3772: http://forums.oscomm...p;#entry1227769

 

Post #3757: http://forums.oscomm...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.

 

TIP

Here is a quick rundown of common template names:

 

  • sts_template.html
    • = Default template

    [*]index.php.html

    • = 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).

    [*]index.php_0.html

    • = Home page template

    [*]index.php_x.html

    • = Specific category template where x = the category ID.

    [*]index.php_x_y.html

    • = Specific subcategory template where x = the category ID and y = the subcategory ID

    [*]product_info.php.html

    • = Default Product template (used for all products, in all categories, if no specific product template is found).

    [*]product_info.php_c23.html

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

    [*]product_info.php_23.html

    • = CONTENT template for product ID 23. All content template should be saved in the SGP/content/ folder. Review the sample content template provided in the STS template “full/content” folder. The STS Module Product Info must be enabled in order to use this STS feature. This template is not recommended unless you really know what you are doing since you would need to make modifications to it if you ever added new osCommerce contributions to your shop.

    [*]popup_image.php.html

    • = Template for the product popup image.

    [*]index.php.mfr.html

    • = Default Manufacturer template page (used for all manufacturer 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).

    [*]index.php.mfr_x.html

    • = Specific Manufacturer template where x = the manufacturer ID.
       
      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

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