Jump to content

Smarty Variables for Google Trusted Store Order Confirmation Module Code Not Working


flowfeet

Recommended Posts

I am looking to implement the Google Trusted Store Order Confirmation Module Code onto my website. I am able to upload the code on the order-confirmation.tpl file but some of the smarty variables are not working properly. Specifically the ones listed below.

 

{$smarty.get.id_product}

{$priceDisplay}
{$smarty.now}

{$product.product_name}

Below is the code I currently have:
 

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

  <!-- start order and merchant information -->
  <span id="gts-o-id">{$smarty.get.id_product}</span>
  <span id="gts-o-domain">{$base_dir_ssl}</span>
  <span id="gts-o-email">{$cookie->email}</span>
  <span id="gts-o-country">US</span>
  <span id="gts-o-currency">USD</span>
  <span id="gts-o-total">{$priceDisplay}</span>
  <span id="gts-o-discounts">{$priceDisplay}</span>
  <span id="gts-o-shipping-total">{$priceDisplay}</span>
  <span id="gts-o-tax-total">{$use_taxes}</span>
  <span id="gts-o-est-ship-date">{$smarty.now}</span>
  <span id="gts-o-est-delivery-date">{$smarty.now}</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"> 
  {foreach from=$products item=product name=products}
    <span class="gts-i-name">{$product.product_name}</span>
    <span class="gts-i-price">{$priceDisplay}</span>
    <span class="gts-i-quantity">{$cart_qties}</span>
    <span class="gts-i-prodsearch-id">{$product.id_product}</span> 
    <span class="gts-i-prodsearch-store-id">{$cart->id_shop}</span> 
    <span class="gts-i-prodsearch-country">US</span>
    <span class="gts-i-prodsearch-language">EN</span>
{/foreach}
  </span>
  <!-- end item 1 example -->
  <!-- end repeated item specific information -->
</div>
<!-- END Google Trusted Stores Order -->

Are the global variables wrong? I am using Prestashop v. 1.6.1

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...