Guest Posted March 21, 2008 Posted March 21, 2008 I am trying to do something on my site so that when a certain products category is selected the product listing will display a certain text on that page. So as example, category with id 100 would display 'woohoo' where I want it category with id 101 would display 'wow' where I want it category with id 102 would display 'whoosh' where I want it (those are just samples, I will actually include a paragraph or two. Right you may laugh at this, but I am just having a play around, but this is the code I have come and with (obviously it doesn't work): <?php if ($current_category_id == '116') = ('text' => ['Some Text'])) ; :lol: ?> Please tell me what it should be
drumcentral Posted March 21, 2008 Posted March 21, 2008 hi there, how did you fix it? Which files were you editing etc? I'd like to use a feature like this on my site. kenny --------------------------------------------------------------------------------------------------
Jack_mcs Posted March 21, 2008 Posted March 21, 2008 You could install the Header Tags Controller contribution which has this built in and is controllable from admin. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
Recommended Posts
Archived
This topic is now archived and is closed to further replies.