bkellum Posted March 24, 2010 Share Posted March 24, 2010 Are there other pages that I need to edit in order to get other contributions to work with STS? That depends. 1. If you are using the STS Product Info Content template, then yes, you need to make some modifications in order for your custom addon to work in the content template as well. More information provided in the STS User Manual. 2. If you are not using the content template feature in STS, then No, as long as the custom addon has been coded to osCommerce standards. In this case, STS will automatically bring in the custom functionallity of the new addon within the $content$ tag. 3. If you are not using the content template feature in STS and it still does not work and it has been properly coded to osC standards, then you may need to: 3a. Tell STS not to template the custome script or 3b. Make sure you are linking to the script or including the script correctly in your template. For example, if it has some custom JavaScript that is outside of the stock osCommerce scripts, then you will need to link to this JavaScript in your template. No different than you would any other standard HTML web page. Quote 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 More sharing options...
47gradnord Posted March 28, 2010 Share Posted March 28, 2010 Hello I'm have setup a new shop with v2.2 RC2a and STS v4.5.8 and now trying to intergrate the "Simple Multi Image Add-on (Un-Limited) with FancyBox Popups" in to the shop. The contribution works fine if I have set the product_info template on false, if the template ist set on true the normal popup image is shown due the lack of intergration of the contrubution in sts. For that reason i tryed to chang the product_info.php in the sts_inc folder unfotunately i was not very succesfull :-( Here is a snipped of my product_info.php from the sts_inc folder 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']), INFO_SMALL_IMAGE_WIDTH, INFO_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']= ' <div id="fancy"><table border="0" cellspacing="0" cellpadding="2" align="right"> <tr> <td align="center" class="smallText">' if (strlen($product_info['products_name']) > $max_title_length) { $title = wordwrap(htmlspecialchars($product_info['products_name']), $max_title_length, '<br>'); } else { $title = htmlspecialchars($product_info['products_name']); } $m_source = ''; $thumb = (class_exists('oscthumb') && CFG_MASTER_SWITCH == 'On'); if ($thumb) { preg_match('/"([^"]+)"/',htmlentities ( tep_image(DIR_WS_IMAGES . $product_info['products_image'],'','','','','',5), ENT_NOQUOTES), $image); $m_source=str_replace('&','&',$image[1]); } echo '<a rel="image_group" title="'.$title.'" href="' . ($m_source ? $m_source : DIR_WS_IMAGES . $product_info['products_image']) . '" alt="' . $product_info['products_name'] . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"', false, 5) . '<br /></a>'; if(!$vertical_format) { echo ''; $row = 1; reset($products_image_array); foreach($products_image_array as $value) { if ($thumb) { $source = ''; preg_match('/"([^"]+)"/',htmlentities ( tep_image(DIR_WS_IMAGES . $value,'','','','','',5), ENT_NOQUOTES), $image); $source=str_replace('&','&',$image[1]); } echo '<a rel="image_group" title="'.$title.'" href="' . ($source ? $source : DIR_WS_IMAGES . $value) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $value, $product_info['products_name'], TINY_IMAGE_WIDTH, TINY_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '</a>'; ++$row; if ($row > $image_group) { echo '<br />'; $row = 1; } } } echo '</td>'; if($vertical_format) { echo '<td>'; $row = 1; reset($products_image_array); foreach($products_image_array as $value) { if ($thumb) { $source = ''; preg_match('/"([^"]+)"/',htmlentities ( tep_image(DIR_WS_IMAGES . $value,'','','','','',5), ENT_NOQUOTES), $image); $source=str_replace('&','&',$image[1]); } echo '<a rel="image_group" title="'.$title.'" href="' . ($source ? $source : DIR_WS_IMAGES . $value) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $value, $product_info['products_name'], TINY_IMAGE_WIDTH, TINY_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br />' . '</a>'; ++$row; if ($row > $image_group) { echo '</td><td>'; $row = 1; } } echo '</td>'; } '</tr>' echo '<tr><td class="smallText">' . TEXT_CLICK_TO_ENLARGE . '</td></tr>'; '</table> </div>' } else { $template_pinfo['imagesmall'] =''; $template_pinfo['imagelarge'] =''; $template_pinfo['product_popup']=''; } Does anybody now how to intergrate this code the right way or has anybody allready a working script for sts and "Simple Multi Image Add-on (Un-Limited) with FancyBox Popups" Whould be nice if someone gonna help me cheers Pat Quote Link to comment Share on other sites More sharing options...
Guest Posted March 29, 2010 Share Posted March 29, 2010 Have used STS on previous site without issue. Now working on second - osc MS2 with STS 4.6. For shop product page have created product_info.php.html file within Contents sub-directory inside Test Directory. All placeholders image, price, description, etc work fine but placeholder $addtocartbutton shows up OK but doesn't add anything to shopping cart. Help - what am I missing? Quote Link to comment Share on other sites More sharing options...
♥multimixer Posted March 29, 2010 Share Posted March 29, 2010 Have used STS on previous site without issue. Now working on second - osc MS2 with STS 4.6. For shop product page have created product_info.php.html file within Contents sub-directory inside Test Directory. All placeholders image, price, description, etc work fine but placeholder $addtocartbutton shows up OK but doesn't add anything to shopping cart. Help - what am I missing? Just an idea: Do you have the $startform$ and $endform$ tags in place in your template? The product info page is a form, so the relevant content needs to be inside this form. In sts you define this form with this 2 tags Other thing to check is if the add to cart works when the product_info template is disabled Quote My community profile | Template system for osCommerce - New: Responsive | Feedback channel Link to comment Share on other sites More sharing options...
Guest Posted March 30, 2010 Share Posted March 30, 2010 Just an idea: Do you have the $startform$ and $endform$ tags in place in your template? The product info page is a form, so the relevant content needs to be inside this form. In sts you define this form with this 2 tags Other thing to check is if the add to cart works when the product_info template is disabled Many thanks Multimixer the form tags did the job! Michael Quote Link to comment Share on other sites More sharing options...
helenhunt Posted March 31, 2010 Share Posted March 31, 2010 This template system work fine on http pages. I've installed version 1.2 Just download now 1.3 for install. But there a problem, with https pages. Whe go to https for confirm buy, if system it's configured with https, $content show pages on https, and other $ ($cartcontents, $information, ..) show href with http links. That produces a lot of windows alerts on IE and other browsers. Rhino Sealed Lead Acid Quote Link to comment Share on other sites More sharing options...
Xtcprint Posted March 31, 2010 Share Posted March 31, 2010 Hello I am trying to use the sts with a tshirt design mod I have gotten everything to work great except this page http://theghosthub.com/shps2/shirt_text.php?products_id=36 There should be a bunch of little colored boxes at the bottom to choose the text color If i trun off the sts they show So i must need to add something in the sts to make the ajax script work? Please help Thanks Debs Quote Link to comment Share on other sites More sharing options...
bkellum Posted March 31, 2010 Share Posted March 31, 2010 This template system work fine on http pages. I've installed version 1.2 Just download now 1.3 for install. But there a problem, with https pages. Whe go to https for confirm buy, if system it's configured with https, $content show pages on https, and other $ ($cartcontents, $information, ..) show href with http links. That produces a lot of windows alerts on IE and other browsers. 1.2??? 1.3???? Quote 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 More sharing options...
bkellum Posted March 31, 2010 Share Posted March 31, 2010 Hello I am trying to use the sts with a tshirt design mod I have gotten everything to work great except this page http://theghosthub.c...?products_id=36 There should be a bunch of little colored boxes at the bottom to choose the text color If i trun off the sts they show So i must need to add something in the sts to make the ajax script work? Please help Thanks Debs Are you using a product info content template? If so, you will need to make additional modifications to make the custom script work correctly. Otherwise, just turn off the product info module and it should work. Quote 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 More sharing options...
nous Posted March 31, 2010 Share Posted March 31, 2010 Hi, I'm sorry cause I'm completly newbie. I'm trying to install Cool Flash Carousel in my web on STSv4 template. Is there any tutorial for this? I followed instructions from Carousel installing guide step by step and finally I get this error: Notice: Undefined variable: formfirst in /web/htdocs/xxxxx/home/inicio/includes/functions/sts.php on line 127 .... Notice: Undefined variable: right_arrow in /web/htdocs/xxxxx/home/inicio/includes/classes/boxes.php on line 250 .... Notice: Undefined property: sts::$display_debug_output in /web/htdocs/xxxxx/home/inicio/includes/modules/sts_inc/sts_display_output.php on line 33 Could you help me please? Quote Link to comment Share on other sites More sharing options...
karaluh Posted April 11, 2010 Share Posted April 11, 2010 Thank you for the contrib, it's realy nice. I'm trying to install another contribution, but the manual is only for non sts oscommerce. How can I install contrib http://addons.oscommerce.com/info/2008 on sts? Quote Link to comment Share on other sites More sharing options...
furan Posted April 11, 2010 Share Posted April 11, 2010 (edited) Hi i need help please: Fatal error: Call to a member function add_current_page() on a non-object in catalog/includes/application_top.php on line 312 (only in Mozilla Firefox) any idea??? Edited April 11, 2010 by furan Quote Link to comment Share on other sites More sharing options...
bkellum Posted April 11, 2010 Share Posted April 11, 2010 Thank you for the contrib, it's realy nice. I'm trying to install another contribution, but the manual is only for non sts oscommerce. How can I install contrib http://addons.oscommerce.com/info/2008 on sts? That's because the author knows nothing about STS... Look at this post. Quote 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 More sharing options...
stevebob Posted April 13, 2010 Share Posted April 13, 2010 Hello, I'm a newb with oscommerce and STS (though I do have php and coding experience) and I'm in the process of figuring out how it all works together. I think I have a good enough handle on the basics. What I am trying to do (that I need help with) has to do with displaying shopping cart info. I'm trying to modify my template so it can show a shopping cart link with output showing the number of items in the shopping cart. I've already found posts that show how to do this and I've been able to generate what I want with one issue. The code that is generated is preceded and followed by: <img width="100%" height="1" border="0" alt="" src="images/pixel_trans.gif"> I don't want this. How do I go about doing this? I first tried putting the code I wrote in shopping_cart.php directly into the template file with no luck. So this leads me to believe that I either have to write a function that generates this code (and put the function where?) or there is a way to create the code in shopping_cart.php and suppress the pixel_trans.gif output. Quote Link to comment Share on other sites More sharing options...
sackling Posted April 14, 2010 Share Posted April 14, 2010 Hi all, I am trying to move away from using STS on my new site overhaul. One thing that I cannot do in the interrum is disable sts from working on my product info pages unless I disable the module in its entirety. I do not want to do this as it would break the functionality of my current store. Under module>s sts in the admin area I disabled the product info portion as well as the index but both have no effect. Can anyone give me some guidance on how I would go about disabling sts only on my product info page so that I can use the regular product_info.php? This won't effect my site because I never used the oscommerce page for my product pages they were all manually made to link to the shopping cart which was then taken over by sts. So any ideas would be greatly appreciated. Thanks so much. Quote Link to comment Share on other sites More sharing options...
bkellum Posted April 14, 2010 Share Posted April 14, 2010 Hi all, I am trying to move away from using STS on my new site overhaul. One thing that I cannot do in the interrum is disable sts from working on my product info pages unless I disable the module in its entirety. I do not want to do this as it would break the functionality of my current store. Under module>s sts in the admin area I disabled the product info portion as well as the index but both have no effect. Can anyone give me some guidance on how I would go about disabling sts only on my product info page so that I can use the regular product_info.php? This won't effect my site because I never used the oscommerce page for my product pages they were all manually made to link to the shopping cart which was then taken over by sts. So any ideas would be greatly appreciated. Thanks so much. Your comments do not make any sense as STS does not "take over" your site. You can easily turn STS off at anytime simply by setting the "Use Templates" to FALSE in the STS Default Module in the Admin. If you still want to use STS but no longer wish to take advantage of the Product Info Content template feature, then disable the STS Product Info module in the Admin. Also, make sure you do not have any product_info.php.html template files in your content template folder. Pretty easy. Quote 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 More sharing options...
bkellum Posted April 14, 2010 Share Posted April 14, 2010 Hello, I'm a newb with oscommerce and STS (though I do have php and coding experience) and I'm in the process of figuring out how it all works together. I think I have a good enough handle on the basics. What I am trying to do (that I need help with) has to do with displaying shopping cart info. I'm trying to modify my template so it can show a shopping cart link with output showing the number of items in the shopping cart. I've already found posts that show how to do this and I've been able to generate what I want with one issue. The code that is generated is preceded and followed by: <img width="100%" height="1" border="0" alt="" src="images/pixel_trans.gif"> I don't want this. How do I go about doing this? I first tried putting the code I wrote in shopping_cart.php directly into the template file with no luck. So this leads me to believe that I either have to write a function that generates this code (and put the function where?) or there is a way to create the code in shopping_cart.php and suppress the pixel_trans.gif output. Here is a simple solution for you: Just to clarify... This will create a new STS tag called $headcart that will allow you to place shopping cart details in your header (or anywehre else you want it). Add the following in includes/modules/sts_inc/sts_user_code.php: $sts->start_capture(); $productno = $cart->count_contents(); $totalprice = $currencies->format($cart->show_total()); if ($productno > 1) { echo ENTRY_HCART_CONTAINS; echo " "; echo $productno; echo " "; echo ENTRY_HCART_ITEMS; echo " "; echo " "; echo ENTRY_HCART_PRICE; echo " "; echo $totalprice; } elseif ($productno == 0) { echo ENTRY_HCART_EMPTY; } else { echo ENTRY_HCART_CONTAINS; echo " "; echo $productno; echo " "; echo ENTRY_HCART_ITEM; echo " "; echo " "; echo ENTRY_HCART_PRICE; echo " "; echo $totalprice; } $sts->stop_capture ('headcart'); Now add the following in includes/languages/engish.php: // STS Show Cart In Header define('ENTRY_HCART_EMPTY', 'Your cart is empty'); define('ENTRY_HCART_CONTAINS', 'You have '); define('ENTRY_HCART_ITEM', '<a href="shopping_cart.php" class="trailText">item in your cart</a>'); define('ENTRY_HCART_ITEMS', '<a href="shopping_cart.php" class="trailText">items in your cart</a>'); define('ENTRY_HCART_PRICE', ''); Thats it! Now use $headcart anywhere you want in your STS template files. Enjoy, Quote 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 More sharing options...
stevebob Posted April 14, 2010 Share Posted April 14, 2010 Bkellum, thank you for your assistance! What I found frustrating (seeing your code in action) is I figured out the what and where, it just didn't appear to work for me. What I mean by this is I added my own tag code to sts_user_code.php to test if it had access to the $cart object and it told me it didn't, so I didn't pursue that solution anymore. What I did was a simple: $sts->start_capture(); echo testme(); $sts->stop_capture('scart'); function testme() { $test = "Fail"; if (isset($cart)) { $test = "Success!"; } return $test; } and it returned as "Fail" Quote Link to comment Share on other sites More sharing options...
sackling Posted April 14, 2010 Share Posted April 14, 2010 Your comments do not make any sense as STS does not "take over" your site. You can easily turn STS off at anytime simply by setting the "Use Templates" to FALSE in the STS Default Module in the Admin. If you still want to use STS but no longer wish to take advantage of the Product Info Content template feature, then disable the STS Product Info module in the Admin. Also, make sure you do not have any product_info.php.html template files in your content template folder. Pretty easy. Thanks for the reply, I do want to continue to use sts and disable the product info portion as you say. In the admin area I have the product info module uninstalled. I have deleted all of the product_info templates in the sts folder in includes including the one in the content folder yet my site continues to launch the product pages in my old template. What can I be missing? You can see it in action here: http://bit.ly/c0RSUl Only the first product though 1445B because the others have urls Quote Link to comment Share on other sites More sharing options...
sackling Posted April 14, 2010 Share Posted April 14, 2010 Thanks for the reply, I do want to continue to use sts and disable the product info portion as you say. In the admin area I have the product info module uninstalled. I have deleted all of the product_info templates in the sts folder in includes including the one in the content folder yet my site continues to launch the product pages in my old template. What can I be missing? You can see it in action here: http://bit.ly/c0RSUl Only the first product though 1445B because the others have urls Sorry forgot to mention that disabling the module in admin disable the product pages as well as everything else. Quote Link to comment Share on other sites More sharing options...
bkellum Posted April 14, 2010 Share Posted April 14, 2010 Sorry forgot to mention that disabling the module in admin disable the product pages as well as everything else. Did you ever have an older version of STS installed, say...older than STSv4.0? If so, you probably have some old outdated STS code in your configure.php files. STSv4.x is designed to easily turn it on and off in the admin and once off, your site will be just as a site without STS installed. Quote 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 More sharing options...
sackling Posted April 14, 2010 Share Posted April 14, 2010 Did you ever have an older version of STS installed, say...older than STSv4.0? If so, you probably have some old outdated STS code in your configure.php files. STSv4.x is designed to easily turn it on and off in the admin and once off, your site will be just as a site without STS installed. yes it is highly likely there is an older version installed. though the options are in the admin area. Is there any chance there is something I should look for in the configure file to only disable the product info pages? Or am I looking to be out of luck? Quote Link to comment Share on other sites More sharing options...
Kjolebutikken Posted April 14, 2010 Share Posted April 14, 2010 Hi, I have tried to find a solution for my problem, but no luck, so maybe someone here can help :-) I installed osCommerce 2.2MS2 version in 2005, and installed also an free sts template design. I have not installed the contribution Simple template System (STS). I'm in the process of upgrading the store to RC2a version, and I get this error at the very top of my catalog/index.php page: STS was designed to work with OSC version [osCommerce 2.2-MS2]. This is version [osCommerce Online Merchant v2.2 RC2a]. Is there an easy way for me to update some of my sts files for the template to fix this, or do I have to install the simple template system contribution? Or will the rc2a upgrade fix this when the upgrade is finished? Thanks for your help :-) Quote Best regards Kjolebutikken Link to comment Share on other sites More sharing options...
sackling Posted April 14, 2010 Share Posted April 14, 2010 yes it is highly likely there is an older version installed. though the options are in the admin area. Is there any chance there is something I should look for in the configure file to only disable the product info pages? Or am I looking to be out of luck? Sorry just a small update, It actually appears to be version 4.1 that is installed. However the disabling and removal of the product_info templates still obviously has no effect... Any ideas on where I could look? Quote Link to comment Share on other sites More sharing options...
bkellum Posted April 14, 2010 Share Posted April 14, 2010 Sorry just a small update, It actually appears to be version 4.1 that is installed. However the disabling and removal of the product_info templates still obviously has no effect... Any ideas on where I could look? Then that means your stock product_info.php file has been modified to make the changes that you see. STS only pulls what is already there unless you use the content template feature. It's as simple as that. This is not a STS issue. Sorry. Quote 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 More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.