[Skip to main content](#vessel-content)

#   Google Trusted Stores Implementation

##

- **[TheBeacon](/forum/user/30945-thebeacon "View TheBeacon's Profile")**
- [![TheBeacon's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/30945-thebeacon "View TheBeacon's Profile") Topic Author
- [ Offline](/forum/user/30945-thebeacon)

Less More

- Posts: 28
- Thank you received: 1
-
-

10 years 9 months ago [\#226680](#226680) by [TheBeacon](/forum/user/30945-thebeacon "View TheBeacon's Profile")  *[Google Trusted Stores Implementation](/forum/31-development/881592-google-trusted-stores-implementation#226680 "-- HikaShop version -- : 2.6..1 -- Joomla version -- : 3.4.5  I have a customer that is wanting me to integrate Google Trusted Stores the instructions for this as follows:  this part is pretty straight forward and is just put on the site template index.php  the second part is where i am having problems sorting out the best way to implement.  &#42; This code should be placed on your order confirmation page(s). All confirmation pages must be HTTPS.  &#42; The order confirmation module code enables your customers to opt in for purchase protection from Google Trusted Stores after their order is complete and transmits the necessary transaction information to Google.  &#42; Fill in the variables in red for your store.  1. Which hikashop template file should I edit to implement this correctly, and 2. What variables should i use to populate the required variables for google?")* was created by *[TheBeacon](/forum/user/30945-thebeacon "View TheBeacon's Profile")*

-- HikaShop version -- : 2.6..1
-- Joomla version -- : 3.4.5

I have a customer that is wanting me to integrate Google Trusted Stores the instructions for this as follows:

this part is pretty straight forward and is just put on the site template index.php Code:

&lt;!-- BEGIN: Google Trusted Stores --&gt; &lt;script type="text/javascript"&gt; var gts = gts &#124;&#124; []; gts.push(["id", "70xxxx"]); gts.push(["badge_position", "BOTTOM_RIGHT"]); gts.push(["locale", "PAGE_LANGUAGE"]); gts.push(["google_base_offer_id", "ITEM_GOOGLE_SHOPPING_ID"]); gts.push(["google_base_subaccount_id", "ITEM_GOOGLE_SHOPPING_ACCOUNT_ID"]); (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); })(); &lt;/script&gt; &lt;!-- END: Google Trusted Stores --&gt;

the second part is where i am having problems sorting out the best way to implement.

- This code should be placed on your order confirmation page(s). All confirmation pages must be HTTPS.
- The order confirmation module code enables your customers to opt in for purchase protection from Google Trusted Stores after their order is complete and transmits the necessary transaction information to Google.
- Fill in the variables in red for your store. [ Learn more](https://support.google.com/trustedstoresmerchant/answer/6063087?authuser=3&p=ordercode&authuser=3&rd=1)

Code:

&lt;!-- START Google Trusted Stores Order --&gt; &lt;div id="gts-order" style="display:none;" translate="no"&gt; &lt;!-- start order and merchant information --&gt; &lt;span id="gts-o-id"&gt;MERCHANT_ORDER_ID&lt;/span&gt; &lt;span id="gts-o-email"&gt;CUSTOMER_EMAIL&lt;/span&gt; &lt;span id="gts-o-country"&gt;CUSTOMER_COUNTRY&lt;/span&gt; &lt;span id="gts-o-currency"&gt;CURRENCY&lt;/span&gt; &lt;span id="gts-o-total"&gt;ORDER_TOTAL&lt;/span&gt; &lt;span id="gts-o-discounts"&gt;ORDER_DISCOUNTS&lt;/span&gt; &lt;span id="gts-o-shipping-total"&gt;ORDER_SHIPPING&lt;/span&gt; &lt;span id="gts-o-tax-total"&gt;ORDER_TAX&lt;/span&gt; &lt;span id="gts-o-est-ship-date"&gt;ORDER_EST_SHIP_DATE&lt;/span&gt; &lt;span id="gts-o-est-delivery-date"&gt;ORDER_EST_DELIVERY_DATE&lt;/span&gt; &lt;span id="gts-o-has-preorder"&gt;HAS_BACKORDER_PREORDER&lt;/span&gt; &lt;span id="gts-o-has-digital"&gt;HAS_DIGITAL_GOODS&lt;/span&gt; &lt;!-- end order and merchant information --&gt; &lt;!-- start repeated item specific information --&gt; &lt;!-- item example: this area repeated for each item in the order --&gt; &lt;span class="gts-item"&gt; &lt;span class="gts-i-name"&gt;ITEM_NAME&lt;/span&gt; &lt;span class="gts-i-price"&gt;ITEM_PRICE&lt;/span&gt; &lt;span class="gts-i-quantity"&gt;ITEM_QUANTITY&lt;/span&gt; &lt;span class="gts-i-prodsearch-id"&gt;ITEM_GOOGLE_SHOPPING_ID&lt;/span&gt; &lt;span class="gts-i-prodsearch-store-id"&gt;ITEM_GOOGLE_SHOPPING_ACCOUNT_ID&lt;/span&gt; &lt;/span&gt; &lt;!-- end item 1 example --&gt; &lt;!-- end repeated item specific information --&gt; &lt;/div&gt; &lt;!-- END Google Trusted Stores Order --&gt;

1. Which hikashop template file should I edit to implement this correctly, and
2. What variables should i use to populate the required variables for google?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg4MTU5Mi1nb29nbGUtdHJ1c3RlZC1zdG9yZXMtaW1wbGVtZW50YXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86292
- Thank you received: 14271
-
-

10 years 9 months ago [\#226681](#226681) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Google Trusted Stores Implementation](/forum/31-development/881592-google-trusted-stores-implementation#226681 "-- HikaShop version -- : 2.6..1 -- Joomla version -- : 3.4.5  I have a customer that is wanting me to integrate Google Trusted Stores the instructions for this as follows:  this part is pretty straight forward and is just put on the site template index.php  the second part is where i am having problems sorting out the best way to implement.  &#42; This code should be placed on your order confirmation page(s). All confirmation pages must be HTTPS.  &#42; The order confirmation module code enables your customers to opt in for purchase protection from Google Trusted Stores after their order is complete and transmits the necessary transaction information to Google.  &#42; Fill in the variables in red for your store.  1. Which hikashop template file should I edit to implement this correctly, and 2. What variables should i use to populate the required variables for google?")*

Hi,

You want to add that in the "after_end" file via the menu Display&gt;Views.
You can find the variables in $this-&gt;order.
for example:
&lt;?php echo $this-&gt;order-&gt;order_id; ?&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg4MTU5Mi1nb29nbGUtdHJ1c3RlZC1zdG9yZXMtaW1wbGVtZW50YXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[kyteasdale](/forum/user/31211-kyteasdale "View kyteasdale's Profile")**
- [![kyteasdale's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31211-kyteasdale "View kyteasdale's Profile")
- [ Offline](/forum/user/31211-kyteasdale)

Less More

- Posts: 53
- Thank you received: 0
-
-

10 years 5 months ago [\#238945](#238945) by [kyteasdale](/forum/user/31211-kyteasdale "View kyteasdale's Profile")  Replied by *[kyteasdale](/forum/user/31211-kyteasdale "View kyteasdale's Profile")* on topic *[Google Trusted Stores Implementation](/forum/31-development/881592-google-trusted-stores-implementation#238945 "-- HikaShop version -- : 2.6..1 -- Joomla version -- : 3.4.5  I have a customer that is wanting me to integrate Google Trusted Stores the instructions for this as follows:  this part is pretty straight forward and is just put on the site template index.php  the second part is where i am having problems sorting out the best way to implement.  &#42; This code should be placed on your order confirmation page(s). All confirmation pages must be HTTPS.  &#42; The order confirmation module code enables your customers to opt in for purchase protection from Google Trusted Stores after their order is complete and transmits the necessary transaction information to Google.  &#42; Fill in the variables in red for your store.  1. Which hikashop template file should I edit to implement this correctly, and 2. What variables should i use to populate the required variables for google?")*

Hi both,

I'm trying to achieve the same thing. I don't understand the last step of assigning variables. You put "You can find the variables in $this-&gt;order." but I don't understand it.

How can I establish each of these variables? Is there a list of them somewhere? Or could you walk me through it? Thanks

Ky

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg4MTU5Mi1nb29nbGUtdHJ1c3RlZC1zdG9yZXMtaW1wbGVtZW50YXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86292
- Thank you received: 14271
-
-

10 years 5 months ago [\#238955](#238955) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Google Trusted Stores Implementation](/forum/31-development/881592-google-trusted-stores-implementation#238955 "-- HikaShop version -- : 2.6..1 -- Joomla version -- : 3.4.5  I have a customer that is wanting me to integrate Google Trusted Stores the instructions for this as follows:  this part is pretty straight forward and is just put on the site template index.php  the second part is where i am having problems sorting out the best way to implement.  &#42; This code should be placed on your order confirmation page(s). All confirmation pages must be HTTPS.  &#42; The order confirmation module code enables your customers to opt in for purchase protection from Google Trusted Stores after their order is complete and transmits the necessary transaction information to Google.  &#42; Fill in the variables in red for your store.  1. Which hikashop template file should I edit to implement this correctly, and 2. What variables should i use to populate the required variables for google?")*

Hi,

You can find more information on the order variable in our developer documentation.
Please note that doing that requires a developer. If you're not one, you won't be able to do it alone.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg4MTU5Mi1nb29nbGUtdHJ1c3RlZC1zdG9yZXMtaW1wbGVtZW50YXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.162 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
