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

[Contribution] STS v4

Recommended Posts

Hi...

 

i have installed last version of STS... but my product listings of my subcategories are not showing...

 

There is any placeholder to put on template(e.g.: shop/35-mp4-player-c-21_23_24.html)??

 

I dont see nothing on STS Manual..

 

 

on my catalog/index.php i change the line 325 to

 

<tr>

<td><?php //include(DIR_WS_MODULES . FILENAME_PRODUCT_LISTING); ?></td>

</tr>

 

Thank you

 

Rafael

 

STS does not have a problem with this so you must have something else messed up in your shops code or configuration.


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 should add the following info: The correct version of OSC is 2.2 RC2 - the latest one. I downloaded the latest version of STS (4.5.8). The other contributions which are installed are as follows: Optimize Categories Box (http://www.oscommerce.com/community/contributions,5173), and On-The-Fly Auto Thumbnailer 2.4 (http://addons.oscommerce.com/info/2226). That's it.

 

I've modified nothing else other than those two mods above. I plan to install SPPC but I need to figure out this template issue first.

 

It appears your templates must contain some large image files that would slow things down. Also, did you look in the STS User Manual regarding how to speed up the STS tags by adding an end character?


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,

 

I've been banging my head against a wall all night. I can't figure out why my nav menu works fine in firefox, but when used in IE it doesn't work (It works fine in html pages that aren't related to the shop)

 

I just copy and pasted my html and css into the sts_template html file, along with some other changes.

 

The catalog with the problem can be seen here: Non working in IE - catalog

 

The nav bar working correctly in IE with non catalog pages can be see here: Working nav bar in IE & Firefox (none shop page)

 

 

BTW, non of the links etc will work as the site is still under construction.

 

 

 

Is it some sort of conflict between the css, html and php? I have the latest OsC installed, STS 4.5.8 and Modern Template RC2a for STSv458 (which is where I have modified the theme).

 

Any help would be great. I searched the forums but can't seem to find anything similar...

Share this post


Link to post
Share on other sites
Hi Bill,

 

I've been banging my head against a wall all night. I can't figure out why my nav menu works fine in firefox, but when used in IE it doesn't work (It works fine in html pages that aren't related to the shop)

 

I just copy and pasted my html and css into the sts_template html file, along with some other changes.

 

The catalog with the problem can be seen here: Non working in IE - catalog

 

The nav bar working correctly in IE with non catalog pages can be see here: Working nav bar in IE & Firefox (none shop page)

 

 

BTW, non of the links etc will work as the site is still under construction.

 

 

 

Is it some sort of conflict between the css, html and php? I have the latest OsC installed, STS 4.5.8 and Modern Template RC2a for STSv458 (which is where I have modified the theme).

 

Any help would be great. I searched the forums but can't seem to find anything similar...

This appears to be an isolated issue with IE and your menu. You will notice that the CSS menu from the Modern Template RC2a is working fine in both IE and FireFox but your custom menu only works in FireFox.

 

You may need to add some if IE statements within your menu in your template pages.


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

 

I installed an Ajax Carrousel on specific categories of my site....

 

and i want to know how i do to call my product list of each category to put inside of this carousel....

 

see below one example:

 

http://www.factoryretails.com/mp4-players-c-21_23.html

 

On this example i edited the template "21_23.html" and put each product one by one.... but it will be hard if i have 1000 itens....

 

so, can someone help me how i call the especific categorie inside the carousel on 21_23.html file...

 

thank you

 

Rafael..


OScommerce Rocks!

Share this post


Link to post
Share on other sites
STS does not have a problem with this so you must have something else messed up in your shops code or configuration.

 

 

Solved Kellum.... its was on my index.php ..

 

Thank you

 

Rafael..


OScommerce Rocks!

Share this post


Link to post
Share on other sites

Hey there,

 

is use STS 4.4 and it works realy fine, thank you for this nice thing. I got one Problem. Im not able to template a specific site, for example checkout_success.php. I createt a template checkout_success.php.html in my main template folder (full). It dosnt work.

 

It would be nice if someone can help me.

 

Cheers

 

Andreas

Share this post


Link to post
Share on other sites
Hey there,

 

is use STS 4.4 and it works realy fine, thank you for this nice thing. I got one Problem. Im not able to template a specific site, for example checkout_success.php. I createt a template checkout_success.php.html in my main template folder (full). It dosnt work.

 

