Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Contribution] STS v4


Guest

Recommended Posts

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

Link to comment
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!

Link to comment
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

Link to comment
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

Link to comment
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!

Link to comment
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

Link to comment
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!

Link to comment
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!

Link to comment
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://www.oscommerce.com/forums/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

Link to comment
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
Link to comment
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://www.oscommerce.com/forums/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!

Link to comment
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

Link to comment
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

Link to comment
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

Link to comment
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.

Link to comment
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

Link to comment
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!

Link to comment
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.

Link to comment
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
Link to comment
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.

Link to comment
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

Link to comment
Share on other sites

Hi,

 

I've had STS4.2 and HTC installed for well over a year. It was made aware to me just recently that all the pages on my site had zero google pagerank. On some pages the pagerank indicator bar is grayed out suggesting the page isn't even being indexed. There are over 200 pages indexed on google but there is probably 1500 products on there, so it is at least getting on there but even when it does the pagerank is zero. I was told it could be due to way STS effects google indexing of the site, it does seem strange some pages are indexed and some not. Does anyone have any similar issues or information?

 

Do people have a non zero pagerank using STS?

 

Thank you

Link to comment
Share on other sites

I have an issue relating to the Custom Product listing page from the free template pack, my shop is being designed from an artists image of the site, my problem is that the design calls for the product listings to exist in tables so i modified the product_listing.php :-

 

First i found

$lc_text = implode('<br>', $product_contents);

and replaced this with

$lc_text = '<center><table width="120" border="0" class="product-data"><tr><td>' . implode('</td></tr><tr><td>', $product_contents) . '</tr></td></table></center>';

 

I then added a new category to the css file and have fully functioning tables with the details controlled by a css fiile, the problem i have however is that the image file (set at 120x120) has padding around it and doesn't fit flush to the side of the image as required.

 

Looking over the page source i notice the following code

	<table border="0" cellpadding="0" cellspacing="0" width="100%" class="productListing"> 
  <tr> 
	<td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="2"> 
 <tr> 
<td class="productListing-data"><center><table width="120" border="0" class="product-data"><tr><td> <a href="http://localhost/catalog/index.php?manufacturers_id=4&osCsid=r2r1khq97jdm59sq7oapc0qas6">BOLONGARO TREVOR</a> </td></tr><tr><td> <a href="http://localhost/catalog/product_info.php?cPath=3_10&products_id=12&osCsid=r2r1khq97jdm59sq7oapc0qas6"><img src="images/dvd/die_hard_3.gif" border="0" alt="Die Hard With A Vengeance" title=" Die Hard With A Vengeance " width="120" height="120"></a> </td></tr><tr><td> <a href="http://localhost/catalog/product_info.php?cPath=3_10&products_id=12&osCsid=r2r1khq97jdm59sq7oapc0qas6">Die Hard With A Vengeance</a> </td></tr><tr><td> £39.99 </td></tr><tr><td><a href="http://localhost/catalog/index.php?cPath=3_10&sort=3a&action=buy_now&products_id=12&osCsid=r2r1khq97jdm59sq7oapc0qas6"><img src="includes/sts_templates/modernrc2a/images/english/buttons/button_buy_now.gif" border="0" alt="" width="120" height="24"></a> </tr></td></table></center></td>

 

I believe the cellpadding of 2 prior to my code block doesn't cause the issue i need to resolve. Anybody know why the images have a whitespace around them? my listing boxes should be width 120 (as is the case with the images) but it in reality is 128 (4 pixels on each side) the top of the image has a single pixel space and the bottom like the sides is 4 pixels, whats causing this?

 

p.s. i am aware this is probably neither STS nor OSC related but hope i can get some pointers to remove this issue (or an alternative suggestion to resolve my issue

Edited by Megalithic1
Link to comment
Share on other sites

You may have your STS Modules misconfigured in the admin.

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

 

Hi Bill Kellum,

 

Thanks for the prompt respond..

 

Yes indeed it was a broken mini_search.php that caused the page not showing.

 

What I did was to reduplicate from search.php to make a new mini_search.php..

 

then I remove a line of code at a time and tested the template (until I got what I wanted, the search box with just the seach field and search icon-- no infobox header or advance search text)

 

<!-- mini_search //-->	 
<?php
//  $info_box_contents = array();
//  $info_box_contents[] = array('text' => BOX_HEADING_SEARCH);
//  new infoBoxHeading($info_box_contents, false, false);
 $info_box_contents = array();
 $info_box_contents[] = array('form' => tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'),
						   'align' => 'center',
						   'text' => tep_draw_input_field('keywords', '', 'size="8" maxlength="40" style="width: ' . (BOX_WIDTH-40) . 'px"') . ' ' . tep_hide_session_id() . tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH));
 new infoBox($info_box_contents);
?>   
<!-- mini_search_eof //-->

 

both sts_user_code.php and sts_column_left.php works fine for custom placeholder : )

 

I've managed to get the mini_search.php to show in the template now : )

 

--> However, even when I remove all the codes from mini_search.php it still shows a info box styled box with background colour and border which dont fit into the template.

 

Question:

How can I make mini_search.php appear without the usual infobox style?

(editing .infoBox and .infoBoxContents in stylesheet.css cause changes to all infoboxes, but I only want to effect the style change on mini_search.php)

 

many thanks :)

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