{
$nextTick(async () => {
if (event.detail.option1) {
option1 = event.detail.option1;
}
if (event.detail.option2) {
option2 = event.detail.option2;
}
if (event.detail.option3) {
option3 = event.detail.option3;
}
variantIndex = variants.findIndex((variant) => {
if (option1) {
if (variant.options[option1Index]!= option1) {
return false;
}
}
if (option2) {
if (variant.options[option2Index]!= option2) {
return false;
}
}
if (option3) {
if (variant.options[option3Index]!= option3) {
return false;
}
}
return true;
});
variant = variants[variantIndex]
if (variant.featured_image?.src) {
image = quickAddProduct.variantImagesUrl[variantIndex]
}
});
};
"
>
View Full Info
Share