M
L
XL
`; let priceHtml2 = `
$${price}
`; if (compareAtPrice > price) { priceHtml = `
$${compareAtPrice}
${priceHtml2}
`; } if (quantityText === "1 Pair") { quantityOptionTextValue.innerHTML = `
1 Pair
${priceHtml}
` ; } else if (quantityText === "2 Pack") { const pricePerProductHtml = (price / 2); quantityOptionTextValue.innerHTML = `
2 Pack
${priceHtml}
$${pricePerProductHtml}/Pair
Most Popular
`; }else if (quantityText === "3 Pack") { const pricePerProductHtml = (price / 3); quantityOptionTextValue.innerHTML = `
3 Pack
${priceHtml}
$${pricePerProductHtml}/Pair
Most Popular
`; } else if (quantityText === "4 Pack") { const pricePerProductHtml = (price / 4); quantityOptionTextValue.innerHTML = `
4 Pack
${priceHtml}
$${pricePerProductHtml}/Pair
Best Deal!
`; } else if (quantityText === "6 Pack") { const pricePerProductHtml = (price / 6); quantityOptionTextValue.innerHTML = `
6 Pack
${priceHtml}
$${pricePerProductHtml}/Pair
Best Deal!
`; } else if (quantityText === "9 Pack") { const pricePerProductHtml = (price / 9); quantityOptionTextValue.innerHTML = `
9 Pack
${priceHtml}
$${pricePerProductHtml}/Pair
Amazing Deal!
`; } }); });