Author Topic: Final Page After Order Completed  (Read 9778 times)

Offline flyn

  • Full Member
  • ***
  • Posts: 142
  • Karma: +8/-0
    • View Profile
Final Page After Order Completed
« on: August 20, 2014, 03:18:26 PM »
Hello. I placed a test order and went thru the entire process and everything was fine. I need to know which page or pages make up this final page which I would call 'thanks'.

Is it the one called Success? Also on this page is the header and footer included? I am asking as I am working with a 3rd party from Google Ad Words and he wants me to paste some code in for better tracking of sales and I dont know where to paste it in.

Thanks

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5774
  • Karma: +274/-2
    • View Profile
Re: Final Page After Order Completed
« Reply #1 on: August 21, 2014, 01:57:02 AM »
Hello. I placed a test order and went thru the entire process and everything was fine. I need to know which page or pages make up this final page which I would call 'thanks'.

Is it the one called Success?

Hi.
Yes 'Success' page. Try this page if you use default HTML5 template
Quote
public_html/storefront/view/default_html5/template/common/success.tpl
https://github.com/abantecart/abantecart-src/blob/master/public_html/storefront/view/default_html5/template/common/success.tpl

Offline flyn

  • Full Member
  • ***
  • Posts: 142
  • Karma: +8/-0
    • View Profile
Re: Final Page After Order Completed
« Reply #2 on: August 21, 2014, 09:25:42 AM »
Would I paste the tracking code in here or would I need to do that in another page like the footer?

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5774
  • Karma: +274/-2
    • View Profile
Re: Final Page After Order Completed
« Reply #3 on: August 21, 2014, 10:02:43 AM »
Would I paste the tracking code in here or would I need to do that in another page like the footer?

Google recomended to paste code between the body tags (<body></body>) so if you need to paste some google code to 'thank you' page (in AbanteCart called 'Success' page shown after order confirm) use  public_html/storefront/view/default_html5/template/common/success.tpl file

Offline flyn

  • Full Member
  • ***
  • Posts: 142
  • Karma: +8/-0
    • View Profile
Re: Final Page After Order Completed
« Reply #4 on: August 21, 2014, 10:38:31 AM »
OK I added the code. I hope it works.

Thanks

Offline GottaRun

  • Newbie
  • *
  • Posts: 35
  • Karma: +6/-0
    • View Profile
    • GottaRun Webshop
Re: Final Page After Order Completed
« Reply #5 on: January 07, 2015, 10:39:39 AM »
Similar question.

In the public_html/storefront/view/default_html5/template/common/success.tpl file I have included a Facebook Conversion Tracking pixel as below

Quote
<!-- Facebook Conversion Code for Converted Sales -->
<script>(function() {
  var _fbq = window._fbq || (window._fbq = []);
  if (!_fbq.loaded) {
    var fbds = document.createElement('script');
    fbds.async = true;
    fbds.src = '//connect.facebook.net/en_US/fbds.js';
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(fbds, s);
    _fbq.loaded = true;
  }
})();
window._fbq = window._fbq || [];
window._fbq.push(['track', '6017277759566', {'value':'0.00','currency':'EUR'}]);
</script>
<noscript><img height="1" width="1" alt="" style="display:none" src="https://www.facebook.com/tr?ev=6017277759566&amp;cd[value]=0.00&amp;cd[currency]=EUR&amp;noscript=1" /></noscript>

I would like to ask for confirmation if this is 'simply' copied and pasted into the file like this:

Quote
<h1 class="heading1">
  <span class="maintext"><i class="icon-thumbs-up"></i> <?php echo $heading_title; ?></span>
  <span class="subtext"></span>
</h1>

<div class="container-fluid">

<section class="mb40">
   <p><?php echo $text_message; ?></p>
   
   <a href="<?php echo $continue; ?>" class="btn mr10" title="<?php echo $continue_button->text ?>">
       <i class="icon-arrow-right"></i>
       <?php echo $continue_button->text ?>
   </a>
</section>

<!-- Facebook Conversion Code for FB ad tracker -->
<script>(function() {
  var _fbq = window._fbq || (window._fbq = []);
  if (!_fbq.loaded) {
    var fbds = document.createElement('script');
    fbds.async = true;
    fbds.src = '//connect.facebook.net/en_US/fbds.js';
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(fbds, s);
    _fbq.loaded = true;
  }
})();
window._fbq = window._fbq || [];
window._fbq.push(['track', '6013584453966', {'value':'0.00','currency':'EUR'}]);
</script>
<noscript><img height="1" width="1" alt="" style="display:none" src="https://www.facebook.com/tr?ev=6013584453966&amp;cd[value]=0.00&amp;cd[currency]=EUR&amp;noscript=1" /></noscript>

</div>

Or should it be placed elsewhere or after the "</div>" in a section of it's own?

Thanks.

BTW flyn how are you getting on with your insert? Is the code working?

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5774
  • Karma: +274/-2
    • View Profile
Re: Final Page After Order Completed
« Reply #6 on: January 12, 2015, 06:01:20 AM »
Or should it be placed elsewhere or after the "</div>" in a section of it's own?

Hi.
JavaScript code can be placed without div http://www.w3schools.com/js/js_whereto.asp

 

Powered by SMFPacks Social Login Mod