Jump to content
DiamondSea

[contribution] Simple Template System (sts)

Recommended Posts

I seem to have something recursive in my STS installation, but I can't find it.

 

When I turn on STS templates, I get the following message which goes away as soon as I turn it off again.

 

Fatal error: Cannot redeclare clean_html_comments() (previously declared in /............/catalog/includes/functions/clean_html_comments.php:13) in /............/catalog/includes/functions/clean_html_comments.php on line 13

 

Could someone give me a clue as to what I did?

 

Thank you


Just between us, remember there are only 10 kinds of people in the world; those who understand binary and those who don't!!

 

Remember, learning is a "do-it-yourself" experience; although, not necessarily a "do-it-BY-yourself" experience.

 

The quickest way to learn is to forget to BACKUP!

Share this post


Link to post
Share on other sites

Help me out with this?

 

Error Message:

//START STS 4.1 define('BOX_MODULES_STS', 'STS'); //END STS 4.1

Warning: Cannot modify header information - headers already sent by (output started at /web/mall/bcdbsadmin/includes/languages/english.php:312) in /web/mall/bcdbsadmin/includes/functions/general.php on line 22

 

Glancing back, there are errors all over the place..

 

http://birdcrazy.com/mall/index.php

Edited by maaaaxxx

Share this post


Link to post
Share on other sites

Hi Guys, I'm new to all this but finding my feet slowly but surely. Basically I've taken over the running of an MP3 Download store and we're looking to redesign it.

 

the address is www.vcmp3.com

 

Perhaps any experts out there could breakdown how that particular design may have been constructed?

 

Right, firstly, is it possible to make a new version of this site using STS - and then once everything is sorted design-wise, Simply import the exisiting customer / product database to the new design?

 

Secondly, When playing around with the sts_template.html page, i couldn't quite follow the instructions.

 

Say if I built an html page (similar to the original osCommerce look) and wanted the categories box in the same place, What code would I place in the table cell in dreamweaver?

 

As im more of a designer, when it comes to more complicated HTML / PHP, i am struggling. Ideally i'm looking to be able to design the html template inclusive of all graphics, and then simple place the placeholders where the certain boxes need to be. I reckon however that's wishful thinking.

 

I appreciate thats a lot of text, so any help will be most appreciated, and if anyone wants any help in Photoshop, then feel free to ask.

 

Best regards,

Luke

 

P.S - apologies to originall posting this is the wrong location.

Share this post


Link to post
Share on other sites

First, I want to thank Bill and all those who have contributed to STS. I love it.

 

I could use some help with a minor issue that I cannot seem to figure out.

 

I have the site hosted at 1and1 and I have found and applied the "change 'on' to '1' fix" for SSL and 1and1 web hosting.

 

Tonight I updated to STS v4.5.8 and I'm running RC1 to see if that would resolve the issue.

 

When I am using SSL without STS enabled all is fine. As soon as I enable STS I start getting the "This Page Contains both Secure and Nonsecure Items" warning message. If I tell it to display the nonsecure items I get the page displayed correctly. If I tell it to only display the secure items, non of the graphics show up, including the background image.

 

The entire site is ran on .html.php replacement pages/templates.

 

Has anyone else seen this?

 

The only other module I have installed is PayPal.

 

Thanks in advance,

 

-Jim

Share this post


Link to post
Share on other sites
First, I want to thank Bill and all those who have contributed to STS. I love it.

 

I could use some help with a minor issue that I cannot seem to figure out.

 

I have the site hosted at 1and1 and I have found and applied the "change 'on' to '1' fix" for SSL and 1and1 web hosting.

 

Tonight I updated to STS v4.5.8 and I'm running RC1 to see if that would resolve the issue.

 

When I am using SSL without STS enabled all is fine. As soon as I enable STS I start getting the "This Page Contains both Secure and Nonsecure Items" warning message. If I tell it to display the nonsecure items I get the page displayed correctly. If I tell it to only display the secure items, non of the graphics show up, including the background image.

 

The entire site is ran on .html.php replacement pages/templates.

 

Has anyone else seen this?

 

