|

Welcome Username In Header
Posted 26 January 2014 - 02:58 AM #21
Will this work for the 3.0.4?
Thanks
Hosting for less.
www.step2stephosting.com
Posted 15 February 2014 - 08:08 AM #22
Posted 16 February 2014 - 11:51 AM #23
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 ?
Posted 09 February 2016 - 01:28 PM #25
There are some way to use the variable {$user_info.firstname} on this notice?
to have something like: Welcome Jhon* ?
Posted 09 February 2016 - 03:22 PM #26
Change the value of the successful_login language variable to "Welcome, [CUSTOMER]"
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 руб.
Posted 09 February 2016 - 03:58 PM #27
Hi eComLabs it works great with the first name + last name:
However, I would like to show only the first name like: "[Welcome! Jhon]"
What variable I have to change in the code?
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 руб.
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 руб.
Posted 16 February 2016 - 04:46 PM #32
Posted 24 February 2016 - 05:38 PM #34
Any way to change this part to have the name instead of "Welcome MY ACCOUNT"?
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 руб.