Antakarana Posted December 5, 2012 Share Posted December 5, 2012 (edited) Hi everybody! I got a problem in our webiste... when a customer logs out from his account he gets a message error 404 I understand that the link of the "log out" button redirects into an incorrect URL but how can I change it to redirect to homepage? here your are the website url: http://nutri-cosmetica.com Thanks in advance! Edited December 7, 2012 by Antakarana (see edit history) Link to comment Share on other sites More sharing options...
Antakarana Posted December 5, 2012 Author Share Posted December 5, 2012 Anybody could give me at least an advice? Link to comment Share on other sites More sharing options...
Antakarana Posted December 7, 2012 Author Share Posted December 7, 2012 I can't believe that nobody could give me at least an advice to found a solution Link to comment Share on other sites More sharing options...
Antakarana Posted December 7, 2012 Author Share Posted December 7, 2012 Finnaly I've found the problem at theme/modules/blockuserinfo/blockuserinfo.tpl Link to comment Share on other sites More sharing options...
gregoryM Posted December 10, 2012 Share Posted December 10, 2012 I have the same probleme ... you can said me how you resolved this probleme ?? thx Link to comment Share on other sites More sharing options...
Antakarana Posted December 10, 2012 Author Share Posted December 10, 2012 (edited) I have the same probleme ... you can said me how you resolved this probleme ?? thx Sure... please post your theme blockuserinfo.tpl code here and I will try to give you the solution.... Edited December 10, 2012 by Antakarana (see edit history) Link to comment Share on other sites More sharing options...
gregoryM Posted December 10, 2012 Share Posted December 10, 2012 <!-- Block user information module HEADER --> <div id="header_user"> <ul id="header_nav"> {if !$PS_CATALOG_MODE} <li id="shopping_cart"> <a href="{if $opc}{$link->getPageLink("$order_process.php", true)}{else}{$link->getPageLink("$order_process.php", true)}{if $order_process == 'order'}?step=0{/if}{/if}" title="{l s='Your Shopping Cart' mod='blockuserinfo'}" class="cart_black">{l s='Cart' mod='blockuserinfo'}</a> <span class="ajax_cart_quantity{if $cart_qties == 0} hidden{/if}">{$cart_qties}</span> <span class="ajax_cart_product_txt{if $cart_qties != 1} hidden{/if}">{l s='product' mod='blockuserinfo'} {l s='for' mod='blockuserinfo'}</span> <span class="ajax_cart_product_txt_s{if $cart_qties < 2} hidden{/if}">{l s='products' mod='blockuserinfo'} {l s='for' mod='blockuserinfo'}</span> {if $cart_qties >= 0} <span class="ajax_cart_total{if $cart_qties == 0} hidden{/if}"> {if $priceDisplay == 1} {assign var='blockuser_cart_flag' value='Cart::BOTH_WITHOUT_SHIPPING'|constant} {convertPrice price=$cart->getOrderTotal(false, $blockuser_cart_flag)} {else} {assign var='blockuser_cart_flag' value='Cart::BOTH_WITHOUT_SHIPPING'|constant} {convertPrice price=$cart->getOrderTotal(true, $blockuser_cart_flag)} {/if} </span> {/if} <span class="ajax_cart_no_product{if $cart_qties > 0} hidden{/if}">{l s='(empty)' mod='blockuserinfo'}</span> </li> {/if} </ul> <p id="header_user_info"> {if $logged} {l s='Welcome' mod='blockuserinfo'} {$cookie->customer_firstname} {$cookie->customer_lastname}<br /> {* <a href="{$link->getPageLink('my-account.php', true)}" title="{l s='Your Account' mod='blockuserinfo'}">{l s='Your Account' mod='blockuserinfo'}</a> / *} <a href="{$link->getPageLink('index.php')}?mylogout" title="{l s='Log me out' mod='blockuserinfo'}" class="logout">{l s='Log out' mod='blockuserinfo'}</a> {else} <a href="{$link->getPageLink('my-account.php', true)}" class="login">{l s='Log in' mod='blockuserinfo'}</a> {/if} </p> </div> <!-- /Block user information module HEADER --> Link to comment Share on other sites More sharing options...
Antakarana Posted December 10, 2012 Author Share Posted December 10, 2012 (edited) Please, next time that you poste a code... pos it between this tags: "[ CODE ]" place the code here "[ /CODE ]" (without cuotes and spaces) Then your text will look like this place the code here Any way... where you have this: <a href="{$link->getPageLink('index.php')}?mylogout" title="{l s='Log me out' mod='blockuserinfo'}" class="logout">{l s='Log out' mod='blockuserinfo'}</a> Try this: <a href="{$link->getPageLink('index.php', true)}?mylogout" title="{l s='Log me out' mod='blockuserinfo'}" class="logout">{l s='Log out' mod='blockuserinfo'}</a> Edited December 10, 2012 by Antakarana (see edit history) 3 Link to comment Share on other sites More sharing options...
gregoryM Posted December 10, 2012 Share Posted December 10, 2012 Hello ! Thx for all ... now i havent " FATAL ERROR " but juste a white page ..... The url of redirection : http://vipzone.ca/caisse5ans/index.php?controller=authentication&back=/caisse5ans/index?id_product=908&controller=product&id_lang=5 Sorry for the code i will use the good way the next time. Link to comment Share on other sites More sharing options...
gregoryM Posted December 10, 2012 Share Posted December 10, 2012 I explain you my situation , may be you can help me : 1. When i'm login and i'm on the " HOME PAGE " , if i logout >>>> that's good i come back to Authentification page ( i have the module Authentification which block my shop ) 2. When i'm login and i'm on a page product or categories , if i logout >>>> error 404 ! or white page. 3. When i logout with the point 2. after if i enter in the shop >>> " FATAL ERROR " !!! Serious i dont understand .... So nevertheless i used your code and now the point 3 is ok !! ... Link to comment Share on other sites More sharing options...
Antakarana Posted December 10, 2012 Author Share Posted December 10, 2012 I explain you my situation , may be you can help me : 1. When i'm login and i'm on the " HOME PAGE " , if i logout >>>> that's good i come back to Authentification page ( i have the module Authentification which block my shop ) 2. When i'm login and i'm on a page product or categories , if i logout >>>> error 404 ! or white page. 3. When i logout with the point 2. after if i enter in the shop >>> " FATAL ERROR " !!! Serious i dont understand .... So nevertheless i used your code and now the point 3 is ok !! ... Sorry but your url is under maitenance so I can't get into it... Link to comment Share on other sites More sharing options...
Mr S Posted April 7, 2013 Share Posted April 7, 2013 for 1.5x {$link->getPageLink('index', true, NULL, "mylogout")} Link to comment Share on other sites More sharing options...
andy_79 Posted April 29, 2013 Share Posted April 29, 2013 for 1.5x {$link->getPageLink('index', true, NULL, "mylogout")} Where? Link to comment Share on other sites More sharing options...
andy_79 Posted April 29, 2013 Share Posted April 29, 2013 /modules/blockuserinfo/blockuserinfo.tpl {$link->getPageLink('index', true, NULL, "mylogout")} Link to comment Share on other sites More sharing options...
asadahmedbe Posted September 23, 2013 Share Posted September 23, 2013 for 1.5x {$link->getPageLink('index', true, NULL, "mylogout")} the problem still remains the same...please help me Link to comment Share on other sites More sharing options...
mir-aus Posted June 5, 2014 Share Posted June 5, 2014 Hi there, Still I have problem, customer can no it logout! use shows with /en/ , how can i fix that ? my website is : http://continuousinksupplysystem.com.au 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