More specifically, when adding product variations to variable products, is it possible to reference the attribute with a combo of name/slug rather than ID?
Instead of this:
{
“regular_price”: “9.00”,
“sku”: “1234-28-17”,
“attributes”: [
{
id: 1,
“option”: “28\” / 17 oz.”
}
]
}
Use this:
{
“regular_price”: “9.00”,
“sku”: “1234-28-17”,
“attributes”: [
{
“slug”: “bat-weight”,
“name”: “Bat Weight”,
“option”: “28\” / 17 oz.”
}
]
}
I have not yet gotten the attribute added properly without supplying the ID, but I’m not sure if I have a viable substitute.
Thanks in advance.