tomsik3 Posted May 27, 2012 Share Posted May 27, 2012 Dobrý den, prosím o radu. Mám Prestu 1.3.6.0. Jak změnit produkt-list.tlp aby se u produktů v kategorii zobzazovala výše slevy a přeškrtnutá stará cena. Stejně jak to v produktu? Předem děkuji za pomoc Link to comment Share on other sites More sharing options...
Radek100 Posted December 27, 2012 Share Posted December 27, 2012 do product-list.tpl stačí vložit za kód: {if isset($product.on_sale) && $product.on_sale && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}<span class="on_sale">{l s='On sale!'}</span> {elseif isset($product.reduction) && $product.reduction && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}<span class="discount">{l s='Reduced price!'}</span>{/if} toto: {if $product.specific_prices.reduction_type == 'percentage'}<span class="discount"> {$product.specific_prices.reduction*100} %</span>{/if} jak zobrazit původní cenu a nechat ji přeškrtnout přesně netuším, ale určitě to půjde okouknout ze souboru product.tpl :-) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now