まずは、私が前立腺に新しく、今まで私は愛する機能を愛していると言わなければならない。しかし、私は簡単にすべきであると感じるものについてしまった。スマートなテンプレートエンジンがどのように機能するか、私は何かを見逃すはずです。prestashop product-list.tpl custom
実際にそれを見ることで全体の問題を説明するのは難しいです。私たちの新しいサイトwww.eliquidonline.co.ukで私は商品リストのテンプレートに取り組んでおり、ショー価格とカートエリアへの広告がどのように見えるか感じるかを変えたいと思っていました。
商品が発売されている間にデザインをデザインしたので、前の価格、割引額などを追加することができましたが、今ではこのエリアは表示されません。あなたは上のリンクを使ってあなた自身のために見ることができます。
私がこれまで持っているコードは次のとおりです。
{if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))}
<div class="pricecontainwrapper">
<div class="addpricetag">{if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}
{hook h="displayProductPriceBlock" product=$product type='before_price'}
<span class="smalltext">Was </span><span class="smallstrike">{if $product.price_without_reduction > 0 && isset($product.specific_prices) && $product.specific_prices && isset($product.specific_prices.reduction) && $product.specific_prices.reduction > 0}
{hook h="displayProductPriceBlock" product=$product type="old_price"}{displayWtPrice p=$product.price_without_reduction}</span><div class="pricetag">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</div></div><a href="{$product.link|escape:'html':'UTF-8'}" title="{l s='View'}"><div class="addcartpricebutron">Add To cart</div></a>
</div>
{hook h="displayProductPriceBlock" id_product=$product.id_product type="old_price"}
{if $product.specific_prices.reduction_type == 'percentage'}
<div class="pricereduction">SALE -{$product.specific_prices.reduction * 100}% OFF</div>
{/if}
{/if}
{hook h="displayProductPriceBlock" product=$product type="price"}
{hook h="displayProductPriceBlock" product=$product type="unit_price"}
{hook h="displayProductPriceBlock" product=$product type='after_price'}
{/if}
</div>
{/if}
は、今私は、のいずれかの推測Smartyのテンプレートの文は、すべてのコードが表示されていないが、なぜ理解できない場合。なぜどんな情報が非常に高く評価されるでしょうか。
そして、どういう問題がありますか?明らかにあなたが販売している製品を持っていない場合、それは古い価格や割引がないので、古い価格、割引率などを表示するつもりはありません。 – TheDrot