Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Contribution] STS v4


Guest

Recommended Posts

Hi, I have 2 questions

 

1. I am having trouble with the imagelarge tag - it is just showing the thumbnail size. Has anyone else had this problem?

 

Nat, take a look at this link:

 

http://www.oscommerce.com/forums/index.php?sho...=30746&st=0

 

 

 

2. Is there any way I can create a product content template for a particular category?

 

Any help greatly appreciated. Thanks

Now, to answer your question about custom templates for specific productf pages: First you need to understand how STS ?searches? to see if a custom template is available. There is a flow chart in the STS manual to show how this works. As an overview of the process, it works like this:

 

If you wanted to create a template for Category 3, which is the ?out of the box? osCommerce ?Hardware? category, you would create a template and save it as ?index.php_3.html?.

Now if you wanted to create a template for a sub-category within a category you would do the following (using the example above):

Create a template and save it as ?index.php_3_9.html? to be used as a template for the ?out of the box? category ?Hardware? and sub-category ?Mice?. Now this template will be used each time a visitor opens up the ?mice? sub-category (sub-category 9) in your store. Keep in mind that the template for Category ?Hardware? (Category 1) is totally independent of the template you just created for sub-category 9.

Now following the above two examples, let?s create a custom template for a specific product in Category 1, sub-category 9, product ID 26. This is the ?out of the box? osCommerce ?Microsoft IntelliMouse Explorer? product.

You would need to create a template and save it as ?index.php_1_9_26.html?. I hope by now you are seeing the pattern that STS uses to find templates.

 

 

So when a visitor opens a page in your store, such as a product page for product ID 26, STS will first see if there is a ?index.php_1_9_26? template. If there is such a template, STS will use it. If not, STS will continue the search but this time look for the next higher up template which would be ?index.php_1_9.html?. If there is such a template, STS will use it. If not, STS will continue the search but this time look for the next higher up template which would be ?index.php_1.html?. If there is such a template, STS will use it. If not, STS will end it?s search and use the ?default? template, which unless you have changed the default settings would be ?sts_template.html?.

 

 

 

The same procedure goes for any ?content? templates you would have created. Please use the above ?mini-tutorial? to guide you through the ?content? template process.

 

 

 

I hope this has helped you in understanding how the templating structure works with STS. :thumbsup:

 

Let me know if you need more help,

 

Bill Kellum

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

 

Thanks for your replies.

 

Re. the content templates... I had the other templates working but just wasn't sure how or if you could create content templates based on a category.. but I think I've got a better idea now so will have a play and see if I can get it to work. Thanks.

 

Re. the thumbnails

 

 

I had a look however that doesn't slove my problem. I currently have the image sizing set up so that the image is width 180 and length 0 and have been using the popup image tag in my content template. However I thought the $imagelarge tag would show the image full-sized however when I use it in a content template it still shows the thumbnail size with a width of 180.

 

Also.. another quick question.. is there a tag for the content template to show the manufacturer name or logo? I thought there would have been but can't find it in the list in the documentation.

 

Thanks,

Natalie

Link to comment
Share on other sites

Hi Bill,

 

Thanks for your replies.

 

Re. the content templates... I had the other templates working but just wasn't sure how or if you could create content templates based on a category.. but I think I've got a better idea now so will have a play and see if I can get it to work. Thanks.

 

Re. the thumbnails

 

 

 

I had a look however that doesn't slove my problem. I currently have the image sizing set up so that the image is width 180 and length 0 and have been using the popup image tag in my content template. However I thought the $imagelarge tag would show the image full-sized however when I use it in a content template it still shows the thumbnail size with a width of 180.

 

Also.. another quick question.. is there a tag for the content template to show the manufacturer name or logo? I thought there would have been but can't find it in the list in the documentation.

 

Thanks,

Natalie

Natalie, I have to ask the obvious so please do not get upset...Is the original image size large enough to get the larger image size you are shooting for? In other words, if the image is only 180 by "x", then it will only be as large as 180 by "x".

 

Either way, check your admin to be sure you haven't changed a setting to prevent your images to show properly. What browser are you using to view this? Have you tried different browsers to see if you are getting the same results?

 

