Inpromark Posted June 26, 2013 Share Posted June 26, 2013 Hi there Does somebody have any solution how to disable the log in button on the main store in Presta ver. 1.5.4.1 ? I have set up multi-store and the main store is just a catalogue and landing page. So customer will be redirected to other store according his postcode. I need him to log in at the store he belongs and not at the main (landing) store (page). Hope you understand. Regards Marcel Link to comment Share on other sites More sharing options...
El Patron Posted June 26, 2013 Share Posted June 26, 2013 deleted my original post. you would need to modify the code not to display login when shop in catalog mode Link to comment Share on other sites More sharing options...
Inpromark Posted June 26, 2013 Author Share Posted June 26, 2013 Hi El....thanks for response ... and you know how? Link to comment Share on other sites More sharing options...
El Patron Posted June 26, 2013 Share Posted June 26, 2013 Hi El....thanks for response ... and you know how? You could surrond the code in modules/blockuserinfo/blockuserinfo/tpl with catalog check. Note I would probably do it by not calling the .tpl from the controller when in catalog mode....but this is just one way to do it (note: not tested)... </ul> {if !$PS_CATALOG_MODE} <p id="header_user_info"> {l s='Welcome' mod='blockuserinfo'} {if $logged} <a href="{$link->getPageLink('my-account', true)}" title="{l s='View my customer account' mod='blockuserinfo'}" class="account" rel="nofollow"><span>{$cookie->customer_firstname} {$cookie->customer_lastname}</span></a> <a href="{$link->getPageLink('index', true, NULL, "mylogout")}" title="{l s='Log me out' mod='blockuserinfo'}" class="logout" rel="nofollow">{l s='Log out' mod='blockuserinfo'}</a> {else} <a href="{$link->getPageLink('my-account', true)}" title="{l s='Login to your customer account' mod='blockuserinfo'}" class="login" rel="nofollow">{l s='Login' mod='blockuserinfo'}</a> {/if} </p> {/if} Link to comment Share on other sites More sharing options...
El Patron Posted June 26, 2013 Share Posted June 26, 2013 I like this way better, it's cleaner....but again not tested: in modules/blockuserinfo/blockuserinfo.php include the catalog check in hookTop public function hookTop($params) { if (!$this->active) return; if (Configuration::get('PS_CATALOG_MODE')) return; Link to comment Share on other sites More sharing options...
Inpromark Posted June 26, 2013 Author Share Posted June 26, 2013 Ok, let me tested Link to comment Share on other sites More sharing options...
Inpromark Posted June 27, 2013 Author Share Posted June 27, 2013 (edited) Hi El. I have find in my Theme (Arundo) a module that I can disable in any chosen shop of the multishop group to get that result. It calls "User info block to top of page". But thank you for your help. Edited July 6, 2013 by Inpromark (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