Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Contribution] STS v4


Guest

Recommended Posts

Dave,

 

You have a couple different problems going on here.

 

  1. You can't use the product info STS tags on pages other than the product_info content templates. It is possible but it would require some re-coding on your part. I have done this and even posted in this thread about it but I strongly suggest that you do not go down this route until at least you get problem #2 below worked out. Here is the post #4440 in any case:
    http://www.oscommerce.com/forums/index.php?sho...p;#entry1325353
  2. You are using an osCommerce template that needs to be converted to an STS template. See my step by step on how to do this properly:
    Post # 2587
    http://www.oscommerce.com/forums/index.php?sho...p;#entry1131089

Look into the above and see if that helps.

 

By the way, the only STS tags that can be used in your infobox templates are $content, $headertext and $right_arrow.

 

Bill.. Your the best.. Thanks for pointing me in the right direction. Cheers.

 

Donation Sent :) Thanks for the countless hours you contribute to this project.

Link to comment
Share on other sites

Bill.. Your the best.. Thanks for pointing me in the right direction. Cheers.

 

Donation Sent :) Thanks for the countless hours you contribute to this project.

 

 

Thank you SO MUCH!

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

Jason,

It works and I also posted a response regarding your modified shop. Something else is going on with your shop that no one here will be able to assist you with without digging deep into your modifed code.

Can I give someone access to my code to see what might be the issue? I'm desperate here, really. Even if I don't use a content template, it doesn't show up.

 

Thanks to anyone willing to help.

Link to comment
Share on other sites

Does SEO-G work with STS 4.5.8?

 

I have installed SEO-G and STS 4.5.8.

 

When I activate STS I don't get any meta information on my sites (description, keywords and title)

 

Site in progress: www.brejnings.dk

 

Best regards,

Jesper

Link to comment
Share on other sites

Does SEO-G work with STS 4.5.8?

 

I have installed SEO-G and STS 4.5.8.

 

When I activate STS I don't get any meta information on my sites (description, keywords and title)

 

Site in progress: www.brejnings.dk

 

Best regards,

Jesper

Did you add headertags.php in admin sts modules >> files for normal template >> sts_user_code.php;headertags.php also make sure to move to catalog all new files including header_tags_seo_words.txt

Link to comment
Share on other sites

Does SEO-G work with STS 4.5.8?

 

I have installed SEO-G and STS 4.5.8.

 

When I activate STS I don't get any meta information on my sites (description, keywords and title)

 

Site in progress: www.brejnings.dk

 

Best regards,

Jesper

Did you mean to say HTC SEO as the above poster mentioned?

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

so i have a standard problem - Template file does not exist: [includes/sts_templates/test/sts_template.html]

 

What can I do if I have done everything what you suggested on this forum?

 

Remove each STS module in the admin by clicking on the "Remove" button. This will remove it from the cache and clear the temp database. Then log out of your admin. Now, log into your admin and install the STS Default module and leave the existing settings except for changing the template folder from "test" to "full".

 

Check your shop to see if everything is OK.

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

You're the master. And Can I ask one more question? How should this sts_template.html side look? Because My side looks:

 

$breadcrumbs $myaccountlogoff | $cartcontents | $checkout

$catmenu

$categorybox

$manufacturerbox

$whatsnewbox

$specialbox

$searchbox

$informationbox

 

 

This is the default template

 

 

$content

 

 

 

$cartbox

$maninfobox

$orderhistorybox

$bestsellersbox

$reviewsbox

$tellafriendbox

$languagebox

$currenciesbox

$date $numrequests

 

$footer_text

 

$banner_only

Simple Template System by DiamondSea.com

STS v4.5.3 by SoundsGoodProductions.com

Link to comment
Share on other sites

You're the master. And Can I ask one more question? How should this sts_template.html side look? Because My side looks:

 

I'm not really sure what you are asking but if it is what is required, then you should take a look at the sample template in the "test" folder that is named "sts_blank_template.html" as it's only purpose is to show you the "required code" that is needed in each template in order for it to be a "STS" template. Other than the code, the naming of each template is very important as well (see the docs folder that came with the contribution or look a few posts back where I listed the common template names).

 

The nifty thing about STS is that you do not have to have anything on your page. For example: if you did not want the language box on your page, you would simply leave out the $languagebox tag. It's really that simple.

 

