Price
${function() {
const selectedVariant = data.variants.find(v => v.available) || data.variants[0];
return !!selectedVariant ? `
Save
` : `
-
`;
}()}
${function() {
const selectedVariant = data.variants.find(v => v.available) || data.variants[0];
const statusLan = (
(selectedVariant && !selectedVariant.available) ||
(!selectedVariant && !data.available)) ?
"Sold out" :
"Add to cart";
const status = (
(selectedVariant && !selectedVariant.available) ||
(!selectedVariant && !data.available)) ? 'soldout' : 'available';
return `
Product is unavailable.
Product was out of stock.
`;
}()}