Google客户评论引发404错误Magento 2.2.3

时间:2018-06-11 12:59:59

标签: php magento

在Google客户评论脚本添加时,Magento 2会抛出404错误。我该如何解决这个错误。我希望在我的网站上获得客户评论。

Click On This Link For Clearance

<?php $merchantId=106301268; 
 $_position="TOP_LEFT";
?>

<script src="https://apis.google.com/js/platform.js?onload=renderBadge" async defer></script> <script>
    window.renderBadge = function() {
        var ratingBadgeContainer = document.createElement("div");
        document.body.appendChild(ratingBadgeContainer);
        window.gapi.load('ratingbadge', function() {
            window.gapi.ratingbadge.render(ratingBadgeContainer, {
                "merchant_id": <?php echo $merchantId ?>,
                "position": "<?php echo $_position ?>"
            });
        });
    } </script>

0 个答案:

没有答案