Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Google Trusted Stores - NEED HELP MODIFY THE JAVASCRIPT WITH OSCOMMERCE DATA


Eliana Alexandra

Recommended Posts

I need Implement the code in the Checkout_sucess.php in my website, but i tried but i failed evertime.

 

the google Trusted Stores Inplementing instructions can be found at: https://support.google.com/trustedstoresmerchant/bin/answer.py?hl=en&answer=2609894&ctx=go#Section2

 

The Order Confirmation module code. This code allows customers to opt-in to the program and also transmits the necessary transaction information to Google. This code should be placed on your order confirmation page(s).

but i need Change the Red Information and change with the oscommerce info, but i dont know how do it,

 

Somebody can help Me

<!-- START Trusted Stores Order -->

<div id="gts-order" style="display:none;">

 

<!-- start order and merchant information -->

<span id="gts-o-id">MERCHANT_ORDER_ID</span>

<span id="gts-o-domain">MERCHANT_ORDER_DOMAIN</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-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 class="gts-i-prodsearch-country">ITEM_GOOGLE_SHOPPING_COUNTRY</span>

<span class="gts-i-prodsearch-language">ITEM_GOOGLE_SHOPPING_LANGUAGE</span>

</span>

<!-- end item 1 example -->

<!-- end repeated item specific information -->

 

</div>

<!-- END Trusted Stores -->

 

Somebody Can help Me

Thanks

Eliana

Link to comment
Share on other sites

@@Eliana Alexandra

 

I realized it is not Google Checkout. In order for you to get this:

 

<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-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>

 

You are going to need to create a script that will populate that information from the database as the customer checks out. However, some of that information isn't posted to the database until the very end of the checkout process. So, I am not sure how you plan to use the Google Trusted Site script.

 

 

Chris

Link to comment
Share on other sites

@@Eliana Alexandra

 

You can't use the code as it was given. It is not compatible with osCommerce as the script is not written to request the information from osCommerce. So, like I said, you would need to create a script that would request the data from the database and then transmit it to Google.

 

 

 

Chris

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...