Cart throb: I want to have the ability in CT to have a single product and say order 10 black, 20 green adn 5 yellow all with a single add to cart click

RIght now I have to add each color individually.

1 Answer 1


You'll need to use the multi_add_to_cart_form. Assuming that the price modifier for your colors is called "product_color" your form would look something like this:

{exp:channel:entries channel="products"}
    {exp:cartthrob:multi_add_to_cart_form return="TEMPLATE_GROUP/TEMPLATE"}     
           Product name: {title} Price: {product_price}<br />
               {option_name}: <input type="text" name="quantity[{count}]" value="0" /><br />
               <input type="hidden" name="entry_id[{count}]" value="{entry_id}" />
               <input type="hidden" name="item_options[{count}][product_color]" value="{option_value}" />
           <p><input type="submit" value="Add to Cart"></p>

That will give you a form with your color options printed out with corresponding quantity fields.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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