Jump to content
rigadin2

[Contribution] STS v4

Recommended Posts

To add the search function to your template, you could simply add the actual form:

 

<form name="advanced_search" action="advanced_search_result.php" method="get">

<td bgcolor="anycolor">

<table width="100%" cellpadding="0" cellspacing="0"><tr><td class="navigation">Search ;</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="10" maxlength="30" class="searchForm" style="width: 95px"></td><td align="center"> <input type="image" src="$templatedir/images/gobutton.gif" border="0" alt="Search" title=" Search "></td></tr></table>

</td></form>

 

The above code can be used anywhere in your template and can be styled anyway you desire. The items in bold need to be changed to your liking.

 

Oh my gosh, wow. That answer is almost too easy. I gotta get a grasp of php. Thanks once again Bill!

Share this post


Link to post
Share on other sites
Patrick,

 

Simply modifiy the stylesheet you are using.

Bill,

 

Thank you for the quick reply.

 

I did search all forums and also did try your sugestion (you mentioned this before in this forum) but it would not work.

 

If I change CSS infoBoxContents background to transparent ALL the pages in my site with class=infoBoxContents will change to transparent.

 

This is because almost every .php page of osC uses the infoBoxContents class.

 

As mentioned before I would like to:

- for all the 'non-infoboxes' in my site to use the CSS class infoBoxContents with a border and backgroundcolor (like standard osC does)

- and have only one infobox.php.html for all my infoboxes with a transparent background (box and contents transparent)

- without having to delete all the 'class=infoBoxContents' on every .php in my site

 

For me the problem seems to be that in my infobox.php.html I can't prevent the class infoBoxContents to be used within $content.

I also did not manage to overrule infoBoxContents within $content in my infobox.php.html with classes, div's, span, TR's or TD's.

 

I hope STS does have a 'setting' I did overlook.

Kind regards,

Patrick

Share this post


Link to post
Share on other sites
Bill,

 

Thank you for the quick reply.

 

I did search all forums and also did try your sugestion (you mentioned this before in this forum) but it would not work.

 

If I change CSS infoBoxContents background to transparent ALL the pages in my site with class=infoBoxContents will change to transparent.

 

This is because almost every .php page of osC uses the infoBoxContents class.

 

As mentioned before I would like to:

- for all the 'non-infoboxes' in my site to use the CSS class infoBoxContents with a border and backgroundcolor (like standard osC does)

- and have only one infobox.php.html for all my infoboxes with a transparent background (box and contents transparent)

- without having to delete all the 'class=infoBoxContents' on every .php in my site

 

 

Kind regards,

Patrick

Patrick,

If I am understanding you correctly, you will need to create a new class for your boxes to use and then call this class in each of the box files.

See the following knowledge base article:

http://www.oscommerce.info/kb/osCommerce/C..._Area/Boxes/248

 

It would probably be easier to create a new class for your non-infobox item (you can use the above example for that as well).


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 Daniel and welcome to STS (and osCommerce).

 

If you have a freshly installed osCommerce RC2, with no changes to the code on your part, then you could simply upload the files from the STS and RC2 folders (keeping the residing folder structure in tact).

 

Then, you need to configure the STS Default Module to enable the Simple Template System (and the template folder to be used - it is set to "test" out of the box, change it to "full" to take advandage of the advanced sample template set named "full").

 

Refer to the STS User Manual and the Docs folder for explainations on the template and variable (placeholder) names.

 

Hi Bill thanks for the reply i was able to instal sts without any issues..i do have one other question maybe you or someone else on here can help me. if i want to use just one template to edit the whole site..i dont wan't to make any thing too complicated just yet. do i make all the changes where?

 

Thanks

Share this post


Link to post
Share on other sites
Hi Bill thanks for the reply i was able to instal sts without any issues..i do have one other question maybe you or someone else on here can help me. if i want to use just one template to edit the whole site..i dont wan't to make any thing too complicated just yet. do i make all the changes where?

 

