0
我從一個社交網絡分享按鈕添加到任何。我想把它放在我所有的產品下。在prestashop的產品下添加共享按鈕
我在我的主題中編輯了product.tpl並添加了由它們給出的addToAny代碼。但它沒有在那裏顯示。
<!-- number of item in stock -->
{if ($display_qties == 1 && !$PS_CATALOG_MODE && $product->available_for_order)}
<p id="pQuantityAvailable"{if $product->quantity <= 0} style="display: none;"{/if}>
<span id="quantityAvailable">{$product->quantity|intval}</span>
<span {if $product->quantity > 1} style="display: none;"{/if} id="quantityAvailableTxt">{l s='item in stock'}</span>
<span {if $product->quantity == 1} style="display: none;"{/if} id="quantityAvailableTxtMultiple">{l s='items in stock'}</span>
</p>
<div>
//Adding my addToAny share code here
</div>
{/if}
<!-- Out of stock hook -->
{if !$allow_oosp}
<p id="oosHook"{if $product->quantity > 0} style="display: none;"{/if}>
{$HOOK_PRODUCT_OOS}
</p>
{/if}
如果你能夠顯示你的代碼到這一點,它會有所幫助。 –
我能展示什麼?我在product.tpl文件中添加
文本
,並且它不在瀏覽器中顯示它。 –嘗試更改緩存設置。只有在更改緩存設置之前,smarty纔會編譯 – pahnin