Help me sent price without tax

jacob_n_masters
Shopify Partner
15 0 12

Hi,

We use Tradetracker as affiliate and need to sent the amount sold without tax.. and hoping some of you can help me?

This is the script we use:

{% for line_item in line_items %}
<script type="text/javascript">
 var ttConversionOptions = ttConversionOptions || [];
 ttConversionOptions.push({
  type: 'sales',
  campaignID: 'XXXXX',
  productID: 'XXXXX',
  transactionID: '{{ order_number }}',
  transactionAmount: parseFloat('{{ line_item.line_price | money_without_currency | replace: '.', '' | replace: ',', '' }}') / 100, 
  quantity: '1',
  email: '',
  descrMerchant: '{{ line_item.sku }}',
  descrAffiliate: '{{ line_item.sku }}',
  currency: ''
 });
</script>
<noscript>
 <img src="//ts.tradetracker.net/?cid=CAMPAIGN_ID&amp;pid=PRODUCT_ID&amp;tid={{ order_number }}&amp;tam={{ line_item.line_price | money_without_currency }}&amp;data=&amp;qty=1&amp;eml=&amp;descrMerchant={{ line_item.sku }}&amp;descrAffiliate={{ line_item.sku }}&amp;event=sales&amp;currency=EUR" alt="" />
</noscript>
{% endfor %}
<script type="text/javascript">
 (function(ttConversionOptions) {
  var campaignID = 'campaignID' in ttConversionOptions ? ttConversionOptions.campaignID : ('length' in ttConversionOptions && ttConversionOptions.length ? ttConversionOptions[0].campaignID : null);
  var tt = document.createElement('script'); tt.type = 'text/javascript'; tt.async = true; tt.src = '//tm.tradetracker.net/conversion?s=' + encodeURIComponent(campaignID) + '&t=m';
  var s = document.getElementsByTagName('script'); s = s[s.length - 1]; s.parentNode.insertBefore(tt, s);
 })(ttConversionOptions);
</script>

 

hope you can help me out

 

Thanks

Jacob N Masters (Vetboxen.dk)

0 Likes
Kunal9
New Member
5 0 0

Hi @jacob_n_masters,

I want to use TradeTracker and i'm are curious how you fixed the step 1 of the implementation with your Shopify store.

Greetz,

Kunal

0 Likes