Jump to content
rigadin2

[Contribution] STS v4

Recommended Posts

for creating a new page... "an about us page" with the columns on left and right still, is the contribution "new page" a good route to go , bill?

 

 

nevermind i followed the link below your signature, and its providing step by step instructions, thanks to Bill!@

Share this post


Link to post
Share on other sites

hey bill i got a new page created but .. how would i go about having the main page, index page be like an "about page" and then a link connecting to the products ... would i just modify the index file?

Share this post


Link to post
Share on other sites
hey bill i got a new page created but .. how would i go about having the main page, index page be like an "about page" and then a link connecting to the products ... would i just modify the index file?

 

If you only have a few categories and/or products, then you could create PHP links within your STS template like so:

 

STS Link to a category:

 

<a href="<?php echo tep_href_link('index.php', 'cPath=3&', 'NONSSL'); ?>">Category Name Here</a>

 

*Change the cpath=3 to whatever category ID you are wanting to link to; Use SSL in place of NONSSL if appropriate.

 

STS Link to a product:

 

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

 

*Change the products_id=23 to whatever product ID you are wanting to link to; Use SSL in place of NONSSL if appropriate.

 

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

Hi,

 

I've just installed STS v4.5.2 and all seemed well.

 

I switched the default module to true and was presented with an error message on the top of my stores page.

 

After doing a little research i was informed that if i removed and installed the default module within the admin panel this would update the database and resolve this issue.

 

I have tried this and when i click the install button i am presented with an new error:

 

1062 - Duplicate entry '0' for key 1

 

insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Code for debug output', 'MODULE_STS_DEBUG_CODE', 'debug', 'Code to enable debug output from URL (ex: index.php?sts_debug=debug', '6', '2', now())

 

[TEP STOP]

 

Can anyone point me in the direction of what to do next?

 

Many Thanks

D4

Share this post


Link to post
Share on other sites
If you only have a few categories and/or products, then you could create PHP links within your STS template like so:

 

STS Link to a category:

 

<a href="<?php echo tep_href_link('index.php', 'cPath=3&', 'NONSSL'); ?>">Category Name Here</a>

 

*Change the cpath=3 to whatever category ID you are wanting to link to; Use SSL in place of NONSSL if appropriate.

 

STS Link to a product:

 

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

 

*Change the products_id=23 to whatever product ID you are wanting to link to; Use SSL in place of NONSSL if appropriate.

 

Hope this helped,

 

 

bill im sorry i phrased that wrong, what i need i just the main page that opens first to be an image and some text about the company and not affect the rest of the template, i got links already to the rest of the site and pgaes.. but do i create a content template .. ?

Share this post


Link to post
Share on other sites

Hi All,

 

I would like to show my products in all the categories as horizontally placed (like the 'new product' page) rather than the default vertical.

 

Is it possible with this contribution if I can change my category template or do I have to install another mod for this.

 

Thanks

Edited by shoshoni

Share this post


Link to post
Share on other sites
another question, how to add "whats new" or "specials" as just a link at the top on my navigation bar?

 

I would like to know the answer to this too please. I want to put login and register in my navigation bar so I can get rid of the Hello guest line.

 

Thanks

Share this post


Link to post
Share on other sites

Sorry for interupt but what is the problem with admin area ?

 

When I install "Default" part for STS Module it fill out some values, i try to change that values (Use Templates? to "True"...) but when I hit "Update" button...the values are the same as old (Use Templates? is "False").

Edited by netbull

I Need Money

Share this post


Link to post
Share on other sites
Sorry for interupt but what is the problem with admin area ?

 

When I install "Default" part for STS Module it fill out some values, i try to change that values (Use Templates? to "True"...) but when I hit "Update" button...the values are the same as old (Use Templates? is "False").

This should help you out:

 

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


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
Sorry for interupt but what is the problem with admin area ?

 

When I install "Default" part for STS Module it fill out some values, i try to change that values (Use Templates? to "True"...) but when I hit "Update" button...the values are the same as old (Use Templates? is "False").

 

 

 

hey bud i figured it out

 

its quite simple... here just use <a>http://mysite.com/catalog/contact_us.php</a> so you just put the page you want to link to

 

hope that helped

Share this post


Link to post
Share on other sites
hey bud i figured it out

 

its quite simple... here just use <a>http://mysite.com/catalog/contact_us.php</a> so you just put the page you want to link to

 

hope that helped

Kade,

Actually, you would want to create a link that does not lose the customers session ID, otherwise once they click on that link, their shopping cart will lose any contents that it may be populated with.

Here is the link you would want to use:

<a href="<?php echo tep_href_link(FILENAME_CONTACT_US, '', 'SSL'); ?>" class="links"><?php echo "CONTACT Us Link"; ?></a>

 

:thumbsup: The tep_href_link is what is needed. You could exchange SSL for NONSSL if your shop does not use a security certificate. You can also use an image (button) instead of the text link example above.


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

Actually, you would want to create a link that does not lose the customers session ID, otherwise once they click on that link, their shopping cart will lose any contents that it may be populated with.

Here is the link you would want to use:

<a href="<?php echo tep_href_link(FILENAME_CONTACT_US, '', 'SSL'); ?>" class="links"><?php echo "CONTACT Us Link"; ?></a>

 

:thumbsup: The tep_href_link is what is needed. You could exchange SSL for NONSSL if your shop does not use a security certificate. You can also use an image (button) instead of the text link example above.

Hi Bill, I think this also answers my question on how to add links to register and login to the navigation bar, however, I'm not sure which file I put this in.

 

I'd really appreciate if you could let me know.

 

Thanks

Share this post


Link to post
Share on other sites

Hi there!

 

I have installed the newest Version of STS. Now I have a Problem with the Menuboxes. E.g. the Categoriesbox: I have created a new Template for the Infoboxes. That's ok so. Now I want so insert the Var $headertext in a Imagestring. But this Var inserts a Table into my Imagestring, and the Images doesn't show correct. At last I had tried to delete all Tabletags and -Strings from the boxes.php in the .../catalog/include/classes/ Folder. In the first Time the Image does show correct, but the Content of the Listbox shows broken.

 

In the End the Imagestring should be looks like this -> e.g. <img src="./images/style_20070621/infoBoxHeader_Categories.gif" width="150" height="24">

 

What must I edit to become the right output for my Problem?

 

I hope you will post and help me soon as possible. It's very important!


Greetz,

© Johnny

Share this post


Link to post
Share on other sites
If you get this error:

 

Fatal error: Call to a member function on a non-object in /home/***/***/***/includes/classes/sts.php on line 185

 

Check your installation of STS, file includes/application_top.php .

 

This error does not show up all the time, only when some message is to be displayed at the top of the page.

 

- Chris

 

Greets, while I've come across a number of people with this problem, the above is the best "answer" to it that I've been able to find; however, I'm still a bit confused - what exactly am I checking for? I just did an install of STS 4.5.2 on a brand new clean version of v2.2ms2-060817 and I'm still getting the error with the Testimonial Manager (customer testimonials) contrib while the templates are turned on.

 

Originally the error was occuring on a slightly older version of sts so I scrapped (after backing up) that store and started fresh only to get the same error. I've compared numerious includes/application_top.php files in WinMerge and they all appear to be identical (with the exception of the ver.# and some rems).

 

Is there anyway to actually fix this?

Share this post


Link to post
Share on other sites

Probably should have mentioned that I have made the changes with regards to the last few lines in application_top.php - where the code involving sts.php is before the message_stack.php code... still get the error. I'm lost on this one. Thanks a bunch. Cheers

Share this post


Link to post
Share on other sites

is there any ways i can set the right column fixed at that certain position?

 

www.asiatattoosupply.com

 

as you can see, the index page looks ok. but when i dive into my product page, the right menu floats underneath the $content...

i've removed the product_info module and index module. so all would be set to default module. i've changed the table tags to div, i dun really like tables.

 

here's my code for index.php.html (which i've set as default in the default module)

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html $htmlparams>
<head>
<!--$headcontent-->
 <link rel="stylesheet" type="text/css" href="stylesheet.css">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><style type="text/css">
