Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- function getBusinessDays(days){
- var cDate = new Date();
- for (var i = 1; i <= days ; i++){
- var counter = 1;
- cDate.setDate(cDate.getDate() + counter);
- if (cDate.getDay() == 6 || cDate.getDay() == 0)
- days++;
- }
- var fDate = cDate.getFullYear()+'-'+cDate.getMonth()+'-'+cDate.getDate()
- return fDate;
- }
- </script>
- <!-- START Google Trusted Stores Order -->
- <div id="gts-order" style="display:none;" translate="no">
- <!-- start order and merchant information -->
- <span id="gts-o-id">{$placed.order.id}</span>
- <span id="gts-o-domain"></span>
- <span id="gts-o-email">{$placed.info.billing.email}</span>
- <span id="gts-o-country">US</span>
- <span id="gts-o-currency">{$placed.info.currency_type}</span>
- <span id="gts-o-total">{$placed.totals.grandtotal}</span>
- <span id="gts-o-discounts">ORDER_DISCOUNTS</span>
- <span id="gts-o-shipping-total">{$placed.totals.shiptotal}</span>
- <span id="gts-o-tax-total">{$placed.totals.taxtotal}</span>
- <span id="gts-o-est-ship-date">
- <script type="text/javascript">
- document.write(getBusinessDays(5));
- </script>
- </span>
- <span id="gts-o-est-delivery-date">ORDER_EST_DELIVERY_DATE</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">
- <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 Google Trusted Stores Order -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement