Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
Is there a limit at how many product variants can be used with Couch-cart? I need eight variants of type text, but the maximum I can get is seven. I've checked with firebug, the eight variant is not created, it stops at number seven.
The code is ok, I triple checked!


I am known for missing obvious things :) , is it the case here?
Hi,

A limit of 7 is hardcoded in the cart's source file (thought it'd be more than enough for anybody :) ).
For now you can try making changes to the source itself to raise the limit -
Line 643 cart.php
Code: Select all
$limit = min( 7, count($matches) ); // only seven sets of product options supported
Yep, I aslo thought it was hardcoded. I believe that seven is enough for 99.9% of the cases, but I guess I've fallen into that 0.01% :)

Thanks
3 posts Page 1 of 1