{% assign oriProduct = product %} {% assign product = all_products['2497-35-oz-freshscent-deodorant-bulk-soap-bars-for-hotels-airbnbs-vacation-rentals-wholesale-toiletries-1000-pieces-s12-1000'] %} {% if product %} {% assign imageLink = '' %} {% if product.images.size > 0 %} {% assign imageLink = product.images[0].src | img_url: 'original' %} {% endif %} {% assign alternateImageLink = imageLink %} {% if product.images.size > 1 %} {% assign alternateImageLink = product.images[1].src | img_url: 'original' %} {% endif %} {% if imageLink != '' %} {% if true %} {% else %} {% endif %} {% if 'none' == 'zoom' %} {% endif %} {% if 'none' == 'alternate' %} {% endif %} {% else %} This product has no images. {% endif %} {% if true %} {% else %} {% endif %} {{product.title}} {% assign decimalNumber = 2 | at_least: 0 | at_most: 24 %} {% assign moneyFormatParts = shop.money_format | split: '{{' %} {% assign currencySymbol = moneyFormatParts[0] | strip_html %} {% if currencySymbol == '' %} {% assign moneyFormatParts = shop.money_format | split: '}}' %} {% assign currencySymbol = moneyFormatParts[1] | strip_html %} {% endif %} {% if 'token' == 'name' %} {% assign currencyToken = shop.currency %} {% else %} {% assign currencyToken = currencySymbol %} {% endif %} {% assign data = 'data-decimal-token="." data-decimal-number="' | append: decimalNumber | append: '" ' %} {% for variant in product.variants %} {% assign variantPrice = variant.price | divided_by: 100.0 %} {% assign price = variantPrice | round: decimalNumber | string %} {% assign priceParts = price | split: '.' %} {% assign priceIntegral = priceParts[0] %} {% assign priceFractional = priceParts[1] | append: '000000000000000000000000' | truncate: decimalNumber, '' %} {% if decimalNumber > 0 %} {% assign price = priceIntegral | append: '.' | append: priceFractional %} {% else %} {% assign price = priceIntegral %} {% endif %} {% assign oriPrice = variant.compare_at_price %} {% if oriPrice %} {% assign oriPrice = oriPrice | divided_by: 100.0 %} {% else %} {% assign oriPrice = 0 %} {% endif %} {% if true and oriPrice > variantPrice %} {% assign oriPrice = oriPrice | round: decimalNumber | string %} {% assign oriPriceParts = oriPrice | split: '.' %} {% assign oriPriceIntegral = oriPriceParts[0] %} {% assign oriPriceFractional = oriPriceParts[1] | append: '000000000000000000000000' | truncate: decimalNumber, '' %} {% if decimalNumber > 0 %} {% assign oriPrice = oriPriceIntegral | append: '.' | append: oriPriceFractional %} {% else %} {% assign oriPrice = oriPriceIntegral %} {% endif %} {% else %} {% assign oriPrice = '' %} {% endif %} {% assign data = data | append: 'data-price-' | append: variant.id | append: '="' | append: price | append: '" ' %} {% assign data = data | append: 'data-ori-price-' | append: variant.id | append: '="' | append: oriPrice | append: '" ' %} {% if forloop.index == 1 %} {% assign data = data | append: 'data-variant="' | append: variant.id | append: '" ' %} {{currencyToken}} {{priceIntegral}}{% if decimalNumber > 0 %}.{{priceFractional}}{% endif %}   {{currencyToken}} {{oriPrice}} {% endif %} {% endfor %} {% assign soldOut = false %} {% assign soldOutData = '' %} {% for variant in product.variants %} {% if variant.inventory_management == 'shopify' and variant.inventory_policy == 'deny' and variant.inventory_quantity == 0 %} {% assign soldOutData = soldOutData | append: variant.id | append: ' ' %} {% if forloop.index == 1 %} {% assign soldOut = true %} {% endif %} {% endif %} {% endfor %} {% if false %} add_shopping_cart   {% endif %} {% if soldOut %} Sold out {% else %} Add to cart {% endif %} {% else %} No products found. Please add some products to your store first. {% endif %} {% assign product = oriProduct %}

Newsletter

A short sentence describing what someone will receive by subscribing