You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Anytime I specify an id when adding a Variation Attribute (or anything really), nothing gets added. If I use 0 or omit the id, It gets added.
The code below doesn't work (no error message, just doesn't add the Variation Attribute).
Variation newVariation = variant;
newVariation.attributes = new List<VariationAttribute>()
{
new VariationAttribute()
{
id=99, // THIS DOES NOT WORK
name="Options",
option= Variants[count]
}
};
var upVar = wc.Product.Variations.Update((ulong)variant.id, newVariation, Convert.ToUInt32(RecID));
The next section code adds works but there's no id or it's 0. Anything else and it never get's added.
Variation newVariation = variant;
newVariation.attributes = new List<VariationAttribute>()
{
new VariationAttribute()
{
name="Options",
option= Variants[count]
}
};
var upVar = wc.Product.Variations.Update((ulong)variant.id, newVariation, Convert.ToUInt32(RecID));
The text was updated successfully, but these errors were encountered:
Originally posted by @XiaoFaye in #436 (comment)
Anytime I specify an id when adding a Variation Attribute (or anything really), nothing gets added. If I use 0 or omit the id, It gets added.
The code below doesn't work (no error message, just doesn't add the Variation Attribute).
The next section code adds works but there's no id or it's 0. Anything else and it never get's added.
The text was updated successfully, but these errors were encountered: