0

我从添加到任何中获得了一个社交网络共享按钮。我想把它放在我所有的产品下面。

我在我的主题中编辑了 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}
4

1 回答 1

0

在管理面板中转到 --> 首选项 --> 性能 --> 选择强制编译为是。Smarty 在您将其设置为 yes 之前不会编译。

于 2011-11-25T19:46:43.443 回答