Category Search

17 views
Skip to first unread message

Andy Ide

unread,
Nov 2, 2011, 1:22:04 AM11/2/11
to WordPress e-Commerce Plugin Development
Hi guys,

Have any of you guys coded a multiple category search?

Ideally I would want a visitor to click a few categories and then products are shown in all those categories.

I have asked around and a few have said they havent done it - but I want to check with you guys first, before I commit to coding it.


Thanks!


--

Andy Ide
Director

P: (08) 8534 4263
F: (08) 8125 5835
M: 0402 955 438

http://www.primoweb.com.au





Need a break? Check out my successful website on 3D Printing: 3DFuture.com.au

transom - One Big Idea

unread,
Nov 14, 2011, 6:52:12 PM11/14/11
to WordPress e-Commerce Plugin Development
I just created a plugin that filters out any products in a particular
category from the results (my client wanted only show certain products
to logged-in users.)

Frankly, it can't be done with the plugin as it currently exists. I
had to comment out the call to wpsc_products_by_category (at the end
of wpsc_generate_product_query (wpsc_core/wpsc_functions.php)) because
it poops all over the query sql directly (yuck!)

Only then could I add the tax_query array to the wp_query with no
apparent negative impact on the query results.

I am happy to make my plugin code available if it would help. Creating
complicated tax_query is relatively easy.

- Tom Ransom

On Nov 1, 9:22 pm, Andy Ide <a...@primoweb.com.au> wrote:
> Hi guys,
>
> Have any of you guys coded a multiple category search?
>
> Ideally I would want a visitor to click a few categories and then
> products are shown in all those categories.
>
> I have asked around and a few have said they havent done it - but I want
> to check with you guys first, before I commit to coding it.
>
> Thanks!
>
> --
>
> *Andy Ide*
> Director
>
> P: (08) 8534 4263
> F: (08) 8125 5835
> M: 0402 955 438
>
> http://www.primoweb.com.au
>
> *Need a break?* Check out my successful website on 3D Printing:
> 3DFuture.com.au <http://www.3dfuture.com.au>

Zao Web Design, LLC

unread,
Nov 14, 2011, 7:07:13 PM11/14/11
to wordpress-e-c...@googlegroups.com
Patches welcome!  I'm not opposed to seeing some of the querying mechanisms in core refactored to work with tax_query.  That parameter was made available in 3.1, PHP5 has been required since 3.2, and much of WPEC requires PHP5...ergo...tax_query!

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.


Dan Milward

unread,
Nov 14, 2011, 7:23:59 PM11/14/11
to wordpress-e-c...@googlegroups.com
+1 ;)
Reply all
Reply to author
Forward
0 new messages