<head>

<body >
<div style="background:url(http://www.asiatattoosupply.com/cart/images/logo.jpg); height:188; width:658"></div>
<div id="leftlayer">
$catmenu<p>
$categorybox
$searchbox
$informationbox</div>
<div id="centrelayer">$content</div>
<div id="rightlayer">$cartbox
 $maninfobox
 $orderhistorybox
 $bestsellersbox
$currenciesbox</div>
</body>
</html>

 

here's my stylesheet

#leftlayer
{
position:absolute;
left:3px;
top:201px;
width:160px;
height:70px;
z-index:0;
}

#rightlayer
{
position: absolute;
width:200px;
height:115px;
z-index:0;
left: 720px;
top: 150px;
}

#centrelayer
{
position:absolute;
width: 600px;
z-index:0;
left:200px;
top:200px
}

 

i'm pretty sure there is a simple solution to this but i've been figuring out the whole afternnon... i dun really wanna configure product_info.php.html now. btw if i really really have to do it, can i create a default product info to display all the products in the same way? the files in the sts folder has got the product id in the filenames, meaning each product is configured in different way?

Share this post


Link to post
Share on other sites

somehow i got a feeling it's got somethign with do with dynamenu. when i click on links in index.php.html everything works fine but when i click on the tree links in my dynamenu (it's at the left column) the right column gets screwed up.

Share this post


Link to post
Share on other sites
somehow i got a feeling it's got somethign with do with dynamenu. when i click on links in index.php.html everything works fine but when i click on the tree links in my dynamenu (it's at the left column) the right column gets screwed up.

 

sorry ignore this post please, i've disable dynamenu and the results still the same

Share this post


Link to post
Share on other sites
is there any ways i can set the right column fixed at that certain position?

 

www.asiatattoosupply.com

 

as you can see, the index page looks ok. but when i dive into my product page, the right menu floats underneath the $content...

i've removed the product_info module and index module. so all would be set to default module. i've changed the table tags to div, i dun really like tables.

If you do not like tables, then you need to configure your divs correctly. Your problem lies with the absoute position in your CSS.

You should focus on the following CSS variables:

float

width (as percentages)

margin (right/left as percentages)

padding


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

 

I installed the STS, but before i was excluded these boxes.. manufactures, search, language and currecies...

 

After the instalattion, these boxes appear again... i tried exclude them without sucesss...

 

Can someone help me to exclude these boxes? And the new catalog menu too...

 

thank you...


OScommerce Rocks!

Share this post


Link to post
Share on other sites

Hi to all..

 

I installed the STS, but before i was excluded these boxes.. manufactures, search, language and currecies...

 

After the instalattion, these boxes appear again... i tried exclude them without sucesss...

 

Can someone help me to exclude these boxes? And the new catalog menu too...

 

thank you...


OScommerce Rocks!

Share this post


Link to post
Share on other sites

hi all,

 

i installed the STS mega power pack and got some problems. the dynamenu doesnt work well and the subcategory appears at the bottom of the page. whats wrong with that? anyone can help? really appreciate it..

 

thanks.

Share this post


Link to post
Share on other sites
hi all,

 

i installed the STS mega power pack and got some problems. the dynamenu doesnt work well and the subcategory appears at the bottom of the page. whats wrong with that? anyone can help? really appreciate it..

 

thanks.

Since that has so many contributions involved, I would suggest starting a separate thread.

Bill Kellum

 

Sounds Good Productions

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×