August 27, 20196 yr Hello, I am having troubles with the languages definitions (clic_languages_definitions table) values not being substituted, pe. when i receive an email of a new account created, the body's email is not substituted at all and it displays just as it is on database, ie: We thank you for confidence that you us testified by recording you like new customer on site {{store_name}}. We have well took into account your request of inscription for the opening of an office account near our network.<br /> you will receive an email notifying the creation of your account, after validation of your request by our service customers, with the whole of information allowing you to connect and carry out your purchases on {{store_name}}<br /><br /> you will be able under privileged customer to then profit from exceptional prices on the whole of our articles by connecting you on your space customer of {{store_name}}. <br /> for any help on our services, do not hesitate with to contact our support: {{store_owner_email_address}} Do you know what or where to modify and make the proper substitution (from includes/ClicShopping/Sites/Shop/Pages/Account/Actions/CreatePro/Process.php) and it arrives ok to its destiny?, without the language definition keys being displayed in it and instead of those, the correct values from languages definitions. Thank you in advance for your valuable help.
August 27, 20196 yr hello @Miguel Ventura, Look a little the problem, ClicShopping\Sites\Shop\Pages\Account\Actions\Create and process.php you have : (supprose you want receive an information when the customer create an account) if (EMAIL_INFORMA_ACCOUNT_ADMIN == 'true') { $email_subject_admin = CLICSHOPPING::getDef('admin_email_subject', ['store_name' => STORE_NAME]); In english language there is a little duplication of admin_email_subject ==> Remove the last You must have only : admin_email_subject = New Customer registrer on {{store_name}} Go to your admin tools / Editors / Define language and reset the language Make a test to create a new account. Just a question : Your problem is only {{store_name}} or this is the email you do not receive correctly ?
August 28, 20196 yr Oups, It seems I read your post to fast. Ok it's create_account_pro. It seems to miss a define : add for every language : example for english admin_email_subject = New Customer registrer on {{store_name}} - Create account Pro Go to your admin tools / Editors / Define language and reset the language Tell me if it's correct.
August 28, 20196 yr Author Hi @Drack, I have already defined the languages but the thing is that by example {{store_owner_email_address}} and {{store_name}} are not substituted with their corresponding values when i receive the email notification as a customer, the definition_key in the languages_definitions table is email_welcome but instead of receive the body's email as: We thank you for confidence that you us testified by recording you like new customer on site Store Example. We have well took into account your request of inscription for the opening of an office account near our network.<br /> you will receive an email notifying the creation of your account, after validation of your request by our service customers, with the whole of information allowing you to connect and carry out your purchases on Store Example<br /><br /> you will be able under privileged customer to then profit from exceptional prices on the whole of our articles by connecting you on your space customer of {{store_name}}. <br /> for any help on our services, do not hesitate with to contact our support: email@owneremail.com instead I receive the welcome email as follows: We thank you for confidence that you us testified by recording you like new customer on site {{store_name}}. We have well took into account your request of inscription for the opening of an office account near our network.<br /> you will receive an email notifying the creation of your account, after validation of your request by our service customers, with the whole of information allowing you to connect and carry out your purchases on {{store_name}}<br /><br /> you will be able under privileged customer to then profit from exceptional prices on the whole of our articles by connecting you on your space customer of {{store_name}}. <br /> for any help on our services, do not hesitate with to contact our support: {{store_owner_email_address}} Maybe I am missing to activate some configuration option? Thank you in advance for your attention.
August 28, 20196 yr Do you make that ? tools / Editors / Define language and reset the language or you can remove the cache /Work/Cache/ all the languages definition
August 28, 20196 yr ok find th solution I think, Inside this : email_welcome = We thank you for confidence that you us testified by recording you like new customer on site {{store_name}}. we have well took into account your request of inscription for the opening of an office account near our network.<br /> you will receive an email notifying the creation of your account, after validation of your request by our service customers, with the whole of information allowing you to connect and carry out your purchases on {{store_name}}<br /><br /> you will be able under privileged customer to then profit from exceptional prices on the whole of our articles by connecting you on your space customer of {{store_name}}. <br /> for any help on our services, do not hesitate with to contact our support: {{store_owner_email_address}} In : ClicShopping\Sites\Shop\Pages\Account\Actions\CreatePro and process.php you have that : (line 537 and 566) $template_email_welcome_catalog = CLICSHOPPING::getDef('email_welcome'); replace by $template_email_welcome_catalog = CLICSHOPPING::getDef('email_welcome', ['store_name' => STORE_NAME, 'store_owner_email_address' => STORE_OWNER_EMAIL_ADDRESS]); reset the language and try. If yes, like I think @ClicShopping look often the forum, it can make a little update on the github Edited August 28, 20196 yr by Drack
August 28, 20196 yr Author You are the hacker @Drack! Those parameters where missing!, Did'nt do the reset language only added your code and it worked as it is supposed. Hope they update it in github. Thank you very much and have a very nice day!
August 28, 20196 yr @Drack, Thank you for this great help This fix will be included for 3.2107 version
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.