John Beales
unread,Feb 20, 2012, 7:14:00 PM2/20/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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?