Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[contribution] Simple Template System (sts)


DiamondSea

Recommended Posts

STS and the wishlist contribution. I think I'm really close to solving this problem I had with the wishlist Here is the code that i added in my Productinfo.php.html page:

 

<form name="wishlist_quantity" action="http://www.mysite.com/wishlist.php/cPath/$cPath/products_id/$productid/action/add_wishlist" method="post"> 
          <input type="hidden" name="products_id" value="$productid"><input type="image" src="includes/languages/english/images/buttons/button_wishlist.gif" border="0" alt="Add to Wishlist" title=" Add to Wishlist ">

 

well so far no errors get reported or anything but theres one problem, it goes to the wishlist but does not add the product to the wishlist. any ideas anyone.

 

Brian if your'e reading this im sure you have a solution. :-) thanks in advance

Link to comment
Share on other sites

I'm having some trouble setting up customized tags

 

I have no trouble using $about_us that I created to link to about_us.php in sts_template.html but if I use it on mainpage.php it does'nt work.

 

I'm using define mainpage contribution.

 

Is there any way to fix this? (mod. the sts_product_info.php or something to sts_mainpage.php?)

 

Hope you understand my question

Link to comment
Share on other sites

STS Slowdown question:

 

Just a thought off the top of my head to the few people who said STS was slowing down the rendering of their pages:

 

Do you have Width=XX and Height=XX tags on all your images? If not, it will cause your browser to have to download all images before it can render the page layout.

 

Just a thought...

 

- Brian

Simple Template System (STS)

Layout your site with 1 (or more) HTML file!

Download STS: http://www.oscommerce.com/community/contributions,1524

Support: http://www.oscommerce.com/forums/index.php?showtopic=58541

Link to comment
Share on other sites

IS there a limit to collum box captures ?

 

I have an odd problem with the STS when including The FAQ Desk contrib.

 

When I put,

 

include(DIR_WS_BOXES . 'faqdesk.php');

 

// STS: ADD

$sts_block_name = 'faqdeskbox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

include(DIR_WS_BOXES . 'faqdesk_latest.php');

 

// STS: ADD

$sts_block_name = 'faqdesklatestbox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

in the right collum the faqdeskbox which is the catagories listing has blank contents but the heading shows up and the faqdesklatestbox is ok. If I put both of the above in the left collum it displays correctly, also if I put the faqdeskbox in the left collum and the faqdesklatestbox in the right the contents will display correctly.

 

Any thoughts ?

 

DVBHardware.com

I'm not a coder just a splicer.

Link to comment
Share on other sites

To elaborate a little more, I installed everything, updated the configure.php file and whjen I view the sts_templates.html file, I don't se a default looking cart. All I see is the $declarations in tables.

 

If you view the link, you'll see it.

 

http://www.advanceg.com/cart/catalog/inclu...s_template.html

Does no one know the answer to this?

Link to comment
Share on other sites

To elaborate a little more, I installed everything, updated the configure.php file and whjen I view the sts_templates.html file, I don't se a default looking cart. All I see is the $declarations in tables.

 

If you view the link, you'll see it.

 

http://www.advanceg.com/cart/catalog/inclu...s_template.html

Does no one know the answer to this?

umm, simple really. You're viewing the HTML and it will only show what is in the HTML file. View any PHP file and it''ll use the HTML and render the PHP code corectly.

Link to comment
Share on other sites

To elaborate a little more, I installed everything, updated the configure.php file and whjen I view the sts_templates.html file, I don't se a default looking cart. All I see is the $declarations in tables.

 

If you view the link, you'll see it.

 

http://www.advanceg.com/cart/catalog/inclu...s_template.html

Does no one know the answer to this?

umm, simple really. You're viewing the HTML and it will only show what is in the HTML file. View any PHP file and it''ll use the HTML and render the PHP code corectly.

It looks like you have the template display turned off.

 

I tried forcing the "template" display on, and the "normal" display off like this:

 

http://www.advanceg.com/cart/catalog/index...=1&sts_normal=0

 

