My Sellerdeck Account | Free Trial

Sellerdeck Community and Knowledge Base

  #31  
Old Yesterday, 10:02 AM
graphicz's Avatar
graphicz graphicz is offline
Registered User
Join Date: May 2007
Full Name: Jonathan Chappell
Posts: 785
Thanks: 74
Thanked 111 Times in 88 Posts
Indeed, but I am trying to get a solution to using the pixel code in v14 sites.

v14 does not have the <actinic:variable name="OrderTotalBaseUnit" /> variable.

Can this be created somehow?????
__________________
Jonathan Chappell
Website Designer
SellerDeck Website Designer
Actinic to SellerDeck upgrades
Graphicz Limited - www.graphicz.co.uk
Reply With Quote
  #32  
Old Yesterday, 10:46 AM
NormanRouxel's Avatar
NormanRouxel NormanRouxel is online now
Registered User
Join Date: Dec 2002
Full Name: Norman Rouxel
Posts: 10,795
Thanks: 9
Thanked 761 Times in 635 Posts
It's not a copy/paste solution. Use the first line from my fix but remove the BlockIf as you should be putting the code on the Receipt layout somewhere near the bottom.
__________________
Norman - www.drillpine.biz
Edinburgh, U K / Bitez, Turkey
Reply With Quote
  #33  
Old Yesterday, 10:57 AM
NormanRouxel's Avatar
NormanRouxel NormanRouxel is online now
Registered User
Join Date: Dec 2002
Full Name: Norman Rouxel
Posts: 10,795
Thanks: 9
Thanked 761 Times in 635 Posts
And make sure that id="idGrandTotal" is added the the <b> tag that surrounds the Total on the Total Row layout and use idGrandTotal instead of idCartHeadingTotal.
__________________
Norman - www.drillpine.biz
Edinburgh, U K / Bitez, Turkey
Reply With Quote
The Following User Says Thank You to NormanRouxel For This Useful Post:
graphicz (Yesterday)
  #34  
Old Yesterday, 11:47 AM
NormanRouxel's Avatar
NormanRouxel NormanRouxel is online now
Registered User
Join Date: Dec 2002
Full Name: Norman Rouxel
Posts: 10,795
Thanks: 9
Thanked 761 Times in 635 Posts
Or an alternative fix for your post #29 is to sanitize those &#nnn; bits by simply replacing:
Code:
fbq('track', 'Purchase', {value: ('<Actinic:Variable Name="Total"/>').replace(/[^0-9\.]/g, ''), currency: 'GBP'});
with
Code:
fbq('track', 'Purchase', {value: $( "<div/>" ).html('<actinic:variable name="Total" />').text().replace(/[^\d\.]/g, ''), currency: 'GBP'});
__________________
Norman - www.drillpine.biz
Edinburgh, U K / Bitez, Turkey
Reply With Quote
  #35  
Old Yesterday, 01:51 PM
graphicz's Avatar
graphicz graphicz is offline
Registered User
Join Date: May 2007
Full Name: Jonathan Chappell
Posts: 785
Thanks: 74
Thanked 111 Times in 88 Posts
Perfect!

This is the result:
Code:
CUSTOM PARAMETERS SENT
value: 78.24
currency: GBP
This is the Pixel code on the receipt page near the bottom:

Code:
<!-- Facebook Pixel Code -->
<script>
  !function(f,b,e,v,n,t,s)
  {if(f.fbq)return;n=f.fbq=function(){n.callMethod?
  n.callMethod.apply(n,arguments):n.queue.push(arguments)};
  if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
  n.queue=[];t=b.createElement(e);t.async=!0;
  t.src=v;s=b.getElementsByTagName(e)[0];
  s.parentNode.insertBefore(t,s)}(window, document,'script',
  'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', 'xxxxxxxxxxxxxxx');
fbq('track', 'PageView');
fbq('track', 'Purchase', {value: $( "#idGrandTotal" ).text().replace(/[^0-9\.]/g, ''), currency: 'GBP'});
</script>
<noscript>
<img height="1" width="1" src="https://www.facebook.com/tr?id=xxxxxxxxxxxxxxx&ev=PageView&noscript=1"/>
</noscript>
This is the edited Layout Code - Total Row:

Code:
<Actinic:REMOVE TAG="TotalRow">
<tr class="checkoutMobileTR">
   <td align="right" colspan="<Actinic:Variable Name="PriceColSpan"/>"><b><Actinic:Variable Name="TotalCaption"/></b></td>
   <td align="right" class="checkout-cartheading"><b id="idGrandTotal"><Actinic:Variable Name="Total"/></b></td>
</tr>
</Actinic:REMOVE>
Thank you so much Norman.
__________________
Jonathan Chappell
Website Designer
SellerDeck Website Designer
Actinic to SellerDeck upgrades
Graphicz Limited - www.graphicz.co.uk
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 02:53 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.