Jump to content

product.tpl - nezobrazuje se cena


stix_

Recommended Posts

nechal sem si udelat vlastni sablonu, v kategoriich, pri hledani atd se cena zobrazuje ok ale pri zobrazeni detailu produktu se ukaze cena 0,00kč vč. DPH
pri hledani problemu by mohla pomoct zajimavost ze kdyz se vlozi jakykoliv zbozi do kosiku tak uz se ceny ukazujou u kazdyho zbozi
porovnaval sem template s originalem a na chybu neprisel, u zobrazeni ceny je tento kod:



               {if $product->on_sale}

{l s='On sale!'}
               {elseif ($product->reduction_price != 0 || $product->reduction_percent != 0) && ($product->reduction_from == $product->reduction_to OR ($smarty.now|date_format:'%Y-%m-%d %H:%M:%S' <= $product->reduction_to && $smarty.now|date_format:'%Y-%m-%d %H:%M:%S' >= $product->reduction_from))}
{l s='Price lowered!'}
               {/if}



               {if !$priceDisplay || $priceDisplay == 2}
{convertPrice price=$product->getPrice(true, $smarty.const.NULL)}
                       {if $tax_enabled}{l s='tax incl.'}{/if}
               {/if}
               {if $priceDisplay == 1}
{convertPrice price=$product->getPrice(false, $smarty.const.NULL)}
                       {if $tax_enabled}{l s='tax excl.'}{/if}
               {/if}

               {if $priceDisplay == 2}


{convertPrice price=$product->getPrice(false, $smarty.const.NULL)} {l s='tax excl.'}
               {/if}





pomohl by nekdo?

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...