Home > widget-integration > ProductSwatchService > findVariantImage

ProductSwatchService.findVariantImage() method

Signature:

findVariantImage(optionsWithValues: OptionsWithValues$2[], swatchType: string, swatchValue: string, images: ProductImage[]): ProductImage | null;

Parameters

Parameter

Type

Description

optionsWithValues

OptionsWithValues$2[]

swatchType

string

swatchValue

string

images

ProductImage[]

Returns:

ProductImage | null