Jump to content

How to manual activation+show product price


Recommended Posts

Hello all

What I need to edit in 1.4.1 version to have manual activation for new user and show product prices only for login user (not for guest)


I found here http://www.prestashop.com/forums/viewthread/73156/configuring___using_prestashop/manual_activation_for_new_user_registration_dot_ but is for 1.3.2

Any help? Tks


Assume that the code to display price is $displayMyPrice in your .tpl that you want to edit.
you will need:
{if $cookie->isLogged()}
{/if}

so I add it between $displayMyPrice

so basically:

{if $cookie->isLogged()}

$displaceMyPrice

{/if}

only logged user will see the price.
Link to comment
Share on other sites

I add

{if $cookie->isLogged()}

$displaceMyPrice

{/if}

in index.tpl but the price keep showing.

Also I search for $displayMyPrice in .tpl but no search.


I said "Assume" earlier ... "$displaceMyPrice" was just an Example.

Give me few minutes I will find the appropriate coding for the product.tpl
Link to comment
Share on other sites

Try this in your product.tpl (from a clean version)

find (line 236)

<!-- prices --> 



and just after add:

{if $cookie->isLogged()}



find (line 301)

{if isset($groups)}



just before that add:

{/if}



I just tested the code myself and it works fine.
Reminder this is based on your product.tpl

It's the same process for the rest of your pages. If you are still struglling email me your pages (Where your price are displayed) and I will take care of the rest, free of Charge :-) .

Link to comment
Share on other sites

  • 3 weeks later...
  • 7 months later...
×
×
  • Create New...