2015-04-23 209 views

回答

0

禁用內置評論。 Settings > Comments > Built-in 取消選中產品評論複選框,然後保存。

要安裝Yotpo社會評論插件:

登錄到您的Bigcommerce管理頁面。

  • 單擊設置。
  • 點擊商店設置欄中的設計。
  • 點擊編輯HTML/CSS。
  • 單擊其他模板文件 - 面板下的ProductDetails.html。
  • 在文件的最後一行之後添加以下代碼。

    <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>  
    

    ProductDetails

  • 下面直接添加Yotpo JavaScript代碼HTMLHead.html。

  • 轉到設計>編輯HTML/CSS並查找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> 
    

HTMLHead

不要忘了你的鑰匙取代你,APP_KEY。

+0

如果我使用模板設計,那麼我無法訪問/ admin? – acquayefrank