The only other module I have installed is PayPal.

 

Thanks in advance,

 

-Jim

 

Jim,

Not caused by STS, but rather this is most likely due to how your image links have been created in your templates. You should use relative links not absolute links such as http://blah.com/images/blah.gif, make them like /images/blah.gif


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 want to try out STS. But I have made many changes to the OSCommerce Online Merchant with CSS. Will installing STS change everything? Or I replace everything except the CSS file?

 

Pls reply. Thanks.

Edited by shounakgupte

Share this post


Link to post
Share on other sites
Jim,

Not caused by STS, but rather this is most likely due to how your image links have been created in your templates. You should use relative links not absolute links such as http://blah.com/images/blah.gif, make them like /images/blah.gif

Bill,

 

Thanks for the quick reply. I have been through my main template and cannot seem to find an issue that would make all images disappear when IE is told not to disply nonsecure items. Maybe I can get another opinion on my template. Here is the code:

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html $htmlparams>
<head>
<meta name="verify-v1" content="sL/EJN2KZMspvr98qmMykfXPeQCOA5HlJhBMGcY5/t4=" />
<meta name="description" content="ToroStam™ is a unique Male Enhancement Supplement that provides powerful results in three areas of sexual satisfaction – Desire, Stamina, and Growth!">
<meta name="keywords" content="Male Enhancement, male supplements, male enhancement ratings, natural male enhancement, Female Libido, Male Libido, sexual enhancement">
<meta http-equiv="Content-Language" content="en-us">
<!--$headcontent-->
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
 var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
   d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
 if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
 for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
 if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
  if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
</head>
<body background="../../../images/background.jpg" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('../../../flash/male-enhancement-button2.png','../../../images/torostam/male-enhancement-button2.gif')">
<table width="960" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
 <td><table width="960" border="0" cellspacing="0" cellpadding="0">
   <tr>
    <td><a href="../../../index.php"><img src="../../../images/navigation/male-enhancement.png" alt="ToroStam - Advanced Male Enhancement Supplement" width="240" height="162" border="0"></a></td>
    <td valign="bottom" background="../../../images/navigation/black.png"><img src="../../../images/torostam/clear.gif" width="520" height="1"></td>
    <td><a href="../../../guarantee.php"><img src="../../../images/navigation/male-enhancement-guarantee-top.png" alt="Our Male Enhancement 100% Satisfaction Guarantee" width="200" height="162" border="0"></a></td>
   </tr>
   <tr>
    <td colspan="2" align="center" background="../../../images/navigation/blue.jpg">
     <table width="700" border="0" cellspacing="0" cellpadding="0">
   <tr>
    <td><a href="../../../faqs.php">FAQ's</a> | <a href="http://www.torostam.com/buy_torostam.php">Order ToroStam</a> | <a href="../../../supplement_facts.php">Proprietary Blend</a> | $cartcontents</td>
   </tr>
  </table></td>
    <td><img src="../../../images/navigation/male-enhancement-guarantee-bottom.jpg" width="200" height="19"></td>
   </tr>
  </table>
  <table width="960" border="0" cellspacing="0" cellpadding="0">
   <tr>
    <td><table width="100%" border="0" cellpadding="0" cellspacing="0" background="../../../images/torostam/body-background.jpg">
      <tr>
       <td align="right" valign="top">
        <table width="960" border="0" cellspacing="0" cellpadding="0">
         <tr>
          <td align="center" valign="top"><font color="#FFFFFF">$content</font>					<a href="../../../buy_torostam.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('MaleEnhancement6','','../../../images/torostam/male-enhancement-button2.gif',1)"><br>
				 <br>
				 </a><br>
				 <br>
				</td>
         </tr>
         <tr>
          <td align="center" background="../../../images/torostam/blue-navigation.jpg">$myaccountlogoff | <a href="../../../privacy.php">Privacy Notice</a> | <a href="../../../faqs.php">FAQ's</a> | <a href="../../../customer_reviews.php">Testimonials</a> | <a href="../../../guarantee.php">Our Guarantee</a> | <a href="../../../shipping.php">Shipping</a> | <a href="../../../contact_us.php">Contact Us</a></td>
         </tr>
        </table>
       </td>
      </tr>
     </table>
    </td>
   </tr>
  </table>
    <table width="960" border="0" cellspacing="0" cellpadding="0">
   <tr>
    <td align="center"><font color="#FFFFFF"> <br>
     Copyright 2006-2007 Triton Supplements LLC<br>
     <font size="1" face="Verdana, Arial, Helvetica, sans-serif">These statements have not been evaluated by the Food and Drug Administration. This product is not intended to diagnose, treat, cure, or prevent any disease.</font> <br>
     <br>
     <br>
    </font></td>
   </tr>
  </table>
