Hey! Really hoping someone can help me here.
I can successfully create a product in Shopify, but I want to then add two things to that product: the colour of it and the condition of it. The products are clothing items.
I have tried setting a variant and I have tried sending an API request using the API URL and Json. I can’t get it to work successfully.
The product ID is being extracted as a number and used for the URL and setting the ID in the Json.
This is the code I have been attempting to use:
This was used to set the option names:
{
"product": {
"id": "{{product_id}}",
"options": i
{ "name": "Color" },
{ "name": "Condition" }
]
}
}
This was used to set the option values:
{
"variant": {
"id": "{{variant_id}}",
"price": "5.00",
"options": ,
"Beige",
"Very Good"
]
}
}
It may have just been extracting the wrong IDs but I need to know how to marry this all up to accurately send the right information to the end points.
Please help! Thanks!