Have fun,

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

Link to comment
Share on other sites

ok. THANKS!

I have one more question. Is there a possibility to change 'word-links' into 'image-links'? eg

 

Category ---> hardware

I want 'hardware' change into an image with a word 'hardware'.

 

 

PS. Please forgive me my english...

Link to comment
Share on other sites

ok. THANKS!

I have one more question. Is there a possibility to change 'word-links' into 'image-links'? eg

 

Category ---> hardware

I want 'hardware' change into an image with a word 'hardware'.

 

 

PS. Please forgive me my english...

Barbara,

 

Yes. It can be done two different ways: 1: The osCommerce standards method and 2: The static method. I strongly suggest the first option if you have a lot of categories or if they change alot.

 

  1. http://www.oscommerce.com/community/contri...ons,2387/page,4
    Install this contribution and then create a STS tag such as $categoryimagebox to display the menu wherever you want in your template.
  2. Create image links using the following method:
    STS Link to a category:

    <a href="<?php echo tep_href_link('index.php', 'cPath=21&', 'NONSSL'); ?>"><img border="0" src="images/Your_Image.gif">
    </a>


    The cPath number will be the actual category ID number.
    The "Your_Image.gif" will be the actual category image name.

Hope that 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

I've done it (the first option) but there is some error on the shop's side:

 

 

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/argo27/domains/rozwod.unl.pl/public_html/mm/includes/boxes/categories.php on line 36

 

EDIT: OK. I've found the mistake ;) But .. you can think i'm so stupid but I don't understand what should I do after installation - I put tag $categoryimagebox in index.php after $categorybox .. but nothing's changed.

Edited by argo27
Link to comment
Share on other sites

I've done it (the first option) but there is some error on the shop's side:

 

 

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/argo27/domains/rozwod.unl.pl/public_html/mm/includes/boxes/categories.php on line 36

 

EDIT: OK. I've found the mistake ;) But .. you can think i'm so stupid but I don't understand what should I do after installation - I put tag $categoryimagebox in index.php after $categorybox .. but nothing's changed.

 

 

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

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

Hello,

 

I currently use sts templates on my html/css site only for shopping cart purposes.

 

recently i decided i would like to add product reviews to the bottom of the product pages by using a php include at the bottom of the page of the product reviews page like so:

 

<?php include("../../catalog/product_reviews_write.php?products_id=179"); ?>

 

Now I am currently facing 2 problems.

 

1) I am able to access the page however when I try to include it i receive the error:

 

 

Warning: main(../../catalog/product_reviews_write.php?products_id=179) [function.main]: failed to open stream: No such file or directory in

 

2) The sts template that is being used for that page is the same as I use in my shopping cart. therefore the entire html menu system that i insterted in the sts_template file so that the shopping cart looks consistent with the rest of my site will appear on the page that already has the html menu.

 

is there a way to make it a second template only for the reviews that would be pretty much blank? how do i tell sts to do this?

Link to comment
Share on other sites

Hello,

 

I currently use sts templates on my html/css site only for shopping cart purposes.

 

recently i decided i would like to add product reviews to the bottom of the product pages by using a php include at the bottom of the page of the product reviews page like so:

 

<?php include("../../catalog/product_reviews_write.php?products_id=179"); ?>

 

Now I am currently facing 2 problems.

 

1) I am able to access the page however when I try to include it i receive the error:

 

 

 

 

2) The sts template that is being used for that page is the same as I use in my shopping cart. therefore the entire html menu system that i insterted in the sts_template file so that the shopping cart looks consistent with the rest of my site will appear on the page that already has the html menu.

 

is there a way to make it a second template only for the reviews that would be pretty much blank? how do i tell sts to do this?

 

I'm not following you here but just so you know, STS allows you to create a template for specific pages in your site. If you follow the correct naming syntax as explained in the STS User Manual, STS will know when to use it automatically.

 

For example, you can create a template for product_reviews.php ( named: product_reviews.php.html) or product_reviews_write.php (named: product_reviews_write.php.html).

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

I'm not following you here but just so you know, STS allows you to create a template for specific pages in your site. If you follow the correct naming syntax as explained in the STS User Manual, STS will know when to use it automatically.

 