and it seems to work correctly.

 

You probably need to go into sts_display_output.php and change the settings for $display_normal_output (set to 0) and $display_template_output (set to 1).

 

See if this fixes things for you.

 

- Brian

Simple Template System (STS)

Layout your site with 1 (or more) HTML file!

Download STS: http://www.oscommerce.com/community/contributions,1524

Support: http://www.oscommerce.com/forums/index.php?showtopic=58541

Link to comment
Share on other sites

It looks like you have the template display turned off.

 

I tried forcing the "template" display on, and the "normal" display off like this:

 

http://www.advanceg.com/cart/catalog/index...=1&sts_normal=0

 

and it seems to work correctly.

 

You probably need to go into sts_display_output.php and change the settings for $display_normal_output (set to 0) and $display_template_output (set to 1).

 

See if this fixes things for you.

 

- Brian

NB: Nothing but broken image placements for me.

Link to comment
Share on other sites

wonderlnet here is the url for your images

http://www.advanceg.com/cart/catalog/images/iface4_07.gif

I think it should be in

http://www.advanceg.com/catalog/images/iface4_07.gif

I suggest u move your /catalog folder to

http://www.advanceg.com/cart/

 

I hope this helps ( may be not .. lol )

but I do think u have a url of image referencing problem

Link to comment
Share on other sites

To elaborate a little more, I installed everything, updated the configure.php file and whjen I view the sts_templates.html file, I don't se a default looking cart. All I see is the $declarations in tables.

 

If you view the link, you'll see it.

 

http://www.advanceg.com/cart/catalog/inclu...s_template.html

Does no one know the answer to this?

umm, simple really. You're viewing the HTML and it will only show what is in the HTML file. View any PHP file and it''ll use the HTML and render the PHP code corectly.

It looks like you have the template display turned off.

 

I tried forcing the "template" display on, and the "normal" display off like this:

 

http://www.advanceg.com/cart/catalog/index...=1&sts_normal=0

 

and it seems to work correctly.

 

You probably need to go into sts_display_output.php and change the settings for $display_normal_output (set to 0) and $display_template_output (set to 1).

 

See if this fixes things for you.

 

- Brian

THANK YOU!

 

I know the images don't work, that's an easy fix.

 

Awesome contribution!

Link to comment
Share on other sites

ERROR IN STS?

Problems with the "Best Sellers" box and STS:

 

For some reason every time you click on a link in the best sellers box on my store to view a product, STS won't parse the product_info.php.html correctly. It will show the page right, but then all links on that page that go other place are all messed up.

 

For example, if I had a varaible that creates a url to a category, such as "$urlcat_1", and I place that somewhere on my default product_info.php.html page, then when the page is called via the best sellers box that link will show up as "http://www.mywebsite.com/index.php/cPath/0_2?osCsid=...".

Notice how the url has the cPath as "0_2" instead of just "2"! Also, some variables don't even parse at all and show up in the final page like: "http://www.mywebsite.com/$urlcat_30" with no session id!

 

It only does this when I try to access these pages via the bestsellers box. Otherwise, the product_info pages parse fine. What could the problem be? Is this an error in STS?

Link to comment
Share on other sites

Great Template System...

 

Seems to work great on the index.php page but when I click on something like 'My Account' the template "explodes".

 

Heres an example... www.golfsbestdeal.com/wed (this is my testing site).

 

(And yes I know it looks like crap right now just trying to get sts working correctly)

 

Click on the above link then click on 'my account'...

 

Can anyone direct me to the answer? I installed the latest version of sts and I'm only using 1 template.

 

Thanks in advance!

Link to comment
Share on other sites

Brian,

I found a problem using the latest version of Authorizenet Consolidated v17 and the Download_Controllev5.3 MS2.2 in conjuction with the STS

 

When ever you get to checkout_payment.php all the graphics of the infoboxes would revert to the default OSC colors. This only happens when purchacing a download, It does not happen when purchasing any other product.

 

I tried to comment it out but the problem is still there. The only way to fix it is to delete it. As long as the word "script" is there the problem stays.

 

 