Also, check your template page for any HTML that might be restricting the image size such as a table or css class. :blush:

 

I'm interested to see what is causing your image problems so please post the results.

 

Bill Kellum

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

Natalie, I have to ask the obvious so please do not get upset...Is the original image size large enough to get the larger image size you are shooting for? In other words, if the image is only 180 by "x", then it will only be as large as 180 by "x".

 

Either way, check your admin to be sure you haven't changed a setting to prevent your images to show properly. What browser are you using to view this? Have you tried different browsers to see if you are getting the same results?

 

Also, check your template page for any HTML that might be restricting the image size such as a table or css class. :blush:

 

I'm interested to see what is causing your image problems so please post the results.

 

Bill Kellum

 

Hi.. please feel free to ask obvious questions - it is usually a silly mistake.

 

However it is not that the image is too small... or the browser.

 

I have image magic installed but have switched off at the mast switch and still no luck. I have tried changing different options in images etc. i.e calculate images to true and false but all the same. It is defintely taking the image size from the 'product information image width' in admin because if I change this the image changes accordingly.

 

Are there any other settings in admin that could be affecting it?

 

I have checked the properties.. by right clicking on the image etc. and it is referencing the right image, and has the width=180 in there.

 

Had a look at my template.. can't find anything but may have missed something?

 

Thanks

Link to comment
Share on other sites

Also.. here are the lines of code from my sts_inc/product_info

 

if (tep_not_null($product_info['products_image'])) {
 $template_pinfo['imagesmall'] = tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"');
 $template_pinfo['imagelarge'] = tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), '','','');
 $template_pinfo['product_popup']= '<script language="javascript"><!--'."\n".
							   'document.write(\'<a href="java script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . (int)$products_id) . '\\\')">' . $template_pinfo['imagesmall'] . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>\');'."\n".
							   '//--></script>'."\n".
							   '<noscript>'."\n".
							   '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">'.$template_pinfo['imagesmall'] . '<br>' . TEXT_CLICK_TO_ENLARGE .'</a>'."\n".
							   '</noscript>'."\n";
} else {
 $template_pinfo['imagesmall'] ='';
 $template_pinfo['imagelarge'] ='';
 $template_pinfo['product_popup']='';	
}

 

Can't see anything wrong myself?

Link to comment
Share on other sites

Also.. here are the lines of code from my sts_inc/product_info

 

if (tep_not_null($product_info['products_image'])) {
 $template_pinfo['imagesmall'] = tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"');
 $template_pinfo['imagelarge'] = tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), '','','');
 $template_pinfo['product_popup']= '<script language="javascript"><!--'."\n".
							   'document.write(\'<a href="java script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . (int)$products_id) . '\\\')">' . $template_pinfo['imagesmall'] . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>\');'."\n".
							   '//--></script>'."\n".
							   '<noscript>'."\n".
							   '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">'.$template_pinfo['imagesmall'] . '<br>' . TEXT_CLICK_TO_ENLARGE .'</a>'."\n".
							   '</noscript>'."\n";
} else {
 $template_pinfo['imagesmall'] ='';
 $template_pinfo['imagelarge'] ='';
 $template_pinfo['product_popup']='';	
}

 

Can't see anything wrong myself?

Have you tried this with STS templates turned off? If so, did you still have the image problem?

 

You might be experiencing the following which is not a STS issue:

 

osC can generate invalid HTML by allowing width/height values for <img>s to be something else than an integer number, like 20.33333

 

Most browsers can handle this, but maybe some can't, and it's invalid HTML nonetheless.

 

I know of two ways this can happen.

 

First way:

In Admin-configure-images, you set Calculate Image Size to true, you set one of the width/heigth values to zero, say Small Image Height=0, and Small Image Width=100.

Actually, this is a convenient setting, as you can make sure that all thumbnails will be exactly 100 px wide, but they will keep the original ratio.

osC then calculates the height of the thumbnail, but the result will most likely not be an integer.

It does that in includes/functions/html_output.php, in the function tep_image.

 

Easy to fix:

 

before:

$width = $image_size[0] * $ratio;

$height = $image_size[1] * $ratio;

 

after:

$width = (int)($image_size[0] * $ratio);