It would be nice if someone can help me.

 

Cheers

 

Andreas

Upgrade to version 4.5.8 and that should take care of your problem.


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

 

I installed an Ajax Carrousel on specific categories of my site....

 

and i want to know how i do to call my product list of each category to put inside of this carousel....

 

see below one example:

 

http://www.factoryretails.com/mp4-players-c-21_23.html

 

On this example i edited the template "21_23.html" and put each product one by one.... but it will be hard if i have 1000 itens....

 

so, can someone help me how i call the especific categorie inside the carousel on 21_23.html file...

 

thank you

 

Rafael..

 

 

Anybody???


OScommerce Rocks!

Share this post


Link to post
Share on other sites
Anybody???

 

This is a question specific to the Ajax Carrousel contribution so you should ask this in that thread. Regarding links to specific products, you would use the following:

 

STS Link to a product:

 

<a href="<?php echo tep_href_link('product_info.php', 'products_id=53&', 'NONSSL'); ?>">Product Name Here</a>


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 a question specific to the Ajax Carrousel contribution so you should ask this in that thread. Regarding links to specific products, you would use the following:

 

STS Link to a product:

 

<a href="<?php echo tep_href_link('product_info.php', 'products_id=53&', 'NONSSL'); ?>">Product Name Here</a>

 

 

Many thanks Kellum. worked...

 

There are any function to call the respective price of the product that im calling.. like the product_id 53? Just to show the respective price and price offer(specials) just below of the product called...

 

I get the Carrousel ajax script here: http://www.ajaxdaddy.com/ .. a great site with 2.0 web funtions.... because this dont have suport here on forum..

 

Rafael


OScommerce Rocks!

Share this post


Link to post
Share on other sites

When using STS, what is the best way to display flash video on the template pages? For example, I have a custom template STS page for the home page and want to display a video. What type of flash files should I use, and where do they go once I have them? I can't seem to figure out where the files are supposed to go.

 

Help?

 

Thanks!

Share this post


Link to post
Share on other sites
When using STS, what is the best way to display flash video on the template pages? For example, I have a custom template STS page for the home page and want to display a video. What type of flash files should I use, and where do they go once I have them? I can't seem to figure out where the files are supposed to go.

 

Help?

 

Thanks!

Frank,

The SWFObject is the best bet in adding Flash into your osCommerce store.

I created a step by step on how to do this in post #4735:

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

 

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
What are you wanting to do that you currently are having difficulties with? If you want a unique "home page", you can just creat an index.html and design to your hearts content. Otherwise, you should be able to create index.php.html as your unique home page and design all other page templates as well with their own unique style (shipping.php.html, account.php.html, login.php.html, etc, etc.).

 

For one of my clients, I designed a separate home page with a link to his shop, all done with STS v4. You can view it here: http://www.hatoverheels.com. Once on the home page, click on "hatalog" and then on one of the catagories to view the shop.

 

I don't know if this is what your asking or not. Hope I was able to help you out.

 

Bill Kellum

 

Hi Bill, LOVLOVLOVLOV the STS. It has saved me on building my first OS Commerce site.

 

My question and where I'm now stuck is that the site I'm building is just about exactly the same setup as your hatoverheels.com site. I have static HTML pages just like your site with the ABOUT page, CONTACT page, RING SIZE etc that I want to just use the HTML static pages. However, the problem I'm having is that I want to add a couple of the info boxes in the right colomn of my static pages, i.e. NEW PRODUCTS and SPECIALS. But it's just coming up as the code on the page. So how do I load up the static HTML pages but have it look for the infoboxes within the template system?

 

Also, just a side question that I'm concerned about. If someone is logged into the store, will they lose their link if they click around the site to the static HTML pages?

Edited by Punkee

Newbie to OSCommerce, but catching on quickly! I follow directions well. :) SMILE -- It only makes people wonder what you're up too!

Share this post


Link to post
Share on other sites
Frank,

The SWFObject is the best bet in adding Flash into your osCommerce store.

I created a step by step on how to do this in post #4735:

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

 

Hope this helped you out,

 

 

GREAT HELP! Thanks Bill! I'm having a similar problem which this method won't fix. I'm using the unlimited info pages mod and can't figure out where to put all the files. Can this be adapted to fixing that as well?

 

