AdWords
5.6K members online now
5.6K members online now
For questions related to Google Shopping and Merchant Center. Learn to optimize your Shopping ads
Guide Me
star_border
Reply

Trusted Store variables implementation & definition

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭
Hi,

I have a general question about the definition/writing of data in the confirmation code. We were able to implement following necessary data in the Java Script:

    var UNDEFINED = '';
    var MERCHANT_ORDER_ID = vars["orderID"];
    var MERCHANT_ORDER_DOMAIN = "company website"/*INSTANT-CONSTANT*//*company website*/;
    var CUSTOMER_EMAIL = UNDEFINED;
    var CUSTOMER_COUNTRY = UNDEFINED;

    var CURRENCY = vars["currency"];
    var ORDER_TOTAL = vars["totalBasketValue"];
    var ORDER_DISCOUNTS = vars["giftVoucherDiscount"];
    var ORDER_SHIPPING = vars["shippingCost"];
    var ORDER_VAT = vars["vatRate"];
    var ORDER_EST_SHIP_DATE = UNDEFINED;
    var ORDER_EST_DELIVERY_DATE = UNDEFINED;
    var HAS_BACKORDER_PREORDER = UNDEFINED;
    var HAS_DIGITAL_GOODS = UNDEFINED;
    var ORDER_TAX = UNDEFINED;

    var ITEM_NAME = UNDEFINED;

    var ITEM_PRICE = UNDEFINED;  
    var ITEM_QUANTITY =
UNDEFINED;

My IT department is now asking me about the data format of the yet undefined variables. I figuered out it must some
  • var HAS_DIGITAL_GOODS = vars["N"];
  • var HAS_BACKORDER_PREORDER = vars["N"];
  • var ORDER_EST_SHIP_DATE = vars["2015-07-28"];
  • var ORDER_EST_DELIVERY_DATE = vars["2015-07-30"];
But I'm not sure how to define/write the other variables. I did not find any example in the internet neither.

Can somebody help?

Regards,
Ben
 
1 Expert replyverified_user
1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author Benjamin H
September 2015

Re: Trusted Store variables implementation & definition

[ Edited ]
Top Contributor
# 2
Top Contributor


that looks to be a mix of what google requires
and a third-party ecommerce implementation --
if so, that third-party support organization
should likely be contacted directly.

what google requires is currently here:
https://support.google.com/trustedstoresmerchant#topic=6063044
https://support.google.com/trustedstoresmerchant/answer/6063065

https://support.google.com/trustedstoresmerchant/answer/6063087

otherwise, a google-trusted-stores specialist may be contacted directly:
https://support.google.com/trustedstoresmerchant/contact/merchant_contact

View solution in original post

Marked as Best Answer.
Solution
Accepted by topic author Benjamin H
September 2015

Re: Trusted Store variables implementation & definition

[ Edited ]
Top Contributor
# 2
Top Contributor


that looks to be a mix of what google requires
and a third-party ecommerce implementation --
if so, that third-party support organization
should likely be contacted directly.

what google requires is currently here:
https://support.google.com/trustedstoresmerchant#topic=6063044
https://support.google.com/trustedstoresmerchant/answer/6063065

https://support.google.com/trustedstoresmerchant/answer/6063087

otherwise, a google-trusted-stores specialist may be contacted directly:
https://support.google.com/trustedstoresmerchant/contact/merchant_contact

Re: Trusted Store variables implementation & definition

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭
Thank you very much for your help!