Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / add coming soon text for a category

add coming soon text for a category

Locked

Views: 1,058

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
19 Jun 2009, 5:29 PM
#1
edon12 avatar

edon12

New Zenner

Join Date:
Apr 2009
Posts:
9
Plugin Contributions:
0

add coming soon text for a category

hi everyone, just want to first say I've learned so much from reading the posts and I love the versatility that zen cart offers!

My issue is that I want to be able to have a category display "coming soon" text after it and not be clickable.

First, I have made the categories on my site look like they are products and then use the actual products as variations of that particular product. I don't use traditional sideboxes, all of mine are new custom ones so there's no issues with anything there. I am selling a service and so the category is the title of the service and the products are made to be just the times the service is offered, that's why I arranged the shop this way.

I don't want to make the categories disabled or hidden (i have the hidden categories mod installed). I just want to be able to display a category as coming soon when it is displayed next to other categories.

I am sure that I can do this with some modifications to the database and php within the files, as i've done this already for other parts of the category display, but is there an easier way to do this?

Thank you in advance for any help!

19 Jun 2009, 6:30 PM
#2
edon12 avatar

edon12

New Zenner

Join Date:
Apr 2009
Posts:
9
Plugin Contributions:
0

Re: add coming soon text for a category

I just ended up doing the database/php method to achieve this result. If anyone else is interested in this I will give a brief explanation below of how I did this. It is a bit of a hack, but that's b/c I couldn't find the correct header files for the main file that displays categories.

I added a database and field to check if the category is coming soon or not and then I just manually update it with phpMyAdmin (since I don't know the proper way to make this editable through the admin interface). I the added the database calls within category_row.php. This is b/c I wasn't sure which header file to use so the actual mysql query is in this file. Then just used an IF statement to check the value for the coming soon field and if it is supposed to be coming soon I take out the code which makes the category a link and add "Coming Soon" under the title of the category.

Not that this is kind of a 'dirty' way to do it and it works on my site b/c I don't use sideboxes at all and a lot of things have been customized.