Product Form > Multiple Products + Properties

Shopify Partner
63 3 10

Hiya,

So I have a Product Form which adds two products e.g:

{% form 'product', product %}
<input type="hidden" name="id[]" value="12345" />
<input type="hidden" name="id[]" value="6789" />
<input type="hidden" name="properties[test]" value="1" />
{% endform %}

My question is, is it possible to apply the Property 'Test' to only the first product, not both (with just HTML)?

Or do I need to take the approach of using the Cart Ajax API instead?

Thanks,
Ceri.

0 Likes
Highlighted
Shopify Partner
63 3 10

*boop*

I've tried e.g.

<input type="hidden" name="properties[test][0]" value="1" />
<input type="hidden" name="properties[0][test]" value="1" />

Sadly that doesn't appear to work.

Assuming JS is the only possible route.

Thanks,
Ceri.

0 Likes
Highlighted
Shopify Partner
63 3 10

*boop boop*

I've used a JavaScript solution for the time being, but it would be interesting to know if there's a Non-JS solution.

0 Likes