For example, you can create a template for product_reviews.php ( named: product_reviews.php.html) or product_reviews_write.php (named: product_reviews_write.php.html).

 

Ok so i made the file product_reviews.php.html with only $reviewsbox written in it. I put that file in the /catalog/includes/sts_templates/full directory.

 

I included this file on the page i want it on but I am only seeing the $reviewsbox text. as in its not being recognized as the sts file. How do I get it to be recognized? Is it in the wrong directory?

Link to comment
Share on other sites

Hi,

 

Can you help me with my problem. Is it possible to use STS template in Wishlist 2.0? Is there a way to connect this 2 addon?

 

Thanks in advance.. ^_^ ^_^

 

I think it is possible. Maybe with a small change in catalog/includes/modules/sts_inc/column_left.php

you can even use the wishlist a a box-variable.

 

find

require(DIR_WS_BOXES . 'shopping_cart.php');

$sts->restart_capture ('cartbox', 'box'); // Get shopping cart box

 

add below:

 

require(DIR_WS_BOXES . 'wishlist.php');

$sts->restart_capture ('wishbox', 'box'); // Get shopping cart box

 

anyway: thants what I tried and it looks like it works. keep me posted if you experiment with it. Im very curious.

Link to comment
Share on other sites

I think it is possible. Maybe with a small change in catalog/includes/modules/sts_inc/column_left.php

you can even use the wishlist a a box-variable.

 

find

require(DIR_WS_BOXES . 'shopping_cart.php');

$sts->restart_capture ('cartbox', 'box'); // Get shopping cart box

 

add below:

 

require(DIR_WS_BOXES . 'wishlist.php');

$sts->restart_capture ('wishbox', 'box'); // Get shopping cart box

 

anyway: thants what I tried and it looks like it works. keep me posted if you experiment with it. Im very curious.

 

If you are wanting to create a new infobox variable, you should follow the instructions that was provided in the STS User Manual.

 

I posted these instructions in this thread in a past post as well:

 

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

 

Post#4667

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

Ok so i made the file product_reviews.php.html with only $reviewsbox written in it. I put that file in the /catalog/includes/sts_templates/full directory.

 

I included this file on the page i want it on but I am only seeing the $reviewsbox text. as in its not being recognized as the sts file. How do I get it to be recognized? Is it in the wrong directory?

 

OK. I was making a lot of assumptions I guess. You will of course have to add in the code that is needed in the template that lets STS know that this is in fact a STS template.

 

I would assume that you have at least the following in your template:

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html $htmlparams>

<head>

<!--$headcontent-->

 <link rel="stylesheet" type="text/css" href="$templatedir/stylesheet.css">

</head>

 

The tags necessary above would be the $htmlparams and <!--$headcontent--> tags. The link to the stylesheet is up to 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

I implemented modern STS template and removed right column. My product page looks strange. Before I removed right column, the right column was pushed down. After I removed the right column, the content of the page looks squashed. It happens in IE 6 browser, in Safari it looks ok. Here is the link to the product page. Any idea?

Link to comment
Share on other sites

OK. I was making a lot of assumptions I guess. You will of course have to add in the code that is needed in the template that lets STS know that this is in fact a STS template.

 

I would assume that you have at least the following in your template:

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html $htmlparams>

<head>

<!--$headcontent-->

 <link rel="stylesheet" type="text/css" href="$templatedir/stylesheet.css">

</head>

 

The tags necessary above would be the $htmlparams and <!--$headcontent--> tags. The link to the stylesheet is up to you.

 

I tried this and feel like I'm missing something integral as I am still just getting the $reviewsbox text on my site and not the actual review box. Here is what I did.

 

for the template page I have this simple code:

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html $htmlparams>

<head>

<!--$headcontent-->

 <link rel="stylesheet" type="text/css" href="../../../../../site_files/stylesheet.css">

</head>

<body>
$reviewsbox
</body>
</html>

 

and then on the product html page I have just this:

 

<?php include("../../catalog/includes/sts_templates/full/content/product_reviews.php.html"); ?>

 

I have php enabled on the product html page via htaccess. If I go directly to the product_reviews.php.html template I see the $reviewsbox text and nothing else. the same happens if i go directly to the templates that I have working in the shopping cart though so that doesnt really mean much i suppose. What am I missing here?

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