catalog/checkout_payment.php with the above 2 contribs installed withe the STS

 

Aprox Line 86

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

<html <?php echo HTML_PARAMS; ?>>

<head>

-------------------------Begin Delete--------------------------

<script language="javascript" type="text/javascript">!--

/********************************

* Addition for Authorize.net Consolidated

* by Austin519 - CVV PopUp Window

* If using a custom checkout_payment.php

* paste the following lines into your file

********************************/

function CVVPopUpWindow(url) {

window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,res

izable=no,copyhistory=no,width=600,height=233,screenX=150,screenY=150,top=150,lef

t=150')

}

//--></script>

-------------------------End Delete--------------------------

 

Is there aay to fix this ? It is for poping a window to show examples of where the 4 digit card verification number is.

 

I searched a lot for a fix but none available.

I'm not a coder just a splicer.

Link to comment
Share on other sites

Hi,

 

I have successfully installed the STS system v2.01, and it sort of "works", but just the "Catalog" pulldown box is displayed, none of the other boxes ... :(

 

In the source of the page, I can see just the comments of the other boxes, like

<!-- start languagebox //-->

<!-- end languagebox //-->
<!-- start currenciesbox //-->

<!-- end currenciesbox //-->

 

Any idea what might have gone wrong?

 

thanks

richey

Link to comment
Share on other sites

Hi,

 

does anybody know how to use the session id tag ($sid) ?

I added some links on different sides to special products and after puting one in the cart trying to put a second product into the cart I lose the session id...

 

thanks in advance for a hint.

 

byps

Link to comment
Share on other sites

Again Hi,

 

trying to solve the previous problem, I wanted to use sts tags for Categories.

using $cat_x_y I get the message of parse error :

 

session_start(): The session id contains invalid characters, valid characters are only a-z, A-Z and 0-9 in C:\apache\htdocs\catalog\includes\functions\sessions.php on line 67

 

the last cPath id $cat_x_41 is written after the session id.

 

Does anybody know the reason of this? What?s wrong ?

 

 

thanks in advance for answer.

 

regards from cologne- Germany

byps

Link to comment
Share on other sites

i have a similar problem, is there a way that I can link the main category from the product info page to create a link something like this:

 

see more products from [category name] I thought it would be possible by using the $cat and $cPath but that hasnt worked yet, if anyone has any ideas please let me know

Link to comment
Share on other sites

I have STS installed on MS2.2. It works great on anything. Except

 

when I enable low order fee for the admin/module/order total, the low order fee did not kick in.

 

Is STS do anything which effect the low order fee to function?

 

Thanks.

Link to comment
Share on other sites

I accidentally created a new topic for my STS question. I am posting it here again:

___________________________________________________________

 

Hi,

 

I just installed STS on my local PC, and I don't seem to be able to override pages by putting the template on the /includes/sts_templates directory. All the pages display the default template sts_template.html, even though I have a template defined in the includes/sts_templates directory.

 

Has anyone else had this problem. I am thinking there is just a small setting that I need to change (its not the setting on sts_display_output.php . I already tried it).

 

I have a very tight deadline. Your help would be much appreciated.

your source for custom hand-knotted rugs from Nepal.

A part of family of companies.

Link to comment
Share on other sites

I finally found why only the default template was displaying. The problem lies in the contribution by Alejandro Rodriguez on 2 Apr 2004. The $scriptbasename is not set, so it thinks that there are no templates in the /includes/sts_templates directory.

your source for custom hand-knotted rugs from Nepal.

A part of family of companies.

Link to comment
Share on other sites

I posted earlier about an error in STS when accessing products via the best-seller box. Apparently if you click on a product via the box then the product_info template isn't being called correctly. Sure it will display, but all the links on the template that go to other places will be messed up.

 

I found the same thing happens if you search for a product and then click on one of the search results to view the product. The product_info template is called, but again, links on the page are messed up!

 

HAS ANYONE ELSE EXPERIENCED THIS PROBLEM ???

If so, please post. 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...