stack

Home > @infiniteobjects/models > PrintButtonPlatformConfigModel > upsertVariant

PrintButtonPlatformConfigModel.upsertVariant() method

Upsert the given variant on the available variants array.

Signature:

upsertVariant(variant: PrintButtonAvailableVariant, allowTitleChange?: boolean): void;

Parameters

Parameter Type Description
variant PrintButtonAvailableVariant  
allowTitleChange boolean (Optional)

Returns:

void

Remarks

This is used to merge the shopify variants.