1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
; html-script: false ] <table border="0" cellpadding="0" cellspacing="0"> <tr><td> 在庫: <!--{if $arrProduct.stock_unlimited_min == 1}--> 有り <!--{else}--> <!--{if $arrProduct.stock_min != $arrProduct.stock_max}--> 残りあと<!--{$arrProduct.stock_min|escape}-->~<!--{$arrProduct.stock_max|escape}--> <!--{else}--> 残りあと<!--{$arrProduct.stock_min|escape}--> <!--{/if}--> <!--{/if}--> </td></tr></table> |
上記コードを表示させたいところに表示。
商品詳細ページのファイルは下記。
1 2 3 |
; html-script: false ] root/Smarty/templates/my_temp/ ┗products/detail.php |