$height = (int)($image_size[1] * $ratio);

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

 

I'm needing to change how a link works :huh:

 

First - I would like to say THANK YOU!!!! to Bill for all of his effort in creating this wonderful contribution - not to mention all of the help he has provided me via email recently to be able to get up and running and started with designing our storefront :thumbsup:

 

Ok - now for what I'm hoping someone will know how to do ;)

 

If you go to http://mmherbs.dreamhosters.com (yes, I know it needs a lot of help yet - LOL)

Click on "Womens Health" product category

Then Click on "Nursing" sub category

Then Click on "Blood Pressure" - the resulting page is not what I want, I want the resulting page to be what you see if you click on one of the top two "slave" products and it then explains Blood Pressure Formula and shows you the two sizes available.

 

I am currently using STS v4.something along with the Header Tags, InfoBoxes and Master Product contributions.

 

I have no idea where I should begin to look for the code to make the change so that the link goes to the page with the product description and just the slave products. :(

 

I also need it to be able to "repeat" that section - so if there is more than one product in that category (let's say, for example, we had Blood Pressure Formula II) the page will show the product name, description and slaves for each product in that category.

 

If this doesn't make sense to you let me know and I will do my best to answer your questions and try to be more clear :)

 

Thank you in advance for your help :D

 

Tracy

~Tracy
 

Link to comment
Share on other sites

Ok - got another question already :blush:

 

I wanted to have a DHTML pop-up menu for the Categories infobox. Looking at the contributions pages it looks like the dhtmlcategories111.zip is supposed to be able to work with STS - however; my sts_user_code.php does not have the line of code the creator of dhtmlcategories111.zip says to adjust to allow it to work with STS:

 

This is an addon to STS to work with Categories Menu Addon found here:

 

http://www.oscommerce.com/community/contributions,2844

 

OPEN sts_user_code.php:

 

FIND: $template['catmenu'] = $sts_block['catmenu'];

 

ADD AFTER:

$sts_block_name = 'dhtmlmenu';

require(STS_START_CAPTURE);

echo '<script language="JavaScript" src="external/jscookmenu/jscookmenu.js"></script>';

echo '<link rel="stylesheet" href="external/jscookmenu/themeie/theme.css" type="text/css">';

echo '<script language="javascript" src="external/jscookmenu/themeie/theme.js"></script>';

echo '<script language="JavaScript" type="text/javascript">' . "n";

echo '<!--' . "n";

echo ' cmDraw('mainmenu', menuID, 'vbr', cmThemeIE, 'themeie');' . "n";

echo ' //-->' . "n";

echo '</script>' . "n";

require(STS_STOP_CAPTURE);

$template['dhtmlmenu'] = $sts_block['dhtmlmenu'];

 

 

He ends by saying "Let me know if there are any problems" - but his name is not a link so I'm not sure how to let him know. I am hoping somebody here has dealt with this and knows what it is I need to change on the sts_user_code.php to utilize this contribution :D

 

I am using the infoboxes and header contributions with the STS as well - so if it helps my sts_user_code.php page looks like this:

 

<?php

/*

$Id: sts_user_code.php,v 4.1 2005/02/05 05:57:21 rigadin Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2005 osCommerce

 

Released under the GNU General Public License

 

Based on: Simple Template System (STS) - Copyright © 2004 Brian Gallagher - [email protected]

STS v4.1 by Rigadin ([email protected])

*/

/* The following code is a sample of how to add new boxes easily.

Use as many blocks as you need and just change the block names.

$sts->start_capture();

require(DIR_WS_BOXES . 'new_thing_box.php');

$sts->stop_capture('newthingbox', 'box'); // 'box' makes the system remove some html code before and after the box. Otherwise big mess!

Note: If $sts->stop_capture('newthingbox', 'box') is followed by $sts->start_capture, you can replace both by $sts->restart_capture('newthingbox', 'box')

Another way to declare STS variables is to enter them directly into the STS array:

$sts->template['MyText']='Hello World';

*/

 

$sts->start_capture();

echo "\n<!-- Start Category Menu -->\n";

echo tep_draw_form('goto', FILENAME_DEFAULT, 'get', '');

echo tep_draw_pull_down_menu('cPath', tep_get_category_tree(), $current_category_id, 'onChange="this.form.submit();"');

echo "</form>\n";

echo "<!-- End Category Menu -->\n";

$sts->stop_capture('catmenu');

 

function tep_get_category_tree($parent_id = '0', $spacing = '', $exclude = '', $category_tree_array = '', $include_itself = false) {

global $languages_id;

 

if (!is_array($category_tree_array)) $category_tree_array = array();

if ( (sizeof($category_tree_array) < 1) && ($exclude != '0') ) $category_tree_array[] = array('id' => '0', 'text' => "Catalog");

 

if ($include_itself) {

$category_query = tep_db_query("select cd.categories_name from " . TABLE_CATEGORIES_DESCRIPTION . " cd where cd.language_id = '" . (int)$languages_id . "' and cd.categories_id = '" . (int)$parent_id . "'");

$category = tep_db_fetch_array($category_query);

$category_tree_array[] = array('id' => $parent_id, 'text' => $category['categories_name']);

}

 

$categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' and c.parent_id = '" . (int)$parent_id . "' order by c.sort_order, cd.categories_name");

while ($categories = tep_db_fetch_array($categories_query)) {

if ($exclude != $categories['categories_id']) $category_tree_array[] = array('id' => $categories['categories_id'], 'text' => $spacing . $categories['categories_name']);

$category_tree_array = tep_get_category_tree($categories['categories_id'], $spacing . '???', $exclude, $category_tree_array);

}

 

return $category_tree_array;

}

 

/* // START COMPATIBILITY WITH STS 2 AND 3: $footer

// Uncomment this piece of code if you want $footer like in STS.

// Keep it as comment if you want to have $footer displaying only the copyright info.

$sts->start_capture();

?>

<table border="0" width="100%" cellspacing="0" cellpadding="1">

<tr class="footer">

<td class="footer">??<?php echo strftime(DATE_FORMAT_LONG); ?>??</td>

<td align="right" class="footer">??<?php echo $counter_now . ' ' . FOOTER_TEXT_REQUESTS_SINCE . ' ' . $counter_startdate_formatted; ?>??</td>

</tr>

</table>

<br>

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td align="center" class="smallText">

<?php echo FOOTER_TEXT_BODY ?>

</td>

</tr>

</table>

<?php

$sts->stop_capture('footer');

// END COMPATIBILITY WITH STS 2 AND 3: $footer */

 

/* // START COMPATIBILITY WITH STS 2 AND 3: $banner

$sts->start_capture();

if ($banner = tep_banner_exists('dynamic', '468x50')) {

?>

<br>

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td align="center"><?php echo $sts->template['banner_only']; ?></td>

</tr>

</table>

<?php

}

$sts->stop_capture('banner');

// END COMPATIBILITY WITH STS 2 AND 3: $banner */

 

/* // START COMPATIBILITY WITH STS 2 AND 3: $cat_ and $urlcat_

// See if there are any $url_ or $urlcat_ variables in the template file, if so, flag to read them

if (strpos($sts->template['template_html'], "\$cat_") or strpos($sts->template['template_html'], "\$urlcat_") ) {

print "<!-- STS: Reading $cat_ and $urlcat_ tags, recommend not using them -->";

$get_categories_description_query = tep_db_query("SELECT categories_id, categories_name FROM " . TABLE_CATEGORIES_DESCRIPTION);

// Loop through each category (in each language) and create template variables for each name and path

while ($categories_description = tep_db_fetch_array($get_categories_description_query)) {

$cPath_new = tep_get_path($categories_description['categories_id']);

$path = substr($cPath_new, 6); // Strip off the "cPath=" from string

 

$catname = $categories_description['categories_name'];

$catname = str_replace(" ", "_", $catname); // Replace Spaces in Category Name with Underscores

 

$sts->template["cat_" . $catname] = tep_href_link(FILENAME_DEFAULT, $cPath_new);

$sts->template["urlcat_" . $catname] = tep_href_link(FILENAME_DEFAULT, $cPath_new);

$sts->template["cat_" . $path] = tep_href_link(FILENAME_DEFAULT, $cPath_new);

$sts->template["urlcat_" . $path] = tep_href_link(FILENAME_DEFAULT, $cPath_new);

}

}

*/ // END COMPATIBILITY WITH STS 2 AND 3: $cat_ and $urlcat_

 

 

?>

 

 

Thank you,

Tracy

~Tracy
 

Link to comment
Share on other sites

Hey guys just wondering what the easiest way to add the links ( My account, Cart Contents & Checkout) in the bar below the images, As i had them before i added the STS V4 now they have disappeared.

 

Im totally new to all this stuff, so some help would be appreciated

 

Cheers Tom

Link to comment
Share on other sites

Hello guys,

 

I've been trying to install STS for awhile with no luck. My problem is that I have to use the Register Globals Patch to get osCommerce to install on my server. When I usa this patch with the SYS contrib, it dosen't work. I've tried putting on the SYS first then the register_globals fix in, but nothing seems to be working. All I get is either the register_globals warning, or Fatal error: Call to a member function on a non-object in /includes/header.php on line 14.

 

Does anyone have a way around this? Thank you!

Link to comment
Share on other sites

Hey guys just wondering what the easiest way to add the links ( My account, Cart Contents & Checkout) in the bar below the images, As i had them before i added the STS V4 now they have disappeared.

 

Im totally new to all this stuff, so some help would be appreciated

 

Cheers Tom

Inside your sts template page where you want to place these items, add the following sts placeholders:

 

My Account:

 

 $urlmyaccountlogo

 

Cart Contents:

 

$urlcartlogo

 

or:

 

 $urlcartcontents

 

Checkout:

 

$urlcheckout

 

or

 

 $checkout

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

 

I've been trying to install STS for awhile with no luck. My problem is that I have to use the Register Globals Patch to get osCommerce to install on my server. When I usa this patch with the SYS contrib, it dosen't work. I've tried putting on the SYS first then the register_globals fix in, but nothing seems to be working. All I get is either the register_globals warning, or Fatal error: Call to a member function on a non-object in /includes/header.php on line 14.

 

Does anyone have a way around this? Thank you!

Well, I would get another host but that is just my opinion.

 

If that will not work for you, you can try this:

 

If your site is hosted on an Apache server then you can try putting the code below into a .haccess file in the root of your web (via FTP).

 

php_flag register_globals on

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 everyone. Thanks to everyone contributing to this great project. I hope I am posting my question at the right place.

 

I installed STS V4.2 : I managed to make it work more or less.

But I can?t figure out how to make it work with other contributions.

 

In matter of fact with the : contribution Quantity Price Breaks for Separate Pricing Per Customer version 1.02 ( per category ) in the product_info page.

 

Could someone help me out?

Thanks a lot :rolleyes:

Balou

Link to comment
Share on other sites

Hello all,

 

I have STS installed (i think) and it appears to be working, but any link I click on ads the url in front of the link.

 

http://www.craptar.com/buyit/

 

when you click on a link it does this....

 

http://www.craptar.com/buyit/www.craptar.c...dex.php?cPath=1

 

 

 

I am no programmer. Can someone point me where i need to go to fix this?

 

Thanks!

Link to comment
Share on other sites

Hello all,

 

I have STS installed (i think) and it appears to be working, but any link I click on ads the url in front of the link.

 

http://www.craptar.com/buyit/

 

when you click on a link it does this....

 

http://www.craptar.com/buyit/www.craptar.c...dex.php?cPath=1

I am no programmer. Can someone point me where i need to go to fix this?

 

Thanks!

 

Open your catalog/includes/configure.php file

 

At the top where it says:

define('HTTP_SERVER', 'http://www.yourwebaddresshere.com');

 

Make sure the http:// is there.

 

I had the problem before installing any contributions and that's what it turned out to be so I hope that helps you too :)

 

Tracy

~Tracy
 

Link to comment
Share on other sites

Ok - got another question already :blush:

 

I wanted to have a DHTML pop-up menu for the Categories infobox. Looking at the contributions pages it looks like the dhtmlcategories111.zip is supposed to be able to work with STS - however; my sts_user_code.php does not have the line of code the creator of dhtmlcategories111.zip says to adjust to allow it to work with STS:

 

This is an addon to STS to work with Categories Menu Addon found here:

 

http://www.oscommerce.com/community/contributions,2844

 

He ends by saying "Let me know if there are any problems" - but his name is not a link so I'm not sure how to let him know. I am hoping somebody here has dealt with this and knows what it is I need to change on the sts_user_code.php to utilize this contribution :D

 

Thank you,

Tracy

Tracy,

 

Have you tried the email address he listed in the install document? I'm looking at the February 24, 2005 version and I can see his contact info.

 

Anyway, the instructions you are using would be for earlier versions of STS (prior to version 4), most likely for STSv2.

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 been fruitlessly trying to figure out how to do two things: 1) move the guest login prompt on the index page of my store to the top of the page content. Currently its below the "what's new here" message and 2) get rid of the dinky image: "table_background_default.gif"

 

