Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Welcome Username In Header Rate Topic   - - - - -

 
  • tom437
  • Senior Member
  • Members
  • Join Date: 10-Jul 10
  • 635 posts

Posted 26 January 2014 - 02:58 AM #21

Hello,

Will this work for the 3.0.4?

Thanks
3.0.4
Hosting for less.
www.step2stephosting.com

 
  • milleniumrom
  • Junior Member
  • Members
  • Join Date: 26-Feb 11
  • 17 posts

Posted 15 February 2014 - 08:08 AM #22

How can this be done through my changes option, to not change the main template ?

 

Posted 16 February 2014 - 11:51 AM #23

I think yes.
If you have my_changes add-on installed, create a file:
design/themes/YOUR_THEME_NAME/templates/addons/my_changes/overrides/blocks/my_account.tpl

copy the original code to that file, modify it, clear the template cache, and check it.

How can this be done through my changes option, to not change the main template ?



 
  • Rafass
  • Senior Member
  • Members
  • Join Date: 16-Jan 14
  • 304 posts

Posted 17 February 2014 - 08:25 AM #24

interesting, I will do this asap in my store v4.1.2

 
  • Rafass
  • Senior Member
  • Members
  • Join Date: 16-Jan 14
  • 304 posts

Posted 09 February 2016 - 01:28 PM #25

There are some way to use the variable {$user_info.firstname} on this notice?

cqf7mO9.png

to have something like: Welcome Jhon* ?

*{$user_info.firstname}


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19833 posts

Posted 09 February 2016 - 03:22 PM #26

Change the value of the successful_login language variable to "Welcome, [CUSTOMER]"

 
Then open the app/controllers/common/auth.php file and replace:
 
fn_set_notification('N', __('notice'), __('successful_login'));

with

fn_set_notification('N', __('notice'), str_replace('[CUSTOMER]', fn_get_user_name($user_data['user_id']), __('successful_login')));

(!) Not tested


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • Rafass
  • Senior Member
  • Members
  • Join Date: 16-Jan 14
  • 304 posts

Posted 09 February 2016 - 03:58 PM #27

Hi eComLabs 8)  it works great with the first name + last name:

DM0hiOf.png

However, I would like to show only the first name like: "[Welcome! Jhon]"

What variable I have to change in the code? 



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19833 posts

Posted 10 February 2016 - 07:56 AM #28

Try

$user_name= db_get_field("SELECT firstname FROM ?:users WHERE user_id = ?i", $user_data['user_id']);
fn_set_notification('N', __('notice'), str_replace('[CUSTOMER]', $user_name, __('successful_login')));

GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • Rafass
  • Senior Member
  • Members
  • Join Date: 16-Jan 14
  • 304 posts

Posted 10 February 2016 - 08:04 AM #29

It works perfectly! 

n0tp0ms.png

giphy.gif

 

Thank you eComLabs!  8)



 
  • thelight
  • Junior Member
  • Members
  • Join Date: 31-Mar 10
  • 58 posts

Posted 16 February 2016 - 05:40 AM #30

Another useful thing, thank you guys!



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19833 posts

Posted 16 February 2016 - 08:27 AM #31

You are welcome!


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • dvsgr
  • Senior Member
  • Authorized Reseller
  • Join Date: 14-Apr 09
  • 1448 posts

Posted 16 February 2016 - 04:46 PM #32

Hi 

 

dont forget, its a free addon in our store

 

http://www.cscart.bi...free-addon.html

 

Fotis


Fotis Kourmadas
Cs-Cart Development - Cs-Cart Authorized Reseller 

 
  • imac
  • Head of Product
  • CS-Cart Architects
  • Join Date: 22-Nov 05
  • 2074 posts

Posted 17 February 2016 - 12:45 PM #33

Hi 

 

dont forget, its a free addon in our store

 

http://www.cscart.bi...free-addon.html

 

Fotis

 

Good, added this to the first post.


Ilya Makarov,
CS-Cart Architect Team
Suggest and vote for new features | Report a bug

 
  • dynamok
  • Advanced Member
  • Members
  • Join Date: 12-Nov 15
  • 89 posts

Posted 24 February 2016 - 05:38 PM #34

Any way to change this part to have the name instead of "Welcome MY ACCOUNT"?

 

c82f6-clip-21kb.jpg?nocache=1



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19833 posts

Posted 25 February 2016 - 10:53 AM #35

As far as I can see, non-standard block is used in your store. Please contact developers of this block to make the necessary changes


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • dynamok
  • Advanced Member
  • Members
  • Join Date: 12-Nov 15
  • 89 posts

Posted 25 February 2016 - 11:21 PM #36

Thanks