• Hello,

    I need to add a script in the thank you page.
    Does this plugin make the work.
    I have to place a specific script like this :

    <script type=”text/javascript”>
    var sf = sf || [];
    sf.push([‘customer_id’], [‘id_order’], [‘amount’]);

    (function() {
    var sf_script = document.createElement(‘script’);
    sf_script.src = (‘https:’ == document.location.protocol ? ‘https://&#8217; : ‘https://&#8217;) + ‘tag.shopping-feed.com/async.js’;
    sf_script.setAttribute(‘async’, ‘true’);
    document.documentElement.firstChild.appendChild(sf_script);
    })();
    </script>

    I also need to retrieve the order id (id_order) and the total order (amount)

    I have seen that you can hook WC thank you page. What’s the advantage to use your plugin compared to the hook?

    Regards
    Pat

  • The topic ‘Add script in thank you page’ is closed to new replies.