Jump to content

Zobrazovanie cien po prihlásení.


Duskur

Recommended Posts

Skus v sablone product.tpl tam kde je cena vlozit taketo nieco

{if $logged}
cena sa ne zobrazi
{else}
cena sa ne nezobrazi
{/if}



Samozrejme, musis v product.php dodatocne zadefinovat smarty premennu $logged takto

'logged' => $cookie->isLogged(),



Netestoval som to, ale malo by to fungovat.

Link to comment
Share on other sites

  • 2 weeks later...

nech robim co robim nejde to
product.tpl dam
var displayPrice = {if $logged}{$priceDisplay}{else}0{/if};

a do product.php
/* /Quantity discount management */
$smarty->assign(array(
'logged' => $cookie->isLogged(),

a nejde neviem preco poradte. Dakujem

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...