Thanks

 

You will find that the STS User Manual is quite informative....

Section 4.1 "Simple, One Page Template".

 

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

Share this post


Link to post
Share on other sites
If you used the STSv4.5.2 and HTC bundle, you would have to do a manual install over an osCommerce Online Merchant RC2 version since that bundle was created for the previous osC version 060817. All of the STS & HTC files are compatible with osC RC2 but you just can't overwrite RC2 files with the files that came with that STS/HTC bundled contribution.

 

For a manual install of HTC over an existing STS installation, you can use the link in my signature below for an easy step by step.

 

 

 

Thank you very much, Bill! I found that 'login' was missing from the 'filenames'. And then my harddrive crashed! But all's well as far as getting back to work.

 

My new thing? I changed the color of the box headings easily enough (in the stylesheet), but can't remember how I applied color to the rest of the box borders...and the bottom of my boxes are as thick as the top. I want the bottom of my boxes as thin as the sides.

Share this post


Link to post
Share on other sites
STS already has a built in $addtocartbutton but is only available in the product_info template. The following will modify this tag so that it can be used in any template that you desire:

 

 

Open the your store catalog folder/includes/modules/sts_inc/sts_user_code.php file and add the following just before the last ?>

$products_id=intval($_GET['products_id']);
// Create variables for product ID, added in v4.0.6 
//$template_pinfo['productid'] = $products_id; // Deprecated in STS4.3SP1
$sts->template['productsid'] = $products_id; // Just for consistende with osC names

// Start the "Add to Cart" form
$sts->template['startform'] = tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product'));
// Add the hidden form variable for the Product_ID
$sts->template['startform'] .= tep_draw_hidden_field('products_id', $products_id);
$sts->template['endform'] = "</form>";
$sts->template['addtocartbutton'] = tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART);

 

Now add the $startform $addtocartbutton $endform (all three, in that order) anywhere in your table how ever many times that you need the Add To Cart Button for each product.

 

Basically, I took the variable define from the includes/modules/sts_inc/product_info.php file and defined them to be used for any of the templates, not just the product_info content template.

 

Hope this helped,

 

 

Hi Bill

 

I used your code... but how i call the specific product for each Buy Now button that i add on my index.php.html page?? I dont know the fuction to call the specific product.. :blink:

 

I tried this: <a href=http://www.factoryretails.com/index.php?action=buy_now&products_id=39><img src="images/add_cart.gif" alt="Add To Cart" border="0"></a><br><br>

 

but without success... because doesnt added nothing on my cart...

 

 

Rafael


OScommerce Rocks!

Share this post


Link to post
Share on other sites
Hi Bill

 

I used your code... but how i call the specific product for each Buy Now button that i add on my index.php.html page?? I dont know the fuction to call the specific product.. :blink:

 

I tried this: <a href=http://www.factoryretails.com/index.php?action=buy_now&products_id=39><img src="images/add_cart.gif" alt="Add To Cart" border="0"></a><br><br>

 

but without success... because doesnt added nothing on my cart...

 

 

Rafael

 

Rafael,

 

It would probably be best if you simply add a new form for each product:

<form name="cart_quantity" action="http://www.factoryretails.com/product_info.php?products_id=39&action=add_product" method="post">

 

<input type="hidden" name="products_id" value="39"><input type="image" src="http://www.factoryretails.com/includes/languages/english/images/buttons/button_in_cart.gif" border="0" alt="In Cart" title=" In Cart "></form>


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
You will find that the STS User Manual is quite informative....

Section 4.1 "Simple, One Page Template".

 

Hope this helped you out,

 

Thanks once again.... ok so now i instaled a new language pack, and when i select the new language on the page it loads up all messed up. my question is since the instalation of the language didnt have anything to be moved to the STS folder could that be whats causing the issue, because i remember the STS included some languages unfortunately it they werent the ones i needed. i posted this in the language section, but i figured if its a sts issue i could try here also...

 

