VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: FlipBrian on December 21, 2016, 07:27:41 AM

Title: Intergrating Google Trusted Store java code using Authorized.net as gatway
Post by: FlipBrian on December 21, 2016, 07:27:41 AM
Intergrating Google Trusted Store java code using Authorized.net as gatway


Google states "This code should be placed on your order confirmation page(s). All confirmation pages must be HTTPS.
I found many solved issues using paypal, which I do not use. I use authorize.net. And yes HTTPS is set up and working well.

Does anybody have any Idea where to place the code. I am using Virtuemart 3.0.18

Please help, I am lost here.

Here is code they state to add to confirmation module

<!-- START Google Trusted Stores Order -->
<div id="gts-order" style="display:none;" translate="no">

  <!-- start order and merchant information -->
  <span id="gts-o-id">MERCHANT_ORDER_ID</span>
  <span id="gts-o-email">CUSTOMER_EMAIL</span>
  <span id="gts-o-country">CUSTOMER_COUNTRY</span>
  <span id="gts-o-currency">CURRENCY</span>
  <span id="gts-o-total">ORDER_TOTAL</span>
  <span id="gts-o-discounts">ORDER_DISCOUNTS</span>
  <span id="gts-o-shipping-total">ORDER_SHIPPING</span>
  <span id="gts-o-tax-total">ORDER_TAX</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">HAS_BACKORDER_PREORDER</span>
  <span id="gts-o-has-digital">HAS_DIGITAL_GOODS</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">ITEM_NAME</span>
    <span class="gts-i-price">ITEM_PRICE</span>
    <span class="gts-i-quantity">ITEM_QUANTITY</span>
    <span class="gts-i-prodsearch-id">ITEM_GOOGLE_SHOPPING_ID</span>
    <span class="gts-i-prodsearch-store-id">ITEM_GOOGLE_SHOPPING_ACCOUNT_ID</span>
  </span>
  <!-- end item 1 example -->
  <!-- end repeated item specific information -->

<>
<!-- END Google Trusted Stores Order -->

Thank you,
Brian R. White
http://Https://www.flipperguides.com (http://https://www.flipperguides.com)
Title: Re: Intergrating Google Trusted Store java code using Authorized.net as gatway
Post by: Studio 42 on December 23, 2016, 14:39:56 PM
This need to be added on the order confirmation page.
But all KEYs eg "ITEM_NAME" have to use right real value.
Title: Re: Intergrating Google Trusted Store java code using Authorized.net as gatway
Post by: FlipBrian on January 04, 2017, 03:35:53 AM
Correct, but where is this php / html file found.
I think what i am looking for is filename/path via ftp.
I've tried adding it through the control panel of virtuemart via ORDER STATUSES pages with no luck.

There is stated success using paypal, but nothing on authorized.net as the gate way. I even placed it in the gate ways plugin pages with syntax errors only. No luck.

Please help?
Title: Re: Intergrating Google Trusted Store java code using Authorized.net as gatway
Post by: Studio 42 on January 04, 2017, 11:43:11 AM
You need to add the code in JOOMLAROOT\components\com_virtuemart\views\cart\tmpl\order_done.php
or better override it in your template