</td>
</tr>
</table>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-1589139-2";
urchinTracker();
</script>
</body>
</html>

 

The webiste address is http://www.ToroStam.com

 

Can be viewed over SSL at https://www.ToroStam.com

 

Thanks again,

 

-Jim

Share this post


Link to post
Share on other sites
I want to try out STS. But I have made many changes to the OSCommerce Online Merchant with CSS. Will installing STS change everything? Or I replace everything except the CSS file?

 

Pls reply. Thanks.

STS allows you to use the default CSS file or as many CSS files that you want.

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

Jim,

I did not go to your site but the code that you posted shows that you are using some type of image loader that could be causing your problems. Also, you links seemed cryptic so I was not able to tell if they were absolute or relative. Sorry.


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, I'm new to all this but finding my feet slowly but surely. Basically I've taken over the running of an MP3 Download store and we're looking to redesign it.

 

the address is www.vcmp3.com

 

Perhaps any experts out there could breakdown how that particular design may have been constructed?

 

Right, firstly, is it possible to make a new version of this site using STS - and then once everything is sorted design-wise, Simply import the exisiting customer / product database to the new design?

 

Secondly, When playing around with the sts_template.html page, i couldn't quite follow the instructions.

 

Say if I built an html page (similar to the original osCommerce look) and wanted the categories box in the same place, What code would I place in the table cell in dreamweaver?

 

As im more of a designer, when it comes to more complicated HTML / PHP, i am struggling. Ideally i'm looking to be able to design the html template inclusive of all graphics, and then simple place the placeholders where the certain boxes need to be. I reckon however that's wishful thinking.

 

I appreciate thats a lot of text, so any help will be most appreciated, and if anyone wants any help in Photoshop, then feel free to ask.

 

Best regards,

Luke

 

P.S - apologies to originall posting this is the wrong location.

Luke, STS does exactly what you are hoping it would.

 

First off, the link shows a design that is fairly simple and can be (or was) done using STS. The infoboxes appear to be using a header graphic and the rest is placed in a cell with a gray background color. Dead simple.

 

If the site is not already a STS template, then you would want to read through the following link on how to convert a purchased osCommerce template into a STS template:

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


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
Help me out with this?

 

Error Message:

//START STS 4.1 define('BOX_MODULES_STS', 'STS'); //END STS 4.1

Warning: Cannot modify header information - headers already sent by (output started at /web/mall/bcdbsadmin/includes/languages/english.php:312) in /web/mall/bcdbsadmin/includes/functions/general.php on line 22

 

Glancing back, there are errors all over the place..

 

http://birdcrazy.com/mall/index.php

Max,

I went to your site and it appears you got it worked out since I did not see any error messages.


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 seem to have something recursive in my STS installation, but I can't find it.

 

When I turn on STS templates, I get the following message which goes away as soon as I turn it off again.

 

Fatal error: Cannot redeclare clean_html_comments() (previously declared in /............/catalog/includes/functions/clean_html_comments.php:13) in /............/catalog/includes/functions/clean_html_comments.php on line 13

 

Could someone give me a clue as to what I did?

 

Thank you

Hello Ralph,

Do you have Header Tags Controller installed as well?

Be sure you have the following line of code at the beginning of your includes/header_tags.php file:

 

require_once(DIR_WS_FUNCTIONS . 'clean_html_comments.php');

 

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

Bill, thanks for the reply.

 