Thanks..

Share this post


Link to post
Share on other sites
Rafael,

 

It would probably be best if you simply add a new form for each product:

<form name="cart_quantity" action="http://www.factoryretails.com/product_info.php?products_id=39&action=add_product" method="post">

 

<input type="hidden" name="products_id" value="39"><input type="image" src="http://www.factoryretails.com/includes/languages/english/images/buttons/button_in_cart.gif" border="0" alt="In Cart" title=" In Cart "></form>

 

 

Great Bill.... thank you for your time..

 

Where i do a donate to you??????

 

Rafael


OScommerce Rocks!

Share this post


Link to post
Share on other sites
Thanks once again.... ok so now i instaled a new language pack, and when i select the new language on the page it loads up all messed up. my question is since the instalation of the language didnt have anything to be moved to the STS folder could that be whats causing the issue, because i remember the STS included some languages unfortunately it they werent the ones i needed. i posted this in the language section, but i figured if its a sts issue i could try here also...

 

Thanks..

Danny,

Yes, you would need to duplicate the language file edits that came with STS to your new languages. It is very easy to do, just look at the manual installation instructions for each of the files in the languages folder.


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
Great Bill.... thank you for your time..

 

Where i do a donate to you??????

 

Rafael

 

I'm glad it worked out for you.

 

I don't solicite donations in this forum but if you really want to send me a donation, just send me a personal message (PM) and I'll give you the link to my donations page at my web site (soundsgoodproDOTcom).


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
ok...sorry if my questions are really stupid here...I'm just trying to get this right...so, I can add this to the includes/modules/sts/sts_inc/sts_user_code.php file:

 

$sts->template['urlproductid1'] = tep_href_link('product_info.php', 'products_id=1&', 'NONSSL');

 

and then place the button on the index.php.html page like so:

 

<a href="urlproductid1">

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"

codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"

width="160" height="40">

<param name="movie" value="http://www.nomoreuglyjars.com/catalog/images/skirtsetsbutton.swf">'>http://www.nomoreuglyjars.com/catalog/images/skirtsetsbutton.swf">

<param name="menu" value="false">

<param name="quality" value="high">

<param name="wmode" value="opaque">

<param name="scale" value="noscale">

<embed src="http://www.nomoreuglyjars.com/catalog/images/skirtsetsbutton.swf" menu="false" quality="high" wmode="opaque"

scale="noscale" width=160 height=40 type="application/x-shockwave-flash"

pluginspace="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">

</embed>

</object>

 

Is that what your saying?

 

But, don't I need to put the 'cPath=24' somewhere in there since I thought that that was the thing that references it to the particular category (Mini Skirt Sets) I'm trying to link to?

 

 

It'll be the day when I get this!! Sometimes I'm a slow learner...sorry.

 

 

Hey Bill...I don't blame you for not wanting to respond to my last questions or maybe you overlooked them perhaps. Frankly, I was being a little lazy and didn't read all the information you provided me with. I think I was getting a little ahead of myself, which sometimes I tend to do. I finally read the forum link you gave me for the flash info. I am not sure what the problem I was encountering before was, so I thought it'd be safe to just start over with a fresh clean install, which I did. After doing the clean install, I followed the instructions you had from this link you gave me (http://forums.oscommerce.com/index.php?sho...p;#entry1298555). Just for my own knowledge, what is the difference between referring to this javascript file for your flash rather than just placing the flash itself on the index.php.html page?

 

Anyway, it works. I was able to get the flash on the page, but still having trouble linking my flash objects. I gave up on trying to get the flash left nav. menu up and just went with regular images for left nav. links instead, which actually I'm pretty happy with (www.foxysally.com). But I'm hoping there is a way to create a horizontal flash menu in the header successfully, hoping that it might be easier to do since the pages I'm linking to aren't catalog pages. For my link to the $urlmyaccount page, Here is the code I entered in into the index.php.html page:

 

