I can add text at top of page by using <Categories/Products> and clicking edit next to a category... How can I ad text to the bottom of the page (unique to only one category)
I can add text at top of page by using <Categories/Products> and clicking edit next to a category... How can I ad text to the bottom of the page (unique to only one category)
Look at swguy's boilerplate file tips mentioned in numerous threads. You may want the "extra boilerplate" adaptation of that that I have done - there is info in the threads where it is discussed.
One basic version is in Boilerplate mod- separate it from description?, post 20.
The final version is posted in How to Add Content Below category listings?, post 5.
not any help, one needs to be clicked on and ends up on top with the category description and the other one the links to see it in action don't work (I guess no longer on the web)
What do you mean, not any help? The specific posts I pointed to are not the ones you are describing.
The Boilerplate... post 20 code is given for use in the product info page, but its essence can easily be put wherever you want in the category listing or product listing page. It is simple and appropriate for limited use as you described (if you meant only one category needs it).
The Extra Boilerplate will function the same for category descriptions as for product descriptions, with appropriate variable substitution as described in the post. It is suitable for widespread use in multiple categories or products.
The Short Description mod has been regularly used (though I haven't looked at it myself), and its support thread should be able to answer any questions you have.
Sorry, let me explain, I tried the second one (#5) and it was not what I wanted. the first one (#20) had no place to see it's effect, so I dont know if it is what I want. It is too much effort to load a whole mod unless I know it is what I am looking for.. I have done that before and the actual mod was not at all what I was looking for and I just don't want to add something I'm not sure is it. Any idea where I might see it online?
also it says it is for 1.3.7 and may or may not work on 1.3.9
Last edited by slater555; 2 Dec 2011 at 05:04 AM. Reason: adding
The suggestions can be used to get what you describe in the OP, so you will have to explain in more detail what you want that they do not do.
the one that is #5 puts a link at the top of the page for <more info> and when clicked displays the text right there... I want the text to appear at the bottom, or in a static ad that appears only on one page. I have a vendor who wants an ad to appear on only one page but I do not want it at the top, and I dont want the ad to be on every page as it is slightly large and they are only paying $50 per month. Right now the ad is at http://www.airtightsecurityplus.com/dvr-system.html which is not in my shopping cart but on a gateway page (ad is on right at bottom labeled <Airtight Ads>
The Short Description mod is not linked in post 5 of the thread, but post 9. I believe it is supposed to give a <more info> type link, so would probably not be suitable. The Extra Boilerplate mod in post 5 can do exactly what you want, but may be a bit more complex than needed.
Since you only want this for one location, the post 20 code will do the job effectively. Paste this snippet in your file, and make a new define file, and it will just work./includes/languages/english/extra_definitions/advert_defines.phpPHP Code:<?php
if ($current_category_id == 34) {//replace 34 with your category id
echo '<div class="advert">' . ADVERT_1 . '</div>';
} ?>The file to put the output code in will depend on exactly what kind of page it is - category listing or product listing.PHP Code:<?php
define('ADVERT_1','the HTML for the advertisement');
?>
Last edited by gjh42; 2 Dec 2011 at 06:47 AM.
Thanks, sorry for the delay, was on a business trip. Which file do I put the 'snippet' in?
The file to put the output code in will depend on exactly what kind of page it is - category listing or product listing.
Which is it?