martin.grencik Posted September 25, 2013 Share Posted September 25, 2013 Ahojte, vedel by mi prosím niekto poskytnúť PHP kód pre zobrazenie ceny pred zľavou (pôvodnej ceny)? Túto cenu by som chcel zobraziť červeným preškrtnutú vo výpise produktov aj v samotnej karte produktu. Kód bude zrejme rovnaký. Jedná sa o prestashop 1.5.4 Ďakujem Vám. Link to comment Share on other sites More sharing options...
PavelRacak.CZ Posted September 25, 2013 Share Posted September 25, 2013 (edited) <div class="product_price"> {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)} <span class="price"> {if !$priceDisplay} {convertPrice price=$product.price} {else} {convertPrice price=$product.price_tax_exc} {/if} </span> {if isset($product.reduction) && $product.reduction && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE} <span class="original_price"> {convertPrice price=$product.price_without_reduction} </span> {/if} {/if} </div> Zbytek už je jen o css Edited September 25, 2013 by pavelracak (see edit history) 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