<td>

<a href="$urlmyaccount">

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="125" height="30">

<PARAM name="movie" value="images/flash/button_myaccount.swf">

<PARAM name="allowScriptAccess" value="always">

<EMBED src="images/flash/button_myaccount.swf" quality="best" menu="true" width="125" height="30" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" allowScriptAccess="always">

</EMBED></OBJECT></a>

</td>

<td class="styleFlash">

<script type="text/javascript" src="$templatedir/flash/swfobject.js"></script>

<div id="flashcontent"><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="210" height="30">

<PARAM name="movie" value="images/flash/emailme.swf">

<PARAM name="allowScriptAccess" value="always">

<EMBED src="images/flash/emailme.swf" quality="best" menu="true" width="210" height="30" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" allowScriptAccess="always">

</EMBED></OBJECT>

 

</div>

<script type="text/javascript">

var so = new SWFObject("images/flash/emailme.swf", "movie", "210", "30", "8", "#ffffff");

so.write("flashcontent");

</script>

</td>

 

 

Did I enter in the "a href" in the wrong place? If you go to my new tester site: www.foxysally.com, you can see that I got the "my account" flash button to appear, but the link isn't working.

 

Thank you so much!

 

Leah

Share this post


Link to post
Share on other sites

helllo back i've posted a q. before sorry for double post maybe you missed me...

 

if I put like that in sts_user_code:

 

$sts->template['specialprice'] = "<div style=\"float:left;z-index:100;margin-left:0px;margin-top:-80px;position:relative;font-size:20px;font-weight:bold;font-family:Georgia;color:#fff;width:150;height:74px;padding-top:30px;padding-left:25px;text-align:justify;background:url(/img/pret.png) no-repeat;\">" . $sts->template['specialprice'] . "</div>";

 

it still shows me with no <div> ... only the price ....

what i am doing wrong ?

 

And another thing:

 

My main concern is how to get the values from the sts variable / to know if a variable is 0 or 1 for example, in order to run a php function.

 

Thanks.

Share this post


Link to post
Share on other sites

I have successfully installed STS and made some useful modifications to the look and feel of my store, however when I click in the Shipping & Returns, Privacy Notice, Conditions of Use and Contact Us links the changes are not propagated through.

Any suggestions (link to a tutorial) gratefully received :)

thanks

cyphyr

Share this post


Link to post
Share on other sites
I'm glad it worked out for you.

 

I don't solicite donations in this forum but if you really want to send me a donation, just send me a personal message (PM) and I'll give you the link to my donations page at my web site (soundsgoodproDOTcom).

 

 

done a little contribution for your time on support all us..

 

thank you


OScommerce Rocks!

Share this post


Link to post
Share on other sites
I have successfully installed STS and made some useful modifications to the look and feel of my store, however when I click in the Shipping & Returns, Privacy Notice, Conditions of Use and Contact Us links the changes are not propagated through.

Any suggestions (link to a tutorial) gratefully received :)

thanks

cyphyr

 

Did you create the template name for these pages using the correct syntax? For example; The Conditions of Use page template would be named conditions.php.html and saved in your template folder.


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
Hey Bill...I don't blame you for not wanting to respond to my last questions or maybe you overlooked them perhaps. Frankly, I was being a little lazy and didn't read all the information you provided me with. I think I was getting a little ahead of myself, which sometimes I tend to do. I finally read the forum link you gave me for the flash info. I am not sure what the problem I was encountering before was, so I thought it'd be safe to just start over with a fresh clean install, which I did. After doing the clean install, I followed the instructions you had from this link you gave me (http://forums.oscommerce.com/index.php?sho...p;#entry1298555). Just for my own knowledge, what is the difference between referring to this javascript file for your flash rather than just placing the flash itself on the index.php.html page?
The link I provided gives a more stable method for Flash and will work with all browsers as well as not require the user to have to click on the Flash file to get it started.

 