Thanks!

Share this post


Link to post
Share on other sites
Hi Bill, LOVLOVLOVLOV the STS. It has saved me on building my first OS Commerce site.

 

My question and where I'm now stuck is that the site I'm building is just about exactly the same setup as your hatoverheels.com site. I have static HTML pages just like your site with the ABOUT page, CONTACT page, RING SIZE etc that I want to just use the HTML static pages. However, the problem I'm having is that I want to add a couple of the info boxes in the right colomn of my static pages, i.e. NEW PRODUCTS and SPECIALS. But it's just coming up as the code on the page. So how do I load up the static HTML pages but have it look for the infoboxes within the template system?

 

Also, just a side question that I'm concerned about. If someone is logged into the store, will they lose their link if they click around the site to the static HTML pages?

 

Dianna,

The BEST way to do this is to convert your static pages using the method I outlined in the STS Add-on "Add New Pages Using STS" which is available in the STS Add-ons site "STSv4 Power Pack" (see link to this collection of STS Add-ons in my signature below).

 

By using this method, you will not lose any of the session ID data and you will be able to template the aboutus.php and contact_us.php pages using STS. This will allow you to add or remove any of the osCommerce boxes at will.


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
GREAT HELP! Thanks Bill! I'm having a similar problem which this method won't fix. I'm using the unlimited info pages mod and can't figure out where to put all the files. Can this be adapted to fixing that as well?

 

Thanks!

 

Frank,

 

A better way to add new pages to your shop and utilize STS as well would be to follow the same advice I gave to Dianna (post just above this one). Then, you could use the same steps for the Flash movies as posted in that link that I gave you.


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

The BEST way to do this is to convert your static pages using the method I outlined in the STS Add-on "Add New Pages Using STS" which is available in the STS Add-ons site "STSv4 Power Pack" (see link to this collection of STS Add-ons in my signature below).

 

By using this method, you will not lose any of the session ID data and you will be able to template the aboutus.php and contact_us.php pages using STS. This will allow you to add or remove any of the osCommerce boxes at will.

 

Dianna,

One more point...

I suggest using index.php_0.html as your home page.


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

 

A better way to add new pages to your shop and utilize STS as well would be to follow the same advice I gave to Dianna (post just above this one). Then, you could use the same steps for the Flash movies as posted in that link that I gave you.

 

I would totally do that, if the site wasn't just about done and the client's budget just about gone. I have to get these flash vids working on this page... http://microfence.com/video-i-6.html and then it's done. Soooooo close.

Share this post


Link to post
Share on other sites
I would totally do that, if the site wasn't just about done and the client's budget just about gone. I have to get these flash vids working on this page... http://microfence.com/video-i-6.html and then it's done. Soooooo close.

 

Frank,

 

I don't understand why the method that I proposed would not work for you? Did you give it a try?

 

Is there a particular step that you need help with?

 