To verify all was working as planned here is what I did...

 

First, I changed my templates to the Full set that you provided and proceeded to test the site.

 

All was working fine.

 

Second step was to dig even deeper into the code to figure out what was the cuplrit.

 

This is what I found...

 

1. Somehow this code ended up in my template. in the Head Section.

 

<base href="http://www.torostam.com/">

 

I changed this to:

 

<base href="https://www.torostam.com/">

 

If anyone can tell me what this code is used for, that would be great.

 

This fix allowed almost all of the images to show up.

 

2. I had to change this code for Flash from:

 

   <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="500" height="142">
   <param name="movie" value="../../../flash/male-enhancement-banner.swf">
   <param name="quality" value="high">
   <embed src="../../../flash/male-enhancement-banner.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="500" height="142"></embed>
  </object> 

 

to:

 

   <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="500" height="142">
   <param name="movie" value="../../../flash/male-enhancement-banner.swf">
   <param name="quality" value="high">
   <embed src="../../../flash/male-enhancement-banner.swf" quality="high" pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="500" height="142"></embed>
  </object> 

 

Allowing Flash to call the HTTPS:// site for the plugins.

 

This allowed the flash items on the pages to work.

 

3. I had to change this code for Google Analytics:

 

From:

 

<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-1589139-2";
urchinTracker();
</script>

 

To:

 

<script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-1589139-2";
urchinTracker();
</script>

 

I hope this helps anyone else that may be having issues.

 

Also If you are hosting on 1and1.com you do have to make this final change:

 

in Catalog/includes/application_top.php around line 42 Find:

 

// set the type of request (secure or not)
 $request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL';

 

And replace with:

 

// set the type of request (secure or not)
 $request_type = (getenv('HTTPS') == '1') ? 'SSL' : 'NONSSL';

 

And now all is working GREAT!!!

 

Thank you for such a great contribution.

 

-Jim

 

Jim,

I did not go to your site but the code that you posted shows that you are using some type of image loader that could be causing your problems. Also, you links seemed cryptic so I was not able to tell if they were absolute or relative. Sorry.

Share this post


Link to post
Share on other sites
Bill, thanks for the reply.

 

To verify all was working as planned here is what I did...

 

First, I changed my templates to the Full set that you provided and proceeded to test the site.

 

All was working fine.

 

Second step was to dig even deeper into the code to figure out what was the cuplrit.

 

This is what I found...

 

1. Somehow this code ended up in my template. in the Head Section.

 

<base href="http://www.torostam.com/">

 

I changed this to:

 

<base href="https://www.torostam.com/">

 

If anyone can tell me what this code is used for, that would be great.

 

This fix allowed almost all of the images to show up.

 

And now all is working GREAT!!!

 

Thank you for such a great contribution.

 

-Jim

Jim, This attribute specifies the base URL to be used throughout the document for relative URL addresses.


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
Jim, This attribute specifies the base URL to be used throughout the document for relative URL addresses.

 

Bill,

 

Thanks again for the quick reply. I hope you can help me figure this one out.

 

I have installed Google Checkout and tested with out the templates turned on. When I turn the templates on and try to complete the purchase I get an error. After checking out with Google , goolge calls gc_return.pgp to come back to the site to thank them for the purchase.

 

The error I get is:

 

1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') and pd.products_id = p.products_id and pd.language_id = '1'' a

select p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id from products p, products_description pd where p.products_status = '1' and p.products_id in () and pd.products_id = p.products_id and pd.language_id = '1'

[TEP STOP]

 

I did find another post that talked about a heavily modded site and to change the $data to $gc_data in gc_return.php. I made that change and found that it did not solve the issue.

 

Would you by chance know if there are any other $calls that may be configured in both contibutions? I have been looking but have not found any. gc_return.php calls for application_top.php.

 

Any help would be greatly appreciated.

 

If I find the answer I will post it here.

 

Best Regards,

 

-Jim

Share this post


Link to post
Share on other sites

STS & OSC Webmakers Edition

 

How (or what) can i modify to make STS work with the webmakers edition ?

