Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.84 KB | None | 0 0
  1. <meta name="referrer"content="unsafe-url"><script>function shareasaleShopifyGetCookie(cname){var name=cname+"=";var decodedCookie=decodeURIComponent(document.cookie);var ca=decodedCookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' '){c=c.substring(1);} if(c.indexOf(name)==0){return c.substring(name.length,c.length);}} return"";} {%if first_time_accessed%} var shareasaleShopifySSCID=shareasaleShopifyGetCookie('shareasaleShopifySSCID');var shareasaleShopifyUrl="https://shareasale.com/sale.cfm?v=3%2E2&{% assign giftamount = checkout.gift_cards_amount|money_without_currency | remove: ',' %}{% assign subtotal = subtotal_price | money_without_currency | remove: ',' %}{% assign total = subtotal | minus: giftamount %}amount={{total}}&tracking={{order_name|handleize}}&transtype=sale&merchantID=90522&currency={{ shop.currency }}&skulist={% for line_item in line_items %}{% if forloop.last == true %}{{ line_item.sku }}{% else %}{{ line_item.sku | append: ','}}{% endif %}{% endfor %}{% if giftamount %}{% if checkout.discounts %}{% assign discount_total = checkout.discounts_amount | divided_by: 100 | plus: giftamount %}{% else %}{% assign discount_total = giftamount %}{% endif %}{% else %}{% assign discount_total = checkout.discounts_amount %}{% endif %}{% assign dtotal = discount_total | times: 100 %}&pricelist={% if checkout.discounts %}{% for line_item in line_items %}{% if line_item.price > 0 %}{% assign total_cartprice = checkout.subtotal_price | plus: checkout.discounts_amount %}{% assign ratio = dtotal | divided_by: total_cartprice %}{% assign ratioless = 1 | minus: ratio %}{% assign final_item_price = line_item.price | times: ratioless %}{% if forloop.last == true %}{{ final_item_price | money_without_currency | remove: ','}}{% else %}{{ final_item_price | money_without_currency | remove: ',' | append: ','}}{% endif %}{% else %}{% if forloop.last == true %}{{ line_item.price | money_without_currency | remove: ','}}{% else %}{{ line_item.price | money_without_currency | remove: ',' | append: ','}}{% endif %}{% endif %}{% endfor %}{% else %}{% for item in line_items %}{% assign total_cartprice = checkout.subtotal_price %}{% assign ratio = dtotal | divided_by: total_cartprice %}{% assign ratioless = 1 | minus: ratio %}{% assign final_item_price = line_item.price | times: ratioless %}{% if forloop.last == true %}{{ final_item_price | money_without_currency | remove: ',' }}{% else %}{{final_item_price | money_without_currency | remove: ',' | append: ','}}{% endif %}{% endfor %}{% endif %}&quantitylist={% for line_item in line_items %}{% if forloop.last == true %}{{ line_item.quantity }}{% else %}{{ line_item.quantity | append: ','}}{% endif %}{% endfor %}&couponcode={% for discount in checkout.discounts %}{% if forloop.last == true %}{{ discount.code }}{% else %}{{ discount.code | append: ',' }}{% endif %}{% endfor %}{% if customer.orders_count > 1 %}&newcustomer=0{% elsif customer.orders_count <= 1 %}&newcustomer=1{% else %}&newcustomer={% endif %}&sscidmode=6&sscid="+shareasaleShopifySSCID;var shareasaleShopifyPixelImg=new Image();shareasaleShopifyPixelImg.id="_SHRSL_img_1";shareasaleShopifyPixelImg.src=shareasaleShopifyUrl;shareasaleShopifyPixelImg.width=1;shareasaleShopifyPixelImg.height=1;document.body.appendChild(shareasaleShopifyPixelImg);var shareasaleShopifyPixelImgFound=document.querySelector('#_SHRSL_img_1');var shareasaleShopifyPixelSecondChance=document.createElement('script');shareasaleShopifyPixelSecondChance.setAttribute('type','text/javascript');shareasaleShopifyPixelSecondChance.src='https://shareasale-analytics.com/j.js';shareasaleShopifyPixelSecondChance.setAttribute('defer',1);shareasaleShopifyPixelSecondChance.setAttribute('async',1);shareasaleShopifyPixelImgFound.parentNode.insertBefore(shareasaleShopifyPixelSecondChance,shareasaleShopifyPixelImgFound.nextSibling);{%endif%}</script><meta name="referrer"content="origin">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement