We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 29635
    • 361 Posts
    The add to cart snippet really just chooses one chunk or the other based on your inventory values. The next time I mess with this code I’ll probably just recommend you use PHx, as it’d be a little easier.

    So I think your question has less to do with the snippet, and more to do with just how to create a form with a bunch of options? It sounds like your approach is actually really solid there, but here are some extra thoughts for you if you need to track specific colors and such as separate inventory (which I think is your next question).
      Need MODx Ecommerce? Try FoxyCart!