sapla Posted June 18, 2012 Share Posted June 18, 2012 Hi, I need some help. The client im setting up this website for doesn't want anybody browsing his products before they create an account or log-in. Im not sure how i could make this happen and would appreciate any ideas or advice. Thanks in advance Sara Link to comment Share on other sites More sharing options...
exadra37 Posted June 19, 2012 Share Posted June 19, 2012 If your client don't want that users see the prices it will be easy to hide prices from unregistered users. Just have to edit product.tpl, product-list-tpl and all files from modules that show the price . 1 Link to comment Share on other sites More sharing options...
sapla Posted June 19, 2012 Author Share Posted June 19, 2012 Is there a way you could show me more in depth how i could do that, thanks so much!!! Link to comment Share on other sites More sharing options...
exadra37 Posted June 19, 2012 Share Posted June 19, 2012 The following code will hide all block where you see price, attributes, add to cart button and other things. Open product.tpl and in line 225 found this code: {if ($product->show_price AND !isset($restricted_country_mode)) OR isset($groups) OR $product->reference OR (isset($HOOK_PRODUCT_ACTIONS) && $HOOK_PRODUCT_ACTIONS)} Now put this one: {if ($product->show_price AND !isset($restricted_country_mode) AND ($cookie->isLogged() === true)) OR isset($groups) OR $product->reference OR (isset($HOOK_PRODUCT_ACTIONS) && $HOOK_PRODUCT_ACTIONS)} As you can see just handle to hide or to show content with ($cookie->isLogged() === true) . Do that in any place you want to hide or show content to users depended if they are logged or not Link to comment Share on other sites More sharing options...
El Patron Posted June 28, 2012 Share Posted June 28, 2012 (edited) We looked at this some time ago for our own customers...the problem is there are over 30 some changes required to affect a registered or authorized (logged in) shopping only experience. While we don't disagree with people suggesting changes...we think our 'PrestaShop' catalog mode by session is a much better option. Check out our Private Shop modules here...and we have the lowest prices on the planet. Your site will be presented in PrestaShop catalog mode. If you go with the registerd only module..then only those that register and are signed in can see your prices etc...if you require approval of anyone shopping on your site..then out Authorized only module requires that new accounts be approved before than can sign in and shop on your site. Edited June 28, 2012 by elpatron (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