Post by ajax0761 » Sun Mar 24, 2019 1:20 am

Hello, I'm trying to customize what the name on my email Sender is because I need it different than what the store settings say.
I'm also trying to customize the email subject and remove the $orderinfo store_name from it.

Here's the code examples:

Line 388:

Code: Select all

$subject = sprintf($language->get('text_new_subject'), html_entity_decode($order_info['store_name'], ENT_QUOTES, 'UTF-8'), $order_id);
Line 766:

Code: Select all

	$subject = sprintf($language->get('text_update_subject'), html_entity_decode($order_info['store_name'], ENT_QUOTES,
How do I remove $order_info['store_name'] without causing PHP errors?

Line 644 :

Code: Select all

	$mail->setSender(html_entity_decode($order_info['store_name'], ENT_QUOTES, 'UTF-8'));
How do I just set it to the sender name I want, such as "Support Staff" instead of all this code?

I've tried modifying deleting the code and manually entering the info I want surrounded by '' marks and it works, but then orders hang due to PHP errors.
Thanks!
Last edited by ajax0761 on Mon Mar 25, 2019 12:03 am, edited 1 time in total.

Newbie

Posts

Joined
Sat Apr 21, 2018 10:00 am

Post by straightlight » Sun Mar 24, 2019 6:20 am

Code: Select all

$subject = sprintf($language->get('text_new_subject'), html_entity_decode($order_info['store_name'], ENT_QUOTES, 'UTF-8'), $order_id);
for:

Code: Select all

$subject = sprintf($language->get('text_new_subject'), html_entity_decode('Support Staff', ENT_QUOTES, 'UTF-8'), $order_id);
and:

Code: Select all

$mail->setSender(html_entity_decode($order_info['store_name'], ENT_QUOTES, 'UTF-8'));
for:

Code: Select all

$mail->setSender(html_entity_decode('Support Staff', ENT_QUOTES, 'UTF-8'));

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by ajax0761 » Mon Mar 25, 2019 12:03 am

Thankyou this worked! Changing subject to "solved"

Newbie

Posts

Joined
Sat Apr 21, 2018 10:00 am
Who is online

Users browsing this forum: No registered users and 66 guests