0
有人可以幫助我爲什麼我的嵌入式小部件不出現在我的yotpo應用程序?我正在使用bigcommerce平臺。我已經嘗試卸載並反覆安裝,但結果仍然相同。嵌入式小工具Yotpo bigcommerce
有人可以幫助我爲什麼我的嵌入式小部件不出現在我的yotpo應用程序?我正在使用bigcommerce平臺。我已經嘗試卸載並反覆安裝,但結果仍然相同。嵌入式小工具Yotpo bigcommerce
要安裝Yotpo社會評論插件:
登錄到您的Bigcommerce管理頁面。
在文件的最後一行之後添加以下代碼。
<script type="text/javascript">
//<![CDATA[
var div = document.createElement("div");
div.setAttribute('class', 'yotpo yotpo-main-widget');
div.setAttribute('data-product-id', "%%GLOBAL_ProductId%%");
div.setAttribute('data-name', "%%GLOBAL_ProductName%%");
div.setAttribute('data-url', document.URL);
div.setAttribute('data-description', "");
div.setAttribute('data-image-url', "%%GLOBAL_ThumbImageURL%%");
if ($(".yotpo.placeholder").length) {
$(".yotpo.placeholder").append(div);
} else {
$("#ProductDescription").append(div);
}
//]]>
</script>
下面直接添加Yotpo JavaScript代碼HTMLHead.html。
在文件的最後一行之後添加以下代碼,僅在</head>
之上。
<script type="text/javascript">
(function e() {
var e = document.createElement("script");
e.type = "text/javascript", e.async = true, e.src = "//staticw2.yotpo.com/YOUR-APP_KEY/widget.js";
var t = document.getElementsByTagName("script")[0];
t.parentNode.insertBefore(e, t)
})();
</script>
不要忘了你的鑰匙取代你,APP_KEY。
如果我使用模板設計,那麼我無法訪問/ admin? – acquayefrank