you can take a look at http://www.empireempire.net/oscommerce

 

 

I love STS and it's been working great... i've just been having trouble tracking down what goes in the $content area...

 

 

thanks for your help!

-empire

Link to comment
Share on other sites

I've been fruitlessly trying to figure out how to do two things: 1) move the guest login prompt on the index page of my store to the top of the page content. Currently its below the "what's new here" message and 2) get rid of the dinky image: "table_background_default.gif"

you can take a look at http://www.empireempire.net/oscommerce

I love STS and it's been working great... i've just been having trouble tracking down what goes in the $content area...

thanks for your help!

-empire

If you are using STSv4.2 this is quite easy to do.

 

Use the following tags and place them where you want them on your template page:

$urlmyaccount

The URL used by the My Account function.

$myaccountlogoff

This will show "My Account | Logoff" if logged in, otherwise it will show "My Account" if not logged in. You can also use $myaccount.

 

I provided detailed information regarding this on page 11 (Chapter 4) of the STSv4.2 documentation.

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 just installed STS V4.2 and I have a question:

 

When using the variables ($languagebox, $categorybox, etc...) it displays:

 

. Categories

Category 1

Category 2

Etc...

 

Is there any way to remove the ". Categories" at the top? Same goes for the language box, etc...

 

Thanks for any help.

 

