new home

{% assign oriProduct = product %} {% assign product = all_products['afrozeh-afb-v1-05'] %} {% if product %} {% assign oriCollection = collection %} {% assign collection = collections['elaf'] %} {% assign productCount = collection.products | size | at_most: 4 %} {% if productCount > 0 %} {% paginate collection.products by 4 %} {% for product in collection.products limit:productCount %} {% 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 %} {% assign currencyToken = currencySymbol %} {% 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 priceIntegralLength = priceIntegral | size %} {% assign priceIntegralDigits = priceIntegral | split: '' %} {% assign priceIntegral = '' %} {% for digit in priceIntegralDigits %} {% assign periodIndex = priceIntegralLength | minus: forloop.index %} {% assign periodIndex = periodIndex | plus: 1 %} {% assign periodIndex = periodIndex | modulo: 3 %} {% if forloop.index != 1 and periodIndex == 0 %} {% assign priceIntegral = priceIntegral | append: ',' %} {% endif %} {% assign priceIntegral = priceIntegral | append: digit %} {% endfor %} {% 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 oriPriceIntegralLength = oriPriceIntegral | size %} {% assign oriPriceIntegralDigits = oriPriceIntegral | split: '' %} {% assign oriPriceIntegral = '' %} {% for digit in oriPriceIntegralDigits %} {% assign periodIndex = oriPriceIntegralLength | minus: forloop.index %} {% assign periodIndex = periodIndex | plus: 1 %} {% assign periodIndex = periodIndex | modulo: 3 %} {% if forloop.index != 1 and periodIndex == 0 %} {% assign oriPriceIntegral = oriPriceIntegral | append: ',' %} {% endif %} {% assign oriPriceIntegral = oriPriceIntegral | append: digit %} {% endfor %} {% 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 %}   {% endif %} {% if soldOut %} Sold out {% else %} Add to cart {% endif %} {% endfor %} {% if 'false' == 'true' %} {% assign prevLink = '' %} {% if paginate.current_page > 1 %} {% assign prevPage = paginate.current_page | minus: 1 %} {% assign prevLink = '?page=' | append: prevPage %} {% endif %} {% assign nextLink = '' %} {% if paginate.current_page < paginate.pages %} {% assign nextPage = paginate.current_page | plus: 1 %} {% assign nextLink = '?page=' | append: nextPage %} {% endif %} {{ paginate.current_page }} {% endif %} {% endpaginate %} {% else %} {% if 'Elaf' == '' %} Please choose collection to show products from sidebar. {% else %} No products found. Please add some products to the collection first. {% endif %} {% endif %} {% assign collection = oriCollection %} {% assign oriCollection = collection %} {% assign collection = collections['mushq-fancy'] %} {% assign productCount = collection.products | size | at_most: 4 %} {% if productCount > 0 %} {% paginate collection.products by 4 %} {% for product in collection.products limit:productCount %} {% 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 %} {% assign currencyToken = currencySymbol %} {% 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 priceIntegralLength = priceIntegral | size %} {% assign priceIntegralDigits = priceIntegral | split: '' %} {% assign priceIntegral = '' %} {% for digit in priceIntegralDigits %} {% assign periodIndex = priceIntegralLength | minus: forloop.index %} {% assign periodIndex = periodIndex | plus: 1 %} {% assign periodIndex = periodIndex | modulo: 3 %} {% if forloop.index != 1 and periodIndex == 0 %} {% assign priceIntegral = priceIntegral | append: ',' %} {% endif %} {% assign priceIntegral = priceIntegral | append: digit %} {% endfor %} {% 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 oriPriceIntegralLength = oriPriceIntegral | size %} {% assign oriPriceIntegralDigits = oriPriceIntegral | split: '' %} {% assign oriPriceIntegral = '' %} {% for digit in oriPriceIntegralDigits %} {% assign periodIndex = oriPriceIntegralLength | minus: forloop.index %} {% assign periodIndex = periodIndex | plus: 1 %} {% assign periodIndex = periodIndex | modulo: 3 %} {% if forloop.index != 1 and periodIndex == 0 %} {% assign oriPriceIntegral = oriPriceIntegral | append: ',' %} {% endif %} {% assign oriPriceIntegral = oriPriceIntegral | append: digit %} {% endfor %} {% 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 %}   {% endif %} {% if soldOut %} Sold out {% else %} Add to cart {% endif %} {% endfor %} {% if 'false' == 'true' %} {% assign prevLink = '' %} {% if paginate.current_page > 1 %} {% assign prevPage = paginate.current_page | minus: 1 %} {% assign prevLink = '?page=' | append: prevPage %} {% endif %} {% assign nextLink = '' %} {% if paginate.current_page < paginate.pages %} {% assign nextPage = paginate.current_page | plus: 1 %} {% assign nextLink = '?page=' | append: nextPage %} {% endif %} {{ paginate.current_page }} {% endif %} {% endpaginate %} {% else %} {% if 'Mushq' == '' %} Please choose collection to show products from sidebar. {% else %} No products found. Please add some products to the collection first. {% endif %} {% endif %} {% assign collection = oriCollection %} {% else %} No products found. Please add some products to your store first. {% endif %} {% assign product = oriProduct %} {% assign oriCollection = collection %} {% assign collection = collections['maria-b-fancy'] %} {% assign productCount = collection.products | size | at_most: 4 %} {% if productCount > 0 %} {% paginate collection.products by 4 %} {% for product in collection.products limit:productCount %} {% 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 %} {% assign currencyToken = currencySymbol %} {% 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 priceIntegralLength = priceIntegral | size %} {% assign priceIntegralDigits = priceIntegral | split: '' %} {% assign priceIntegral = '' %} {% for digit in priceIntegralDigits %} {% assign periodIndex = priceIntegralLength | minus: forloop.index %} {% assign periodIndex = periodIndex | plus: 1 %} {% assign periodIndex = periodIndex | modulo: 3 %} {% if forloop.index != 1 and periodIndex == 0 %} {% assign priceIntegral = priceIntegral | append: ',' %} {% endif %} {% assign priceIntegral = priceIntegral | append: digit %} {% endfor %} {% 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 oriPriceIntegralLength = oriPriceIntegral | size %} {% assign oriPriceIntegralDigits = oriPriceIntegral | split: '' %} {% assign oriPriceIntegral = '' %} {% for digit in oriPriceIntegralDigits %} {% assign periodIndex = oriPriceIntegralLength | minus: forloop.index %} {% assign periodIndex = periodIndex | plus: 1 %} {% assign periodIndex = periodIndex | modulo: 3 %} {% if forloop.index != 1 and periodIndex == 0 %} {% assign oriPriceIntegral = oriPriceIntegral | append: ',' %} {% endif %} {% assign oriPriceIntegral = oriPriceIntegral | append: digit %} {% endfor %} {% 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 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 %} {% assign currencyToken = currencySymbol %} {% 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 priceIntegralLength = priceIntegral | size %} {% assign priceIntegralDigits = priceIntegral | split: '' %} {% assign priceIntegral = '' %} {% for digit in priceIntegralDigits %} {% assign periodIndex = priceIntegralLength | minus: forloop.index %} {% assign periodIndex = periodIndex | plus: 1 %} {% assign periodIndex = periodIndex | modulo: 3 %} {% if forloop.index != 1 and periodIndex == 0 %} {% assign priceIntegral = priceIntegral | append: ',' %} {% endif %} {% assign priceIntegral = priceIntegral | append: digit %} {% endfor %} {% 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 oriPriceIntegralLength = oriPriceIntegral | size %} {% assign oriPriceIntegralDigits = oriPriceIntegral | split: '' %} {% assign oriPriceIntegral = '' %} {% for digit in oriPriceIntegralDigits %} {% assign periodIndex = oriPriceIntegralLength | minus: forloop.index %} {% assign periodIndex = periodIndex | plus: 1 %} {% assign periodIndex = periodIndex | modulo: 3 %} {% if forloop.index != 1 and periodIndex == 0 %} {% assign oriPriceIntegral = oriPriceIntegral | append: ',' %} {% endif %} {% assign oriPriceIntegral = oriPriceIntegral | append: digit %} {% endfor %} {% 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 %}   {% endif %} {% if soldOut %} Sold out {% else %} Add to cart {% endif %} {% endfor %} {% if 'false' == 'true' %} {% assign prevLink = '' %} {% if paginate.current_page > 1 %} {% assign prevPage = paginate.current_page | minus: 1 %} {% assign prevLink = '?page=' | append: prevPage %} {% endif %} {% assign nextLink = '' %} {% if paginate.current_page < paginate.pages %} {% assign nextPage = paginate.current_page | plus: 1 %} {% assign nextLink = '?page=' | append: nextPage %} {% endif %} {{ paginate.current_page }} {% endif %} {% endpaginate %} {% else %} {% if 'Maria B' == '' %} Please choose collection to show products from sidebar. {% else %} No products found. Please add some products to the collection first. {% endif %} {% endif %} {% assign collection = oriCollection %} {% assign oriCollection = collection %} {% assign collection = collections['elan-fancy'] %} {% assign productCount = collection.products | size | at_most: 4 %} {% if productCount > 0 %} {% paginate collection.products by 4 %} {% for product in collection.products limit:productCount %} {% 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 %} {% assign currencyToken = currencySymbol %} {% 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 priceIntegralLength = priceIntegral | size %} {% assign priceIntegralDigits = priceIntegral | split: '' %} {% assign priceIntegral = '' %} {% for digit in priceIntegralDigits %} {% assign periodIndex = priceIntegralLength | minus: forloop.index %} {% assign periodIndex = periodIndex | plus: 1 %} {% assign periodIndex = periodIndex | modulo: 3 %} {% if forloop.index != 1 and periodIndex == 0 %} {% assign priceIntegral = priceIntegral | append: ',' %} {% endif %} {% assign priceIntegral = priceIntegral | append: digit %} {% endfor %} {% 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 oriPriceIntegralLength = oriPriceIntegral | size %} {% assign oriPriceIntegralDigits = oriPriceIntegral | split: '' %} {% assign oriPriceIntegral = '' %} {% for digit in oriPriceIntegralDigits %} {% assign periodIndex = oriPriceIntegralLength | minus: forloop.index %} {% assign periodIndex = periodIndex | plus: 1 %} {% assign periodIndex = periodIndex | modulo: 3 %} {% if forloop.index != 1 and periodIndex == 0 %} {% assign oriPriceIntegral = oriPriceIntegral | append: ',' %} {% endif %} {% assign oriPriceIntegral = oriPriceIntegral | append: digit %} {% endfor %} {% 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 %}   {% endif %} {% if soldOut %} Sold out {% else %} Add to cart {% endif %} {% endfor %} {% if 'false' == 'true' %} {% assign prevLink = '' %} {% if paginate.current_page > 1 %} {% assign prevPage = paginate.current_page | minus: 1 %} {% assign prevLink = '?page=' | append: prevPage %} {% endif %} {% assign nextLink = '' %} {% if paginate.current_page < paginate.pages %} {% assign nextPage = paginate.current_page | plus: 1 %} {% assign nextLink = '?page=' | append: nextPage %} {% endif %} {{ paginate.current_page }} {% endif %} {% endpaginate %} {% else %} {% if 'Elan' == '' %} Please choose collection to show products from sidebar. {% else %} No products found. Please add some products to the collection first. {% endif %} {% endif %} {% assign collection = oriCollection %} {% assign oriCollection = collection %} {% assign collection = collections['faiza-saqlain'] %} {% assign productCount = collection.products | size | at_most: 4 %} {% if productCount > 0 %} {% paginate collection.products by 4 %} {% for product in collection.products limit:productCount %} {% 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 %} {% assign currencyToken = currencySymbol %} {% 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 priceIntegralLength = priceIntegral | size %} {% assign priceIntegralDigits = priceIntegral | split: '' %} {% assign priceIntegral = '' %} {% for digit in priceIntegralDigits %} {% assign periodIndex = priceIntegralLength | minus: forloop.index %} {% assign periodIndex = periodIndex | plus: 1 %} {% assign periodIndex = periodIndex | modulo: 3 %} {% if forloop.index != 1 and periodIndex == 0 %} {% assign priceIntegral = priceIntegral | append: ',' %} {% endif %} {% assign priceIntegral = priceIntegral | append: digit %} {% endfor %} {% 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 oriPriceIntegralLength = oriPriceIntegral | size %} {% assign oriPriceIntegralDigits = oriPriceIntegral | split: '' %} {% assign oriPriceIntegral = '' %} {% for digit in oriPriceIntegralDigits %} {% assign periodIndex = oriPriceIntegralLength | minus: forloop.index %} {% assign periodIndex = periodIndex | plus: 1 %} {% assign periodIndex = periodIndex | modulo: 3 %} {% if forloop.index != 1 and periodIndex == 0 %} {% assign oriPriceIntegral = oriPriceIntegral | append: ',' %} {% endif %} {% assign oriPriceIntegral = oriPriceIntegral | append: digit %} {% endfor %} {% 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 %}   {% endif %} {% if soldOut %} Sold out {% else %} Add to cart {% endif %} {% endfor %} {% if 'false' == 'true' %} {% assign prevLink = '' %} {% if paginate.current_page > 1 %} {% assign prevPage = paginate.current_page | minus: 1 %} {% assign prevLink = '?page=' | append: prevPage %} {% endif %} {% assign nextLink = '' %} {% if paginate.current_page < paginate.pages %} {% assign nextPage = paginate.current_page | plus: 1 %} {% assign nextLink = '?page=' | append: nextPage %} {% endif %} {{ paginate.current_page }} {% endif %} {% endpaginate %} {% else %} {% if 'Faiza Saqlain' == '' %} Please choose collection to show products from sidebar. {% else %} No products found. Please add some products to the collection first. {% endif %} {% endif %} {% assign collection = oriCollection %} 1. Home Delivery. ALL OVER  THE PAKISTAN  2. Order As a Gift. COMING SOON  3. High Quality. 100% ORIGNAL PRODUCT