I`m having trouble with the incuded addaon "MO Pics" from the webmakers edition.

 

Small product images (only 1 /product) are visible, but the javascript to open the bib image does not work.

further there is only 1 image available - webmakers ed. supports up to 6 images...

 

Any idea what to modify ?

:'(


OSC Webmakers Edition modiefied with many other contribs and enhancements.

+ STS 4.5.7 for 2.2MS2 and RC1

Share this post


Link to post
Share on other sites

Hello there im using STS system but i want to know how i can remove the search table and just get input from it

 

i dont like to use tables i'm using DIV in my designs

 

i went to includes\boxes\search.php

 

i found only the <tr>

 

where i can fine the table that hold the boxes??

Share this post


Link to post
Share on other sites
STS & OSC Webmakers Edition

 

How (or what) can i modify to make STS work with the webmakers edition ?

I`m having trouble with the incuded addaon "MO Pics" from the webmakers edition.

 

Small product images (only 1 /product) are visible, but the javascript to open the bib image does not work.

further there is only 1 image available - webmakers ed. supports up to 6 images...

 

Any idea what to modify ?

:'(

Are you referring to CreLoaded edition of OsCommerce? If so, then STS will not work for that addition since CreLoaded has completely modified the code in a way to make it impossible. :(


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 there im using STS system but i want to know how i can remove the search table and just get input from it

 

i dont like to use tables i'm using DIV in my designs

 

i went to includes\boxes\search.php

 

i found only the <tr>

 

where i can fine the table that hold the boxes??

Well,

It would probably just be easier to create your own search form. Here is a copy of one that I use and you can simply modify it to work in your DIV:

 

<div align="right">
<table width="" cellspacing="0" cellpadding="0" border="0">
<tr><form name="advanced_search" action="./advanced_search_result.php" method="get">
<td bgcolor="#bcbcbc">
<table width="100%" cellpadding="0" cellspacing="0" bgcolor="white">
<tr>
<td class="navigation"> </td>
<td align="center"><input type="hidden" name="search_in_description" value="1"><input type="hidden" name="inc_subcat" value="1" 1><input type="text" name="keywords" size="20" maxlength="30" class="searchForm" style="width: 95px"></td>
<td align="center"> <input type="image" src="$templatedir/images/english/buttons/button_search.gif" border="0" alt="Search" title=" Search " name="Search"></td>
</tr>
</table>
</td>
</form></tr>
</table>
</div>

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
Are you referring to CreLoaded edition of OsCommerce? If so, then STS will not work for that addition since CreLoaded has completely modified the code in a way to make it impossible. :(

 

 

No - It´s the version of "thewebmakerscorner.com" (Linda McGrath = ZEN CART)

Find the documentation here:

http://www.webmakers.com/secms2/docs/

 

Demo-shop is to see here:

http://www.webmakers.com/secMS2demo

 

Download Version here:

http://www.thewebmakerscorner.com/freecall...products_id=130

Edited by runweb

OSC Webmakers Edition modiefied with many other contribs and enhancements.

+ STS 4.5.7 for 2.2MS2 and RC1

Share this post


Link to post
Share on other sites
Bill,

 

Thanks again for the quick reply. I hope you can help me figure this one out.

 

I have installed Google Checkout and tested with out the templates turned on. When I turn the templates on and try to complete the purchase I get an error. After checking out with Google , goolge calls gc_return.pgp to come back to the site to thank them for the purchase.

 

The error I get is:

 

1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') and pd.products_id = p.products_id and pd.language_id = '1'' a

select p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id from products p, products_description pd where p.products_status = '1' and p.products_id in () and pd.products_id = p.products_id and pd.language_id = '1'

[TEP STOP]

 

I did find another post that talked about a heavily modded site and to change the $data to $gc_data in gc_return.php. I made that change and found that it did not solve the issue.

 

Would you by chance know if there are any other $calls that may be configured in both contibutions? I have been looking but have not found any. gc_return.php calls for application_top.php.

 

Any help would be greatly appreciated.

 

If I find the answer I will post it here.

 

Best Regards,

 

-Jim

 

 

After many hours of research I have discovered that with the template system turned on, you cannot use the gc_return.php file that Google Checkout provides. Although calling that file works great in a standard osCommerce install, you have to use the checkout_success.php file to return to. While in a stock install, this file (checkout_success.php) does not empty the shopping cart after a successful checkout with google checkout - so you have to us gc_return.php - checkout_success.php works just fine with STS 4.5.8 enabled.

 

Bill - Thanks agin for a wonderful contribution. Yo have saved me many hours of coding to get my site looking just the way my client wanted it, and I was able to meet their budget.

 

To see the completed site, please check out http://www.torostam.com. You would be hard to be convinced that it is running on an osCommerce backend.

 

Best Regards,

 

-Jim

Share this post


Link to post
Share on other sites
After many hours of research I have discovered that with the template system turned on, you cannot use the gc_return.php file that Google Checkout provides. Although calling that file works great in a standard osCommerce install, you have to use the checkout_success.php file to return to. While in a stock install, this file (checkout_success.php) does not empty the shopping cart after a successful checkout with google checkout - so you have to us gc_return.php - checkout_success.php works just fine with STS 4.5.8 enabled.

 

Bill - Thanks agin for a wonderful contribution. Yo have saved me many hours of coding to get my site looking just the way my client wanted it, and I was able to meet their budget.

 

To see the completed site, please check out http://www.torostam.com. You would be hard to be convinced that it is running on an osCommerce backend.

 

Best Regards,

 

-Jim

 

Jim, It looks great! Good Job in implementing osCommerce and STS into your design. :thumbsup:


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
Simple Template System (STS) README.txt v1.3

Contribution Author: Brian Gallagher @ DiamondSea.com

Contribution Author Email: brian@diamondsea.com

 

-----------------------------------------------------------------------------

WHAT IT DOES:

-----------------------------------------------------------------------------

Lets you create simple HTML templates to customize the look and feel of OSC.

 

You simply create an HTML page that looks the way you want it to and put in

placeholders for the various elements wherever you want to position them.

 

For example, you would put "$cartbox" wherever on the page you want the

Shopping Cart box to appear. Put "$categorybox" where you want the Categories

box to appear. Put "$content" wherever you want the main page

content (the central part where all the magic happens) to appear, etc.

 

It does this by changing only a few /catalog/includes/ files, leaving all

other files untouched, making it easy to add other contributions later.

 

-----------------------------------------------------------------------------

BONUS FEATURES: Simple HEADER TAG CONTROLLER Integration

-----------------------------------------------------------------------------

This contribution also allows you to use WebMakers.com's

Header Tag Controller contribution without having to modify every file on

the system. Just copy the Header Tag Controller's include files into place

and STS will automatically add them to all pages without having to modify

every PHP script in the /catalog/ directory.

 

STS will auto-detect if Header Tag Controller is installed and use it if

available.

 

-----------------------------------------------------------------------------

HOW TO INSTALL:

-----------------------------------------------------------------------------

 

Installation Instructions are found in the readme.txt file included in the package. Please read the readme.txt file for a list of installation instructions, new features, new variables and other enhancements to STS.

-----------------------------------------------------------------------------

HOW TO USE:

-----------------------------------------------------------------------------

Just modify the

 

/catalog/includes/sts_template.html

 

file to look however you want. Use stylesheet settings or HTML setting to

provide a custom look and feel to your site and arrange elements wherever you

like them.

 

-----------------------------------------------------------------------------

SUPPORTED TAGS:

-----------------------------------------------------------------------------

Here are the tags that are supported so far (more sure to come in later

versions):

 

$headcontent: Put this string in your <head> section so that it can insert

the dynamic head content and javascript on pages that require it. This will

probably require putting the $headcontent in the <head> section in the source

code. It's a pain to do it this way, but it was the only way I could get it

working. Sorry!

 

<!--$headcontent--> : You can use this commented format of $headcontent to

keep the word "$headcontent" from displaying in your web authoring software.

 

NOTE: Do not put <title>...</title> tags in your header. It will be added

as part of the $headcontent variable, along with the Description and Keywords

meta tags if you have the WebMakers.com's Header Tag Controller contribution

installed.

 

$cataloglogo: The OSC logo and link

$urlcataloglogo: The URL used by the $catalog logo.

$myaccountlogo: The MyAccount graphic and link

$urlmyaccountlogo: The URL used by the My Account function

$cartlogo: The Cart graphic and link

$urlcartlogo: The URL used by the Cart function

$checkoutlogo: The Checkout graphic and link

$urlcheckoutlogo: The URL used by the Checkout function

$breadcrumbs: The "Top > Catalog > whatever..." breadcrumbs text and links

$myaccount: The text version of "My Account" and link. Changes to "Logoff" if logged on.

$urlmyaccount: The URL used by the MyAccount function.

$cartcontents: The text version of the "Cart Contents" function.

$urlcartcontents: The URL used by the MyAccount function.

$checkout: The text version of the "Check Out" function.

$urlcheckout: The URL used by the "Check Out" function.

 

$categorybox: The Category box

$manufacturerbox: The Manufacturer box

$whatsnewbox: The What's New box

$searchbox: The Search box

$informationbox: The Information box

$cartbox: The Shopping Cart box

$maninfobox: The Manufacturer Info box (blank if not used on a page)

$orderhistorybox: The Order History box (blank if not used on a page, ie: use not logged in)

$bestsellersbox: The Best Sellers box

$specialfriendbox: Either the Specials box or the Tell A Friend box (depending on page viewed)

$reviewsbox: The Reviews box

$languagebox: The Languages box

$currenciesbox: The Currencies box

$content: The main content of the page (the middle of the page)

$date: The current date

$numrequests: The "XXX requests Since DATE" text

$counter: The page view counter

$footer: The footer output from footer.php

$banner: The banner output from footer.php

 

$sid: The string for the Session ID in the format "SessionIdVarName=WhateverTheSessionIdIs"

-----------------------------------------------------------------------------

DEBUGGING:

-----------------------------------------------------------------------------

In the /catalog/includes/application_bottom.php file you can see the

following settings (near the top of the file):

 

$display_template_output = 1;

$display_normal_output = 0;

$display_debugging_output = 0;

 

Display_Template_Output (the default setting) will cause it to display the

template versions of the pages.

 

Display_Normal_Output will cause it to display the non-template version of

the pages.

 

Display_Debugging_Output will cause it to display debugging information

showing all of the blocks of data that it is using and how it translates

them into template variables.

 

You can use any or all of the settings in any combination. If you have both

Normal and Template output, the Template output will be displayed first.

 

-----------------------------------------------------------------------------

REMOTE DEBUGGING:

-----------------------------------------------------------------------------

You can toggle the debugging options via URL options. You can use the

following parameters in your URL to turn on/off options from your browser

 

sts_template=1 Turns on the Template display

sts_template=0 Turns off the Template display

sts_normal=1 Turns on the Normal display

sts_normal=0 Turns off the Normal display

sts_debug=1 Turns on the Debugging display

sts_debug=0 Turns off the Debugging display

sts_version=1 Turns on Version Number display

sts_version=0 Turns off Version Number display

 

-----------------------------------------------------------------------------

SUPPORT:

-----------------------------------------------------------------------------

 

For support, please post to this thread.

I have been looking for something like this. I am having hard tome to play with the CSS file and template...Any demo using "Simple Template System"

-----------------------

Ok i saw jacksmith's demo... any other sample...

 

Thanks

Edited by Timu

Share this post


Link to post
Share on other sites

this has probably been ask a 1000 time, but there is 207 pages on this post, after spending few hours trying different thing, I ask the question !

 

I have a very nice functioning sts oscommerce, but I cannot find a sts way to modify the shopping_cart page

 

when the cart is empty, I can use template/boxes/catalog_shopping_cart.php.html, but if I have items in the shopping_cart, it takes only modification from catalog/shopping_cart.php and this is ugly

 

so does any one know a way to create a template for the shopping_cart page with items ??

 

thanks

 

reup

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

×