Once you upload your swfobject.js file to includes/sts_templates/*your template folder*/flash/swfobject.js, and then upload the actual flash movie to images/flash/*your flash file*.swf, you would add something similar to the following in your template:

 

<script type="text/javascript" src="$templatedir/flash/swfobject.js"></script>
<table border="0" align="center" cellpadding="0" cellspacing="0" style="width: 100%">
   <tr>
	<td class="styleCushion"> </td>
  <td> </td>
   </tr>
   <tr>
	<td class="styleFlash">
	<script type="text/javascript" src="$templatedir/flash/swfobject.js"></script>
	 <div id="flashcontent">This text is replaced by the Flash movie.
  </div>
  <script type="text/javascript">
	 var so = new SWFObject("images/flash/*replace with the name of your flash file*.swf", "movie", "700", "480", "8", "#ffffff");
	 so.write("flashcontent");
  </script>
	</td>


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
Many thanks Kellum. worked...

 

There are any function to call the respective price of the product that im calling.. like the product_id 53? Just to show the respective price and price offer(specials) just below of the product called...

 

I get the Carrousel ajax script here: http://www.ajaxdaddy.com/ .. a great site with 2.0 web funtions.... because this dont have suport here on forum..

 

Rafael

 

 

Anybody knows?


OScommerce Rocks!

Share this post


Link to post
Share on other sites
Frank,

 

I don't understand why the method that I proposed would not work for you? Did you give it a try?

 

Is there a particular step that you need help with?

 

Once you upload your swfobject.js file to includes/sts_templates/*your template folder*/flash/swfobject.js, and then upload the actual flash movie to images/flash/*your flash file*.swf, you would add something similar to the following in your template:

 

<script type="text/javascript" src="$templatedir/flash/swfobject.js"></script>
<table border="0" align="center" cellpadding="0" cellspacing="0" style="width: 100%">
   <tr>
	<td class="styleCushion"> </td>
  <td> </td>
   </tr>
   <tr>
	<td class="styleFlash">
	<script type="text/javascript" src="$templatedir/flash/swfobject.js"></script>
	 <div id="flashcontent">This text is replaced by the Flash movie.
  </div>
  <script type="text/javascript">
	 var so = new SWFObject("images/flash/*replace with the name of your flash file*.swf", "movie", "700", "480", "8", "#ffffff");
	 so.write("flashcontent");
  </script>
	</td>

 

 

Because the unlimited info pages aren't part of sts. I don't want to remake all the pages either. I will use that for everything inside sts though.

Share this post


Link to post
Share on other sites

Oh boy, I seem to have confused myself beyond belief once again.

 

In a nutshell. My site has only a few categories with no subgcategories (a few products listed directly in each category.)

I need to create a template for the $content on this page because the default looks like hell with my client's wants. One template is fine for the whole site.

When I say "this page" I mean the immediate product listings on the category page.

 

But, I am confusing myself way too badly.

 

What file can I copy and turn into a template to do this?

Where should this template exist? Directly in my "test" folder or do I need a "content" folder inside of "test"?

Or is it supposed to go in modules somwhere? ugh ugh.

Edited by Aprilrobin

Share this post


Link to post
Share on other sites

Hi Bill Kellum,

 

I've installed STS 4.5.8 on the latest osc ms2_RC2a...

 

Everything works fine with index.php.html template..

 

but when I add a new placeholder as detailed in the manual in to :

sts_user_code.php

 

using this method

 

$sts->start_capture();

require(DIR_WS_BOXES . 'mini_search.php');

$sts->stop_capture('minisearchbox', 'box');

 

the site would just refuse to display..

 

I have copied and modified the default osc search.php into mini_search.php removing everything except the form input field...

the mini_search.php has been tested to work without sts..

 

the problem seems to be in the sts_user_code.php as I am unable to create any additional placeholder eg like $minisearchbox...

 

the page would just go blank.. removing the user created code (the 3 lines as mentioned above) brings back my site with no problem..

 

what could possibly be the cause?

 

 

Out of desperation, I also tried using this method:

$sts->template['minisearchbox']='mini_search.php;

 

this did not break the template but simply display the text mini_search.php in the template when viewed in browser...

 

Thanks for your wonderful help in advance.

Share this post


Link to post
Share on other sites

 

You may have your STS Modules misconfigured in the admin.

The Default Module's "default" settings should work just fine:

 

Default template (v2.1.1) 

Use Templates?
true

Code for debug output
debug

Files for normal template
sts_user_code.php

Base folder
includes/sts_templates/

Template folder
full

Default template file
sts_template.html

Use template for infoboxes
true

*Change the template folder above to your custome template folder name. Use 'full' if that is the template folder name that you have in use.

 

 

Otherwise, Try this:

 

Find the following in the includes/modules/sts_inc/sts_column_left.php file:

  require(DIR_WS_BOXES . 'search.php');
 $sts->restart_capture ('searchbox', 'box'); // Get search box

 

Add this afterwards:

  require(DIR_WS_BOXES . 'mini_search.php');
 $sts->restart_capture ('minisearchbox', 'box'); //Get custom search box

 

It should look like this:

  require(DIR_WS_BOXES . 'search.php');
 $sts->restart_capture ('searchbox', 'box'); // Get search box

 require(DIR_WS_BOXES . 'mini_search.php');
 $sts->restart_capture ('minisearchbox', 'box'); //Get custom search box

 

You could also try removing the 'box' tag in case this throws off your layout:

  require(DIR_WS_BOXES . 'search.php');
 $sts->restart_capture ('searchbox', 'box'); // Get search box

 require(DIR_WS_BOXES . 'mini_search.php');
 $sts->restart_capture ('minisearchbox'); //Get custom search box


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

×