0

add to any からソーシャル ネットワークの共有ボタンを取得しました。すべての製品の下に配置したい。

テーマで 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

管理パネルで --> 設定 --> パフォーマンス --> [強制的にコンパイルしてはい] を選択します。yes に設定するまで Smarty はコンパイルしません。

于 2011-11-25T19:46:43.443 に答える