Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am using woocommerce plugin for ecommerce site. Problem is that it allows maximum 50 variations for a product, but my client requires around 350 variations with attributes size, color etc. etc. Is there a way to tweak the code or anything else?

Thanks,

Frank

share|improve this question

1 Answer

From the Woo forums:

We have a limit of 50 linked variations per product right now (to prevent memory issues), anything above that is considered to be very complex and in need of some custom work. It is not easy to manage a single product with over 3000 variations, in no eCommerce software out there.

That said, looks like you have to hack the plugin code or create an action hook (not sure how to, but it is supported by the plugin in this function case) to modify the behavior of the function woocommerce_link_all_variations.

Max 100 is an original comment in the file.

/*
 * File: /plugins/woocommerce/woocommerce-ajax.php
 * Line: 487
 * WooCommerce: v1.5.6
 */
// Max 100
if ($added>49) break;
share|improve this answer
Thanks,Brasofilo,..but I was wondering how did the guy with this post did having huge nos. of variations?? wordpress.stackexchange.com/questions/53750/… – Frank Jun 6 '12 at 15:32
Well, try to put 350 where I'm signaling... But it would be better if you tested this in a clone site if yours is already live. – brasofilo Jun 6 '12 at 18:23

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.