JEvans Posted September 16, 2014 Share Posted September 16, 2014 I am looking for some help, please, with a problem with my store. A new customer can register perfectly OK and receives a confirmation e mail correctly. However the sign- in the screen goes to the shop front with a welcome message to the wrong name. The name is always the same and is that of a previous customer. Is this name generated by welcome.php and if so where is this file located? I am using v.1.5.4.1. many thanks John Evans Link to comment Share on other sites More sharing options...
NemoPS Posted September 17, 2014 Share Posted September 17, 2014 welcome.php? It's not a default file, are you using a third party module? Can you share its content? Link to comment Share on other sites More sharing options...
JEvans Posted September 17, 2014 Author Share Posted September 17, 2014 Nemo1, Let me re-phrase my question. When a customer first registers the shop page is displayed with a Welcome message to that person. In my shop the welcome is always addressed to the same person (an old customer) the message does not show the new persons name. Thereafter the shop works fine an all people can log in and trade correctly. My thought (but I am not qualified) is that the Welcome message is corrupted in some way so that instead of showing the new persons name in the message it shows a fixed name. I am using a 3rd party theme but this fault has not always been there. Any help appreciated. regards John Evans Link to comment Share on other sites More sharing options...
NemoPS Posted September 18, 2014 Share Posted September 18, 2014 I see. Is the theme adding that feature through a module that comes with it? If so, did you try reinstalling it? Link to comment Share on other sites More sharing options...
JEvans Posted September 18, 2014 Author Share Posted September 18, 2014 Hi Nemo1, No it is not part of the theme except the theme re positions the welcome, Login etc to a bar at the top of the front page. The default theme has this at the top right of the page. This only goes wrong on the customers first registration, thereafter everything works fine. After registration the shop front shows "Welcome ?????, Log out etc. where ???? is always the same name and not that of the new customer. It seems to my very unqualified mind as though instead of displaying "first name" and "second name" it display a fixed name, but only for this first registration. Could that mean that this part has been corrupted? Thank you for your continued help. regards John Evans PS would it help for you to log into my store to see the problem? Link to comment Share on other sites More sharing options...
NemoPS Posted September 19, 2014 Share Posted September 19, 2014 You should inspect the module's tpl file at this point Link to comment Share on other sites More sharing options...
JEvans Posted September 19, 2014 Author Share Posted September 19, 2014 Thanks Nemo1, Please tell me which TPL file to look in and what am I looking for? thanks John Evans Link to comment Share on other sites More sharing options...
NemoPS Posted September 20, 2014 Share Posted September 20, 2014 Well no idea, if it's called welcome it might be called welcome.tpl Link to comment Share on other sites More sharing options...
JEvans Posted September 20, 2014 Author Share Posted September 20, 2014 Nemo1, I think I have confused things by mentioning welcome.php. please ignore this. Only on first registration the name shown after "Welcome" on the top of the front page of the store is corrupt. On registration by all new customers this is the same name shown and not their own one. Thereafter on all log ins by customers the shop works properly, displaying the customers correct name after "Welcome". Are you able to register in my store to witness the problem? This would demonstrate it very quickly. I am grateful for the time you are spending on this. regards John Evans Link to comment Share on other sites More sharing options...
NemoPS Posted September 20, 2014 Share Posted September 20, 2014 ah! ok, I think I got it. Please post a link to your site (either here or via pm if you can't make it public)I guess you are referring to the text next to Welcome, login in blockuserinfo Link to comment Share on other sites More sharing options...
JEvans Posted September 20, 2014 Author Share Posted September 20, 2014 Exactly right Nemo. Shop is at Tammytayloruk.com thanks John Evans Link to comment Share on other sites More sharing options...
NemoPS Posted September 22, 2014 Share Posted September 22, 2014 Ok, it looks like the name is hardcoded in blockuserinfo.tpl (theme folder/modules/blockuserinfo) Try having a look at that one Link to comment Share on other sites More sharing options...
JEvans Posted September 22, 2014 Author Share Posted September 22, 2014 Thanks Nemo, I have looked at this file and cannot see the text Roxana. regards John Evans Link to comment Share on other sites More sharing options...
NemoPS Posted September 24, 2014 Share Posted September 24, 2014 Can you paste what's in there perhaps? Or try and see if you have the same with the default theme? Link to comment Share on other sites More sharing options...
JEvans Posted September 24, 2014 Author Share Posted September 24, 2014 Hi Nemo, Here is a copy of Block user tpl from the theme. <!-- Block user information module HEADER --><div id="header_user"> <ul id="header_nav"> {if !$PS_CATALOG_MODE} <li id="shopping_cart"> <a href="{$link->getPageLink($order_process, true)}" title="{l s='Your Shopping Cart' mod='blockuserinfo'}">{l s='Cart:' mod='blockuserinfo'} <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'}</span> <span class="ajax_cart_product_txt_s{if $cart_qties < 2} hidden{/if}">{l s='products' mod='blockuserinfo'}</span> <span class="ajax_cart_total{if $cart_qties == 0} hidden{/if}"> {if $cart_qties > 0} {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} {/if} </span> <span class="ajax_cart_no_product{if $cart_qties > 0} hidden{/if}">{l s='(empty)' mod='blockuserinfo'}</span> </a> </li> {/if} <!--<li id="your_account"><a href="{$link->getPageLink('my-account', true)}" title="{l s='Your Account' mod='blockuserinfo'}">{l s='Your Account' mod='blockuserinfo'}</a></li> </ul> <p id="header_user_info"> {l s='Welcome' mod='blockuserinfo'} {if $logged} <a href="{$link->getPageLink('my-account', true)}" class="account"><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">{l s='Log out' mod='blockuserinfo'}</a> {else} <a href="{$link->getPageLink('my-account', true)}" class="login">{l s='Log in' mod='blockuserinfo'}</a> {/if} </p>--></div><!-- /Block user information module HEADER --> many thanks John Evans Link to comment Share on other sites More sharing options...
NemoPS Posted September 24, 2014 Share Posted September 24, 2014 At this point cookies are corrupted {$cookie->customer_firstname} {$cookie->customer_lastname} That's the one in the theme folder, correct? Link to comment Share on other sites More sharing options...
JEvans Posted September 24, 2014 Author Share Posted September 24, 2014 Nemo, Yes this is from the theme folder. thanks John Evans Link to comment Share on other sites More sharing options...
NemoPS Posted September 26, 2014 Share Posted September 26, 2014 Are you using any override for the cookie class? There might be a module corrupting the value as well Link to comment Share on other sites More sharing options...
JEvans Posted September 26, 2014 Author Share Posted September 26, 2014 Hi Nemo, I don't really understand you question. How do I find this out? John Evans Link to comment Share on other sites More sharing options...
JEvans Posted September 26, 2014 Author Share Posted September 26, 2014 Nemo, I have tried some more investigation of this fault. Herre are the resulsts. In Default theme all appears correct. The fault has gone. After going to Default and then back to my shop theme the first registration shows the correct name after Welcome. Therafter the name first registered after the return to my shop theme is always shown on any new registrations. Therefore the fault is still there but the Welcome name has changed for new registrations. Otherwise the shop is working correctly. Does this give you a clue as to the problem? (presumably somewhere within the theme) John Evans PS Is it possible that upgrading to 1.5.6.2 will help or am I talking rubbish. Link to comment Share on other sites More sharing options...
NemoPS Posted September 27, 2014 Share Posted September 27, 2014 Well yeah it's definitely a theme issue. You should inspect the modules/overrides your theme comes with Link to comment Share on other sites More sharing options...
JEvans Posted September 30, 2014 Author Share Posted September 30, 2014 Thanks Nemo for all your help. I'll follow your suggestion and look into the theme I am using. It is clear to me now that the theme has been at fault from first installation at the turn of this year. John Evans 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