Great contribution by the way!!

Link to comment
Share on other sites

Hi all,

 

Please excuse me if i'm doing something really stupid! I am in the process of setting up a webstore for our shop.

 

Have installed OSC and STS with no real problems. Also installed infobox, but decided not to use it fully.

 

My problem is that I've set up STS_template.html as I want it, to reflect the look and feel of our current website.

 

The formatting and table widths work fine on all the pages except the front index.php page, where everytihng appears to be squashed into the left hand table cell of the layout.

 

You can see what I mean here:

 

http://www.shopfoundation.com/catalog/index.php

 

This front page is 'squashed' to the left'. If you click the Candles link, you can see the layout as it should be!

 

Am I being stupid here??

 

Regards,

 

James

Link to comment
Share on other sites

Hi - sorry I'm new to this... I can't see the STS in the menu. I tried applying the STS 060817 module patch

 

(Added the following code

 

reset($ar);

 

at the end of the do_magic_quotes_gpc routine.)

 

Still can't see it on the menu. Anyone help? Thanks, I'm demented.

Link to comment
Share on other sites

Hi - sorry I'm new to this... I can't see the STS in the menu. I tried applying the STS 060817 module patch

 

(Added the following code

 

reset($ar);

 

at the end of the do_magic_quotes_gpc routine.)

 

Still can't see it on the menu. Anyone help? Thanks, I'm demented.

It appears you may be missing some of the installation files. Double check your upload.

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 have a small 'problem' with the Header Tags Controller that I hope will be easy to solve. I want the 'Login' page, the 'My Account' page, the 'Cart Contents' page etc. to have specific headers. However I cannot add titles and descriptions to them in the same way that add to products or categories. In fact the Header Tags admin page states "Note that not all pages should have entries. For example, any page that will use SSL like Login or Create Account. " Although I do not use SSL.

 

Am I being dumb? Can someone please tell me how I can edit the headers for these pages like the others as they are the first thing a search engine sees and I don't want lots of pages with identical headers!

 

Any help will be very much appreciated.

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