var GPOCollectionParams = GPOCollectionParams || {}; GPOCollectionParams['{{product.id}}'] = { id:{{product.id}}, handle:'{{product.handle}}', title:{{product.title | json}},variants:[{% for variant in product.variants %}{id:{{variant.id}},title:{{variant.title | json}},inventory_quantity:'{{variant.inventory_quantity}}',inventory_management:'{{variant.inventory_management}}',inventory_policy:'{{variant.inventory_policy}}'}{% unless forloop.last %},{% endunless %}{% endfor %}]};