Home > @infiniteobjects/models > PrintButtonPlatformConfigModel > upsertVariant
Upsert the given variant on the available variants array.
Signature:
upsertVariant(variant: PrintButtonAvailableVariant, allowTitleChange?: boolean): void;
| Parameter | Type | Description |
|---|---|---|
| variant | PrintButtonAvailableVariant | |
| allowTitleChange | boolean | (Optional) |
Returns:
void
This is used to merge the shopify variants.