Diaz Posted May 29, 2007 Share Posted May 29, 2007 Hi I need to add a bunch of text at the end of everyone of my products. We close shop at different times in the week and I want this at the end of every product. Rather than go in to each one is there an easy way to add a $ variable or something? I t will take me ages to go back to each item and ammend. Our opening times change through the year and I would have to go back in to them all again! :| Quote Link to comment Share on other sites More sharing options...
bkellum Posted May 29, 2007 Share Posted May 29, 2007 Hi I need to add a bunch of text at the end of everyone of my products. We close shop at different times in the week and I want this at the end of every product. Rather than go in to each one is there an easy way to add a $ variable or something? I t will take me ages to go back to each item and ammend. Our opening times change through the year and I would have to go back in to them all again! :| I'm sure there are a couple different ways of doing this but the first that comes to mind would be just creating a new define in the languages/product_info.php file and then adding the link to your catalog/product_info.php page. Try this: Find this in catalog/product_info.php: <tr> <td class="main"><?php echo sprintf(TEXT_MORE_INFORMATION, tep_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($product_info['products_url']), 'NONSSL', true, false)); ?></td> </tr> Add after: <tr> <td class="main"><?php echo sprintf(TEXT_MORE_TEXT); ?></td> </tr> Now add the following define in each of your languages/product_info.php files: Find: define('TEXT_MORE_INFORMATION', 'For more information, please visit this products <a href="%s" target="_blank"><u>webpage</u></a>.'); Add after: define('TEXT_MORE_TEXT', 'Add all of the text that you want here between the quotes.'); Hope this helped you out, 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...
Diaz Posted May 29, 2007 Author Share Posted May 29, 2007 I remember doing some extra text with STS... where is the file I need to edit that I can type the text in? Quote Link to comment Share on other sites More sharing options...
bkellum Posted May 29, 2007 Share Posted May 29, 2007 I remember doing some extra text with STS... where is the file I need to edit that I can type the text in? The suggestion above is not STS related, it will work with a stock osC shop. To add text using STS is even easier (I did not know that you were using STS). Create a product_info template per the instructions in the STS User Manual and just add your text where you want it to be using standard HTML, Flash, CSS, etc. 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...
Diaz Posted May 29, 2007 Author Share Posted May 29, 2007 The suggestion above is not STS related, it will work with a stock osC shop. To add text using STS is even easier (I did not know that you were using STS). Create a product_info template per the instructions in the STS User Manual and just add your text where you want it to be using standard HTML, Flash, CSS, etc. Thanks for you fast replies... it has been a while since I used OSC and forgot where all the files are located. I have STS installed but it was a while ago and can not remember which version. If I ask you to kindly take a look here.. www.abayofblooms.co.uk and tell me what would be the best method to add to each product ta bunch of informational text. This was originally a test site that I played around with but now needs to be cleaned up and used properly. Many thanks in advance. Diaz Quote 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.
Note: Your post will require moderator approval before it will be visible.