Jump to content

marcoforconi

Member
  • Posts

    1
  • Joined

  • Last visited

Posts posted by marcoforconi

  1. this is my confirm.receipt file. i added PAP4 tracking sale at the bottom, but sales are not registered (while PAP4 register clicks correctly)

    what's wrong? anyone can help?

    <div id="receipt">
      <h2>{$LANG.account.your_order}: #{$SUM.cart_order_id} - {$SUM.order_status}</h2>
      {if isset($MESSAGES)}
      {foreach from=$MESSAGES item=message}
      <p>{$message}</p>
      {/foreach}
      {/if}
      {if $CTRL_PAYMENT}
      <div style="text-align: center;"><a href="{$STORE_URL}/index.php?_a=gateway&amp;cart_order_id={$SUM.cart_order_id}">{$LANG.basket.complete_payment}</a></div>
      {/if}
      <h2>{$LANG.basket.customer_info}</h2>
      <div class="address">
    	<p><strong>{$LANG.address.billing_address}</strong><br />
    	{$SUM.title} {$SUM.first_name} {$SUM.last_name}<br />
    	{if $SUM.company_name}{$SUM.company_name}<br />{/if}
    	{$SUM.line1}<br />
    	{if $SUM.line2}{$SUM.line2}<br />{/if}
    	{$SUM.town}<br />
    	{$SUM.state}, {$SUM.postcode}<br />
    	{$SUM.country}
    	</p>
    	<p><strong>{$LANG.address.delivery_address}</strong><br />
    	{$SUM.title_d} {$SUM.first_name_d} {$SUM.last_name_d}<br />
    	{if $SUM.company_name_d}{$SUM.company_name_d}<br />{/if}
    	{$SUM.line1_d}<br />
    	{if $SUM.line2_d}{$SUM.line2_d}<br />{/if}
    	{$SUM.town_d}<br />
    	{$SUM.state_d}, {$SUM.postcode_d}<br />
    	{$SUM.country_d}
    	</p>
      </div>
      {if !empty($SUM.customer_comments)}
      <h2>{$LANG.common.comments}</h2>
      <p>&quot;{$SUM.customer_comments}&quot;</p>
      {/if}
      	{if $DELIVERY}
    	  	<h2>{$LANG.common.delivery}</h2>
    	  	{if !empty($DELIVERY.date)}<p>{$LANG.orders.shipping_date}: {$DELIVERY.date}</p>{/if}
    		{if isset($DELIVERY.url)}
    			<p>{$LANG.basket.track}: <a href="{$DELIVERY.url}" target="_blank">{$DELIVERY.method}</a></p>
    		{else}
    			<p>{$DELIVERY.method} - {$LANG.orders.shipping_tracking}: {$DELIVERY.tracking}
    		{/if}
    	{/if}
      <h2>{$LANG.basket.order_summary}</h2>
      <div class="basket_header">
    	<span class="basket_price">{$LANG.common.price}</span>
    	<span class="basket_price">{$LANG.common.quantity}</span>
    	{$LANG.common.product}
      </div>
      {foreach from=$ITEMS item=item}
      <div class="basket_product">
    	<p>
    	  <span class="price">{$item.price_total}</span>
    	  <span class="price">{$item.quantity}</span>
    	  <strong>{$item.name}</strong> {if isset($item.product_code) && !empty($item.product_code)} - {$item.product_code}{/if} ({$item.price})
    	</p>
    	{if isset($item.options)}
    	<p>{foreach from=$item.options item=option}{$option}<br />{/foreach}</p>
    	{/if}
      </div>
      {/foreach}
      <div class="subtotals">
    	<p><span class="price">{$SUM.subtotal}</span> {$LANG.basket.total_sub}</p>
    	<p><span class="price">{$SUM.shipping}</span> {$LANG.basket.shipping}</p>
    	{foreach from=$TAXES item=tax}
    	<p><span class="price">{$tax.value}</span>{$tax.name}</p>
    	{/foreach}
      </div>
      {if $DISCOUNT}
      <div class="discounts">
    	<p><span class="price">{$SUM.discount}</span> {$LANG.basket.total_discount}</p>
      </div>
      {/if}
      <div class="total"><span class="price">{$SUM.total}</span> {$LANG.basket.total_grand}</div>
      <p><a href="{$STORE_URL}/index.php?_a=receipt&amp;cart_order_id={$SUM.cart_order_id}" target="_blank">{$LANG.confirm.print}</a></p>
      {foreach from=$AFFILIATES item=affiliate}{$affiliate}{/foreach}
      {if $ANALYTICS}
      <!-- Google Analytics for e-commerce -->
      <script type="text/javascript">
    	  {literal}
    	  var _gaq = _gaq || [];
    	  _gaq.push(['_setAccount', '{/literal}{$GA_SUM.google_id}{literal}']);
    	  _gaq.push(['_trackPageview']);
    	  _gaq.push(['_addTrans',
    	    '{/literal}{$GA_SUM.cart_order_id}{literal}',           // order ID - required
    	    '{/literal}{$GA_SUM.store_name}{literal}',  // affiliation or store name
    	    '{/literal}{$GA_SUM.total}{literal}',          // total - required
    	    '{/literal}{$GA_SUM.total_tax}{literal}',           // tax
    	    '{/literal}{$GA_SUM.shipping}{literal}',              // shipping
    	    '{/literal}{$GA_SUM.town}{literal}',       // city
    	    '{/literal}{$GA_SUM.state}{literal}',     // state or province
    	    '{/literal}{$GA_SUM.country_iso}{literal}'             // country
    	  ]);
    	  {/literal}
    		   // add item might be called for every item in the shopping cart
    	   // where your ecommerce engine loops through each item in the cart and
    	   // prints out _addItem for each
    	  {foreach from=$GA_ITEMS item=item}
    	  {literal}
    	  _gaq.push(['_addItem',
    	    '{/literal}{$GA_SUM.cart_order_id}{literal}',           // order ID - required
    	    '{/literal}{$item.product_code}{literal}',           // SKU/code - required
    	    '{/literal}{$item.name}{literal}',        // product name
    	    '',   // category or variation
    	    '{/literal}{$item.price}{literal}',          // unit price - required
    	    '{/literal}{$item.quantity}{literal}'               // quantity - required
    	  ]);
    	  {/literal}
    	  {/foreach}
    	  {literal}
    	  _gaq.push(['_trackTrans']); //submits transaction to the Analytics servers
    		  (function() {
    	    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    	    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    	    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    	  })();
    	  {/literal}
      </script>
      {/if}
    </div>
    <script type="text/javascript"><!--document.write(unescape("%3Cscript id='pap_x2s6df8d' src='" + (("https:" == document.location.protocol) ? "https://" : "http://") + "eanyx.com/aff/scripts/trackjs.js' type='text/javascript'%3E%3C/script%3E"));//-->
    </script>
    <script type="text/javascript">
    <!--PostAffTracker.setAccountId('default1');try {PostAffTracker.track();} catch (err) { }//-->
    </script>
    
    
×
×
  • Create New...