Shopify獨立站和Wordpress商城如何實現無需插件包裹追蹤功能?
本文有444個文字,大小約為2KB,預計閱讀時間2分鐘
原文標題: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[xss_clean].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>
本文來源:http://www.kyotomoriagedaisakusen.com/tutorials/254.html
版權聲明:本文為向前網絡工作室,未經站長允許不得轉載。