Search the Community
Showing results for tags 'smarty variables'.
-
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
-
hello, i am trying to modify custom bought module and i have stucked. i have an array of carriers with name and price; if carrier price = 0, then show "free delivery" else show price 1/ i need to show "free delivery" also when product price > free delivery limit (free delivery limit should be taken automatically from settings or manually hard coded) 2/ showing "free delivery" also when there is product price < free delivery limit but (cart ammount + product price) > free delivery limit any clues how to do it in .tpl? {foreach from=$final_carriers item=carrier} {if $carrier.price == 0 } <li>{$carrier.name} : <strong>Free delivery!</strong></li> {else} <li>{$carrier.name} : <strong>{convertPrice price=$carrier.price}</strong></li> {/if} {/foreach}
-
- smarty variables
- .tpl modify
-
(and 1 more)
Tagged with:
-
Hello, Is the Prestashop Version 1.6.0.6 ignoring not registered smarty variables? If so, how can I change this so that they are not ignored? Many thanks for your help. chello
-
on Prestashop 1.5, I try to get product->description in hookProductTab PHP module. - the module hookProductTab is called before ProductController function initContent(), so it seems impossible to get module description - what is the best way to get product->description even in ProductController the following code does not work $tplproducts = $smarty->tpl_vars['product']->value; $m1 = $tplproducts->description_short; Is there a solution to get product->description in hookProductTab PHP module ?
- 1 reply
-
- hookProductTab
- variable
-
(and 2 more)
Tagged with: