Shopify独立站和Wordpress商城如何实现无需插件包裹追踪功能?



 Track123代码:

<script type="text/javascript">window.track123WidgetConfig = {"api_base":"https://www.track123.com","provider_type":"1","language":"en_US","theme_color":"#03F907","width_type":"auto","width_value":""};(function (e, t, n) {var r, i = e.getElementsByTagName(t)[0];if (e.getElementById(n)) return;r = e.createElement(t);r.src = "https://www.track123.com/track123-widget.min.js";i.parentNode.insertBefore(r, i)})(document, "script", "track123-tracking-widget")</script>

<div id="track123-tracking-widget"></div>


17track代码:

<div style="margin-top: 10px; margin-bottom: 20px;"><!--Tracking number input box.--> <input class="Form__Input" type="text" placeholder="Enter your Tracking number" id="YQNum" maxlength="50" style="width: 100%; height: 57px;"> <!--The button is used to call script method.--> <input class="Button" style="background: #000; border-radius: 0; width: 100%; height: 50px; margin-left: 0px; color: #fff;" type="button" value="TRACK" onclick="doTrack()"> <!--Container to display the tracking result.-->

<div id="YQContainer"></div>

<!--脚本代码可放于页面底部,等到页面最后执行。--> <script type="text/javascript" src="//www.17track.net/externalcall.js"></script> <script type="text/javascript">

function doTrack() {

    var num = document.getElementById("YQNum").value;

    if(num===""){

        alert("Enter your number."); 

        return;

    }

   YQV5.trackSingle({

        //Required, Specify the container ID of the carrier content.

        YQ_ContainerId:"YQContainer",

        //Optional, specify tracking result height, max height 800px, default is 560px.

        YQ_Height:560,

        //Optional, select carrier, default to auto identify.

        YQ_Fc:"0",

        //Optional, specify UI language, default language is automatically detected based on the browser settings.

        YQ_Lang:"en",

        //Required, specify the number needed to be tracked.

        YQ_Num:num

    });

}

// ]]>

</script></div>

评论

此博客中的热门博文

关于交流群

一键代发,Doba平台介绍,一站式跨境电商代发服务

聊聊跨境电商过程,劝退外贸新手,独立站没你想的那么简单,入坑需谨慎

选货代需要参考的七点,我推荐的货代物流公司