I have this code for the receipt page:
Can I use
for basket size? Wil it work in the receipt page and how might it be included in the above script?
Thank you
Code:
<!-- Trustpilot conversion script -->
<script type="text/javascript">
(function(c,o,n,v,e,r,t){c['TPConversionObject']=e;c[e]=c[e]||function(){c[e].buid='xxxxxxxxxxxxxxxxxxxxxxxx',(c[e].q=c[e].q||[]).push(arguments)};r=o.createElement(n),t=o.getElementsByTagName(n)[0];r.async=1;r.src=v;t.parentNode.insertBefore(r,t)})(window,document,'script','https://widget.trustpilot.com/conversion/conversion.js','tpConversion');
tpConversion('amount', '<Actinic:Variable Name="Total"/>'); // total cost of the order, eg. '13.00'
tpConversion('currency', 'GBP'); // your shop's currency, e.g. USD
tpConversion('basket_size', '[BASKET_SIZE]'); // total number of items purchased
</script>
<!-- End Trustpilot conversion script -->
Code:
document.write(getCartItem(3));
Thank you
Comment