xxvirusxx Posted May 17, 2011 Share Posted May 17, 2011 Hello allWhat 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.2Any help? Tks Link to comment Share on other sites More sharing options...
liquidesnake Posted May 18, 2011 Share Posted May 18, 2011 Hello allWhat 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.2Any 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 $displayMyPriceso basically:{if $cookie->isLogged()}$displaceMyPrice{/if}only logged user will see the price. Link to comment Share on other sites More sharing options...
xxvirusxx Posted May 18, 2011 Author Share Posted May 18, 2011 Which .tpl? Link to comment Share on other sites More sharing options...
liquidesnake Posted May 18, 2011 Share Posted May 18, 2011 any .tpl where your price is displayed. so far, where price is displayed:- product.tpl- category.tpl- index.tpl (if u display your products on that page)...And so on.Did you get it? Link to comment Share on other sites More sharing options...
Philippes Posted May 18, 2011 Share Posted May 18, 2011 1.4 problems Link to comment Share on other sites More sharing options...
liquidesnake Posted May 18, 2011 Share Posted May 18, 2011 1.4 problems Where? can u explain yourself? Link to comment Share on other sites More sharing options...
xxvirusxx Posted May 19, 2011 Author Share Posted May 19, 2011 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. Link to comment Share on other sites More sharing options...
liquidesnake Posted May 19, 2011 Share Posted May 19, 2011 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 More sharing options...
xxvirusxx Posted May 19, 2011 Author Share Posted May 19, 2011 Solved with thishttp://www.prestashop.com/forums/viewthread/12258/P60/third_party_modules/whole_sale_shop_with_no_add_to_cart_or_prices_until_login__the_easy_wayNow I need for user manual activations by admins Link to comment Share on other sites More sharing options...
liquidesnake Posted May 19, 2011 Share Posted May 19, 2011 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.tplIt'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 More sharing options...
xxvirusxx Posted May 19, 2011 Author Share Posted May 19, 2011 And for manual activation what edit in 1.4.1?I found for 1.3.2 Try changing line 101 of authentication.php (in PrestaShop v1.3.2) from: $customer->active = 1; to: $customer->active = 0; I will keep searching. Link to comment Share on other sites More sharing options...
tommyx_x Posted May 23, 2011 Share Posted May 23, 2011 hi,the file autentication.php for prestashop 1.4.1 is different. Link to comment Share on other sites More sharing options...
xxvirusxx Posted June 8, 2011 Author Share Posted June 8, 2011 Yes, but for 1.4 how it is? Link to comment Share on other sites More sharing options...
coccobill Posted January 29, 2012 Share Posted January 29, 2012 Hi, i have the same problem in 1.4.. how can i do for manual users activation?? Regards Link to comment Share on other sites More sharing options...
Recommended Posts