X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Display company name as Email sender (https://forum.x-cart.com/showthread.php?t=63170)

designguru 10-10-2014 05:42 AM

Re: Display company name as Email sender
 
Quote:

Originally Posted by aim
show_company.4.6.1-4.6.2.diff is uploaded.



The test of your diff file says:

admin/configuration.php COULD NOT be patched

aim 10-10-2014 07:00 AM

Re: Display company name as Email sender
 
Quote:

Originally Posted by designguru
The test of your diff file says:

admin/configuration.php COULD NOT be patched


It seems you have customized admin/configuration.php file.


Some of these hunks cannot be applied

Code:

    'xpc_private_key',
    'xpc_public_key',
    'breadcrumbs_separator',
+    'company_mail_from',
+    'newsletter_email',
+    'orders_department',
+    'site_administrator',
+    'smtp_mail_from',
+    'support_department',
+    'users_department',
 );

 define('XC_SKIP_BOUNCER_TEST',1);



Code:

                    // Check email
                    $validation_result = $is_empty || func_check_email($val);

+                } elseif ($var_properties[$key]['validation'] == 'email_extended') {
+                    // Check email via XCEmailFormat::EXTENDED
+                    $validation_result = $is_empty || func_check_email($val, XCEmailFormat::EXTENDED);
                } elseif ($var_properties[$key]['validation'] == 'emails') {

                    // Check emails list



Code:

$smarty->assign('option',        $option);
 $smarty->assign('option_title',  $_option_title);
 $smarty->assign('main',          'configuration');
+$smarty->assign('email_extended_validation_regexp', func_email_validation_regexp(XCEmailFormat::EXTENDED));

 if (!empty($_option_title))
    $location[] = array( $_option_title, '');


designguru 10-10-2014 07:27 AM

Re: Display company name as Email sender
 
Quote:

Originally Posted by aim
It seems you have customized admin/configuration.php file.


Some of these hunks cannot be applied

Code:

    'xpc_private_key',
    'xpc_public_key',
    'breadcrumbs_separator',
+    'company_mail_from',
+    'newsletter_email',
+    'orders_department',
+    'site_administrator',
+    'smtp_mail_from',
+    'support_department',
+    'users_department',
 );

 define('XC_SKIP_BOUNCER_TEST',1);



Code:

                    // Check email
                    $validation_result = $is_empty || func_check_email($val);

+                } elseif ($var_properties[$key]['validation'] == 'email_extended') {
+                    // Check email via XCEmailFormat::EXTENDED
+                    $validation_result = $is_empty || func_check_email($val, XCEmailFormat::EXTENDED);
                } elseif ($var_properties[$key]['validation'] == 'emails') {

                    // Check emails list



Code:

$smarty->assign('option',        $option);
 $smarty->assign('option_title',  $_option_title);
 $smarty->assign('main',          'configuration');
+$smarty->assign('email_extended_validation_regexp', func_email_validation_regexp(XCEmailFormat::EXTENDED));

 if (!empty($_option_title))
    $location[] = array( $_option_title, '');





Sent you PM

aim 10-12-2014 06:23 AM

Re: Display company name as Email sender
 
1 Attachment(s)
The show_company.4.6.1-4.6.2.diff patch is reuploaded.

designguru 10-12-2014 11:08 AM

Re: Display company name as Email sender
 
Quote:

Originally Posted by aim
The show_company.4.6.1-4.6.2.diff patch is reuploaded.



Thank you. I added it successfully but all the emails still show with the email address. Do I need to set the name somewhere like within the (company information).

Thank again

Duramax 6.6L 10-12-2014 11:36 AM

Re: Display company name as Email sender
 
How about the file for 4.6.4

aim 10-12-2014 07:28 PM

Re: Display company name as Email sender
 
Quote:

Originally Posted by designguru
Thank you. I added it successfully but all the emails still show with the email address. Do I need to set the name somewhere like within the (company information).

Thank again


Do you update the emails on the ' Main page :: General settings :: Company ' page ?

aim 10-12-2014 07:29 PM

Re: Display company name as Email sender
 
Quote:

Originally Posted by Duramax 6.6L
How about the file for 4.6.4


http://forum.x-cart.com/showpost.php?p=377357&postcount=29

designguru 10-13-2014 01:10 AM

Re: Display company name as Email sender
 
Quote:

Originally Posted by aim
Do you update the emails on the ' Main page :: General settings :: Company ' page ?



Yes, I updated these:

1. Main Page :: General Settings :: Company Emails
2. Main Page :: General Settings :: Company from Email

I only can input an email (of course) also for 'company from email'.

Anything I need to do?

aim 10-13-2014 01:45 AM

Re: Display company name as Email sender
 
Do you apply the sql patch ?

You have to fill something like 'Your Company Name <sales@yourstore.com>' to the '"From" email address ' field.


All times are GMT -8. The time now is 10:37 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.