For my link to the $urlmyaccount page, Here is the code I entered in into the index.php.html page:

 

<td>

<a href="$urlmyaccount">

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="125" height="30">

<PARAM name="movie" value="images/flash/button_myaccount.swf">

<PARAM name="allowScriptAccess" value="always">

<EMBED src="images/flash/button_myaccount.swf" quality="best" menu="true" width="125" height="30" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" allowScriptAccess="always">

</EMBED></OBJECT></a>

</td>

<td class="styleFlash">

<script type="text/javascript" src="$templatedir/flash/swfobject.js"></script>

<div id="flashcontent"><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="210" height="30">

<PARAM name="movie" value="images/flash/emailme.swf">

<PARAM name="allowScriptAccess" value="always">

<EMBED src="images/flash/emailme.swf" quality="best" menu="true" width="210" height="30" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" allowScriptAccess="always">

</EMBED></OBJECT>

 

</div>

<script type="text/javascript">

var so = new SWFObject("images/flash/emailme.swf", "movie", "210", "30", "8", "#ffffff");

so.write("flashcontent");

</script>

</td>

 

 

Did I enter in the "a href" in the wrong place? If you go to my new tester site: www.foxysally.com, you can see that I got the "my account" flash button to appear, but the link isn't working.

 

Thank you so much!

 

Leah

Have you given any thought to using the following STS tag instead?

$myaccountlogo

This tag is to be used with an Image and links to the My Account page. It is Multilanguage. It will use SSL if available.

 

The image is header_account.gif, and should be located in [template folder]/images/english (and other languages), linking to FILENAME_ACCOUNT (account.php, defined in includes/filenames.php).

The tag is created in: includes/modules/sts_inc/general.php

 

