我已尝试使用徽章的代码并成功获得批准。至于转换模块。我必须使用javascript为EST发货日期和EST交货日期做一个“Hack”:
<!-- Include the conversion tracking code for all analytics packages --> <!-- START Google Trusted Stores Order --> <div id="gts-order" style="display:none;" translate="no"> <!-- start order and merchant information --> <span id="gts-o-id">%%ORDER_ID%%</span> <span id="gts-o-domain">www.doubletakeshapewear.com</span> <span id="gts-o-email">%%ORDER_EMAIL%%</span> <span id="gts-o-country">%%GLOBAL_ShipCountry%%</span> <span id="gts-o-currency">%%GLOBAL_CurrencyName%%</span> <span id="gts-o-total">%%ORDER_AMOUNT%%</span> <span id="gts-o-discounts">%%GLOBAL_CouponDiscount%%</span> <span id="gts-o-shipping-total">%%GLOBAL_ShippingPrice%%</span> <span id="gts-o-tax-total">%%GLOBAL_TaxCost%%</span> <span id="gts-o-est-ship-date"></span> <script> var today = new Date(); var tomorrow = new Date(); tomorrow.setDate(today.getDate()+3); if(tomorrow.getMonth() <= 8){ var fecha = tomorrow.getFullYear()+'-'+'0'+(tomorrow.getMonth()+1)+'-'+tomorrow.getDate(); } else{ var fecha = tomorrow.getFullYear()+'-'+(tomorrow.getMonth()+1)+'-'+tomorrow.getDate(); } document.getElementById("gts-o-est-ship-date").innerHTML = fecha; </script> <span id="gts-o-est-delivery-date"></span> <script> var today2 = new Date(); var tomorrow2 = new Date(); var j =document.getElementById("gts-o-country").innerHTML; if( j != 'US'){ if( tomorrow2.setDate(today.getDate()+4); if(tomorrow2.getMonth() <= 8){ var fecha2 = tomorrow2.getFullYear()+'-'+'0'+(tomorrow2.getMonth()+1)+'-'+tomorrow2.getDate(); } else{ var fecha2 = tomorrow2.getFullYear()+'-'+(tomorrow2.getMonth()+1)+'-'+tomorrow2.getDate(); } document.getElementById("gts-o-est-delivery-date").innerHTML = fecha2; }else{ tomorrow2.setDate(today.getDate()+20); if(tomorrow2.getMonth() <= 8){ var fecha2 = tomorrow2.getFullYear()+'-'+'0'+(tomorrow2.getMonth()+1)+'-'+tomorrow2.getDate(); } else{ var fecha2 = tomorrow2.getFullYear()+'-'+(tomorrow2.getMonth()+1)+'-'+tomorrow2.getDate(); } document.getElementById("gts-o-est-delivery-date").innerHTML = fecha2; } </script> <span id="gts-o-has-preorder">N</span> <span id="gts-o-has-digital">N</span> <!-- end order and merchant information --> <!-- start repeated item specific information --> <!-- item example: this area repeated for each item in the order --> <span class="gts-item"> <span class="gts-i-name">%%GLOBAL_ProductName%%</span> <span class="gts-i-price">%%GLOBAL_ProductPrice%%</span> <span class="gts-i-quantity">%%GLOBAL_ProductQuantity%%</span> <span class="gts-i-prodsearch-id">%%GLOBAL_ProductId%%</span> <span class="gts-i-prodsearch-store-id">483911</span> <span class="gts-i-prodsearch-country">US</span> <span class="gts-i-prodsearch-language">en_US</span> </span> <!-- end item 1 example --> <!-- end repeated item specific information --> </div> <!-- END Google Trusted Stores Order -->
我把它放在order.html下面我正在检查其他一些选项,因为你的代码在交货日期和发货日期是不完整的。当我与一些大商业人士谈话时,他们说这些变量来自客户信息,当你是白金时给出的(这意味着它们甚至不存在于大商业上)
如果您发现其他内容或者它是否适合您,请告诉我。另外请不要忘记购买并安装自己的ssl
根据我使用Bigcommerce的经验,这是不可能的。它们限制了GTS所需的数据仅在其系统输出的代码中可用,而不是在其他文件中。基本上,即使我们知道变量是什么,我也不相信它们会起作用,因为它们不是全球范围。
我猜想如果你可以使用GTS来销售你的产品,那么从你的黄金到白金级别的小幅增加将很快弥补你的销售额。