我想知道是否有人有为Bigcommerce商家实现Google Trusted Stores的经验。Bigcommerce提出,如果你付钱给他们,就可以帮你做这件事,但我正试着自己做。
在Google Trusted Stores订单确认模块上,他们需要将某些信息传递给他们。据我所知,其中一些信息在Bigcommerce订单确认页面上不作为变量提供。以下是order confirmation module的文档。
正如您所看到的,它需要客户电子邮件、客户国家/地区等数据,无论订单中的项目是否处于预购状态。有没有办法从Bigcommerce那里获得这些信息?它们是否输出可以使用的%%GLOBAL_CUSTOMEREMAIL%%类型的变量?
如果不是,那么Bigcommerce在为您处理Google可信集成时必须在服务器上填充此信息。这意味着你不能使用Bigcommerce成为谷歌信任的商店,除非你付钱让他们做集成。我希望情况并非如此。
有没有人有这方面的经验?
发布于 2015-01-27 13:37:00
我在启用Google Trusted Stores代码方面有一些经验,而不必订阅白金级别(我在一个黄金级别的计划中)。我已经成功地通过ShipWorks设置了自动每日发货和取消提要。我相信我在footer.html上正确设置了“徽章”代码:
<!-- BEGIN: Google Trusted Stores -->
<script type="text/javascript">
var gts = gts || [];
gts.push(["id", "######"]);
gts.push(["badge_position", "BOTTOM_RIGHT"]);
gts.push(["locale", "en_AU"]);
gts.push(["google_base_offer_id", "%%GLOBAL_ProductId%%"]);
gts.push(["google_base_subaccount_id", "8669332"]);
gts.push(["google_base_country", "AU"]);
gts.push(["google_base_language", "en_AU"]);
(function() {
var gts = document.createElement("script");
gts.type = "text/javascript";
gts.async = true;
gts.src = "https://www.googlecommerce.com/trustedstores/api/js";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(gts, s);
})();
</script>
<!-- END: Google Trusted Stores -->我必须把订单确认模块代码放在网站上。问题是找出Est。发货日期和估计。并将其放入一个“循环”中,以获取订单中每个项目的请求数据。我在order.html页面上放置了以下代码:
<!-- START Google Trusted Stores Order -->
<div id="gts-order" style="display:none;" translate="no">
<!-- start order and merchant information -->
<span id="gts-o-id">%%GLOBAL_OrderId%%</span>
<span id="gts-o-domain">www.****.com.au</span>
<span id="gts-o-email">%%GLOBAL_CurrentCustomerEmail%%</span>
<span id="gts-o-country">%%GLOBAL_ShipCountry%%</span>
<span id="gts-o-currency">%%GLOBAL_CurrencyName%%</span>
<span id="gts-o-total">%%GLOBAL_OrderTotal%%</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">ORDER_EST_SHIP_DATE</span>
<span id="gts-o-est-delivery-date">ORDER_EST_DELIVERY_DATE</span>
<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">######</span>
<span class="gts-i-prodsearch-country">AU</span>
<span class="gts-i-prodsearch-language">en_AU</span>
</span>
<!-- end item 1 example -->
<!-- end repeated item specific information -->
</div>
<!-- END Google Trusted Stores Order -->有人在这方面取得了成功吗?
https://stackoverflow.com/questions/25768297
复制相似问题