Templating the Category List

174 views
Skip to first unread message

John Beales

unread,
Feb 20, 2012, 7:14:00 PM2/20/12
to WordPress e-Commerce Plugin Development
I've run into an issue with the way the product category list works,
(the stuff in wpsc-theme/wpsc-category-list.php).

What I'm trying to do is show some extra text below the excerpt for a
certain category, (there's a sale on items in that category).
Unfortunately, since the category text is all output-buffered, then
various [values] are replaced by str_replace(), I can't actually do
something like if(wpsc_cat_id() == 55) then show my special text.

First, does anyone know a way to hack around this problem and show
some info about a category? There don't seem to be any filters on the
description that I've found or anything.

Second, (and this may already be in the pipeline), should we really be
showing a list of categories like this? Wouldn't it make more sense to
have something closer to how the WP loop functions, but for
categories?

Zao Web Design, LLC

unread,
Feb 27, 2012, 7:06:47 PM2/27/12
to wordpress-e-c...@googlegroups.com
Hi John,

I'm not a huge fan of how this works either.  I'd love to see this process refactored, care to submit a patch?

Thanks,

M. Justin Sainton
Zao Web Design, LLC
Principal / Project Manager
http://www.zaowebdesign.com
(c) 971.222.6330
(f) 1.413.723.0396




--
You received this message because you are subscribed to the Google Groups "WordPress e-Commerce Plugin Development" group.
To post to this group, send email to wordpress-e-c...@googlegroups.com.
To unsubscribe from this group, send email to wordpress-e-commerc...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/wordpress-e-commerce-plugin?hl=en.


John Beales

unread,
Feb 27, 2012, 8:55:25 PM2/27/12
to wordpress-e-c...@googlegroups.com
I'll see if I can find time to write one. It's not trivial, but it'll make me learn more about custom taxonomies, which would be good for me ;)

John

Reply all
Reply to author
Forward
0 new messages