You could try editing the tag to point to the Flash file instead of header_account.gif:

 

	$sts->template['cartlogo'] = '<a href="' . tep_href_link(FILENAME_SHOPPING_CART, '', 'SSL') . '">' . tep_image(STS_TEMPLATE_DIR.'images/'.$language. '/emailme.swf, HEADER_TITLE_CART_CONTENTS) . '</a>';


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 All

 

Bill - STS is fantastic - life is so much easier :D

 

I'm stuck with the infoboxes though!! I've followed the instructions and have my new infobox called infobox_dm_categories.php.html and have saved this to the boxes folder under my template as per the instructions. Then you get this line

Include the name of the infobox template in the filename in the following format:

• infobox_infoboxname.php.html

Is this refering to what I have just done?

 

How to I get the changes I have made to reflect on my site? Essentially I am using dynamenu and for the dynamenu I do not want any of the infobox apart from the contents to display.

 

Thanks for any help

Rob

Share this post


Link to post
Share on other sites
Hi All

 

Bill - STS is fantastic - life is so much easier :D

 

I'm stuck with the infoboxes though!! I've followed the instructions and have my new infobox called infobox_dm_categories.php.html and have saved this to the boxes folder under my template as per the instructions. Then you get this line

 

Is this refering to what I have just done?

 

How to I get the changes I have made to reflect on my site? Essentially I am using dynamenu and for the dynamenu I do not want any of the infobox apart from the contents to display.

 

Thanks for any help

Rob

 

Hello Rob,

 

If you haven't done so already, be sure you have created the new STS tag for the dynamenu in includes/modules/sts_inc/sts_left_column.php as so:

 

Find:

// Get manufacturer box from db or cache  
 if ((USE_CACHE == 'true') && empty($SID)) {
echo tep_cache_manufacturers_box();
 } else {
include(DIR_WS_BOXES . 'manufacturers.php');
 }
 $sts->restart_capture ('manufacturerbox', 'box');

Add in the new STS tag afterwards so that it looks like this:

 

// Get manufacturer box from db or cache  
 if ((USE_CACHE == 'true') && empty($SID)) {
echo tep_cache_manufacturers_box();
 } else {
include(DIR_WS_BOXES . 'manufacturers.php');
 }
 $sts->restart_capture ('manufacturerbox', 'box');

require(DIR_WS_BOXES . 'dm_categories.php');
 $sts->restart_capture('dmbox', 'box'); // Get Dynamenu Category box

 

Now you need to include the STS tag into your template using $dmbox where you want the dynamenu box to appear.

 

The stuff you posted above related to the infobox "template" feature of STS.


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
The link I provided gives a more stable method for Flash and will work with all browsers as well as not require the user to have to click on the Flash file to get it started.

 

 

Have you given any thought to using the following STS tag instead?

$myaccountlogo

This tag is to be used with an Image and links to the My Account page. It is Multilanguage. It will use SSL if available.

 

The image is header_account.gif, and should be located in [template folder]/images/english (and other languages), linking to FILENAME_ACCOUNT (account.php, defined in includes/filenames.php).

The tag is created in: includes/modules/sts_inc/general.php

 

You could try editing the tag to point to the Flash file instead of header_account.gif:

 

	$sts->template['cartlogo'] = '<a href="' . tep_href_link(FILENAME_SHOPPING_CART, '', 'SSL') . '">' . tep_image(STS_TEMPLATE_DIR.'images/'.$language. '/emailme.swf, HEADER_TITLE_CART_CONTENTS) . '</a>';

 

Thank You Bill. I got it to work, but I'm not sure if I did it the correct way, so I'll try that. I'm wondering if you could help me with another issue...I'm trying to create another page with different icons that link to different costume categories. I got it to work by creating the page costumes.php.html, but only by putting it in the /catalog/ directory but I thought our new page(s) should be in the .../full directory. I tried that, but it's not working. Also, when I try to link the images (or icons) on that new page, it seems that none of the php code is working. Click on 'costumes' on www.foxysally.com...you can see that the new page is there, but trying to link those images to my catalog pages aren't working.

 

leah

Share this post


Link to post
Share on other sites
Thank You Bill. I got it to work, but I'm not sure if I did it the correct way, so I'll try that. I'm wondering if you could help me with another issue...I'm trying to create another page with different icons that link to different costume categories. I got it to work by creating the page costumes.php.html, but only by putting it in the /catalog/ directory but I thought our new page(s) should be in the .../full directory. I tried that, but it's not working. Also, when I try to link the images (or icons) on that new page, it seems that none of the php code is working. Click on 'costumes' on www.foxysally.com...you can see that the new page is there, but trying to link those images to my catalog pages aren't working.

 

leah

 

Leah,

Go over to the STS Add-ons site (Power Pack) and download my "Add New Pages using STS" add-on. This will guide you step by step on how to properly add new pages and then template those pages using STS.

 

All of your template pages should be located in your template folder.


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

I'm not real sure on what you are asking. I use UltraPics with STSv4.5.8 with no issues at all. I have modified the popup_image.php.html template to reflect my UltraPics modifications as well. I do not use LightBox so I may not be able to help you with that.

 

Are you using FireFox 3 by chance? I've been having this exact same problem, trying to setup a new store. I just figured out that at least part of the problem is with FireFox 3. On FireFox 2, I have a different problem atm. I've also seen other strange problems in FireFox 3 where some forms' text fields get displayed in the wrong position. For example, GoogleCheckout kept wanting to put the GC logo out of line with the HTML code. Weird. I solved the latter problem by removing GC from the store (decided that I did not want it anyway, due to all the reports of non-existent merchant support).

 

I think it's an STS issue. My store works fine (even in FF 3) when I turn off STS.

 

Hope that helps.

 

RC

Share this post


Link to post
Share on other sites
I have a problem with STS and ultra pics. I've installed a clean version of rc2a and STS last version, an the i added the package Ultra Pics 2.07.01 - incl. STS + CCGV + LightBox - Correct one , i've replaced the files(drag and drop). I think i must do something more. I attached a picture

 

92818589yr5.th.jpgthpix.gif

 

Ok. I believe I've found the problem.

 

If you are using GuiGui's contrib ("UltraPics 2.08 with Lightbox 2.04" from 22 May 2008), and STS 4.5.8, what happens is that there are duplicate JavaScript commands being sent by STS in the top of the page script. To fix this, here is what is required. For product_info.php and any other similar files you modify (e.g. product_reviews.php), alter the STS Instructions with this contrib. The instructions with the contrib read as follows:

 

Having this contribution to work with STS is very simple.

 

In your includes/sts_templates/YOUR TEMPLATE FOLDER/sts_template.html (or when applicable the file that you use as your template file)

 

Add after:

 

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

 

The following:

 

<link rel="stylesheet" href="lightbox.css" type="text/css" media="screen" />

<script type="text/javascript" src="js/prototype.js"></script>

<script type="text/javascript" src="js/scriptaculous.js?load=effects"></script>

<script type="text/javascript" src="js/lightbox.js"></script>

<script type="text/javascript" src="js/builder.js"></script>

 

 

what you need to do is this instead:

 

 

In your includes/sts_templates/YOUR TEMPLATE FOLDER/sts_template.html (or when applicable the file that you use as your template file)

 

Add after:

 

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

 

The following:

 

<link rel="stylesheet" href="lightbox.css" type="text/css" media="screen" />

<script type="text/javascript" src="js/builder.js"></script>

 

Why?

 

The problem is that STS is already pulling the other JavaScript commands from the header, so if you use the instructions per UltraPics 2.08, then you have duplicate JS modules loading. On some browsers with some Java versions, this seems to FUBAR the graphics rendering by Java.

 

Let me know if that fixes your problem as well. :)

 

Regards,

 

David

Edited by Richard Cranium

Share this post


Link to post
Share on other sites
Ok. I believe I've found the problem.

 

If you are using GuiGui's contrib ("UltraPics 2.08 with Lightbox 2.04" from 22 May 2008), and STS 4.5.8, what happens is that there are duplicate JavaScript commands being sent by STS in the top of the page script. To fix this, here is what is required. For product_info.php and any other similar files you modify (e.g. product_reviews.php), alter the STS Instructions with this contrib. The instructions with the contrib read as follows:

 

Having this contribution to work with STS is very simple.

 

In your includes/sts_templates/YOUR TEMPLATE FOLDER/sts_template.html (or when applicable the file that you use as your template file)

 

Add after:

 

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

 

The following:

 

<link rel="stylesheet" href="lightbox.css" type="text/css" media="screen" />

<script type="text/javascript" src="js/prototype.js"></script>

<script type="text/javascript" src="js/scriptaculous.js?load=effects"></script>

<script type="text/javascript" src="js/lightbox.js"></script>

<script type="text/javascript" src="js/builder.js"></script>

 

 

what you need to do is this instead:

 

 

In your includes/sts_templates/YOUR TEMPLATE FOLDER/sts_template.html (or when applicable the file that you use as your template file)

 

Add after:

 

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

 

The following:

 

<link rel="stylesheet" href="lightbox.css" type="text/css" media="screen" />

<script type="text/javascript" src="js/builder.js"></script>

 

Why?

 

The problem is that STS is already pulling the other JavaScript commands from the header, so if you use the instructions per UltraPics 2.08, then you have duplicate JS modules loading. On some browsers with some Java versions, this seems to FUBAR the graphics rendering by Java.

 

Let me know if that fixes your problem as well. :)

 

Regards,

 

David

Hello David,

 

The real problem would be that the JavaScript is being added to the catalog pages (catalog/product_info.php) from the Lightbox installation and that should have been left out if you use STS. Then, you could simply add in the JavaScript call to the templates that need it.

 

A similar situation occurs with Header Tags SEO and STS. Since STS pulls in the tag info with the headcontent tag, it is redundant to add the HTC SEO code to the catalog pages.

 

Eitherway is a solution though. :rolleyes:


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

×