Opencart Version: 3.0.2.0
Journal Theme
It's not a secret that people want more information on the Admin Customer Order Notification/Confirmation. Can anyone supply the PHP that should be used to send the more detailed customer order confirmation to the admin address? For now, id like to stay away from any mods.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Which topic are you referring to?
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Sending Customer Order Email dublicate to Store/Admin Email Address
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<modification>
<id>UKSB Admin HTML Order Email with Status and Comments </id>
<version>1.0.0</version>
<vqmver>2.1.1</vqmver>
<author>http://www.opencart-extensions.co.uk</author>
<file name="catalog/model/checkout/order.php">
<operation>
<search position="before"><![CDATA[$template->data['text_footer'] = $language->get('text_new_footer');]]></search>
<add><![CDATA[$template->data['text_new_order_status'] = $language->get('text_new_order_status');
$template->data['text_update_comment'] = $language->get('text_update_comment');]]></add>
</operation>
<operation>
<search position="after"><![CDATA[$template->data['ip'] = $order_info['ip'];]]></search>
<add><![CDATA[$template->data['order_status'] = $order_status;
$template->data['order_comment'] = $order_info['comment'];]]></add>
</operation>
<operation>
<search position="replace" offset="51"><![CDATA[$subject = sprintf($language->get('text_new_subject'), html_entity_decode($this->config->get('config_name'), ENT_QUOTES, 'UTF-8'), $order_id);]]></search>
<add><![CDATA[ $mail->setTo($this->config->get('config_email'));
$mail->send();]]></add>
</operation>
</file>
<file name="catalog/view/theme/default/template/mail/order.tpl">
<operation>
<search position="replace"><![CDATA[<b><?php echo $text_ip; ?></b> <?php echo $ip; ?><br /></td>]]></search>
<add><![CDATA[<b><?php echo $text_ip; ?></b> <?php echo $ip; ?><br />
<b><?php echo $text_new_order_status; ?></b> <?php echo $order_status; ?><br /></td>]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[<p><?php echo $text_footer; ?></p>]]></search>
<add><![CDATA[<?php if($order_comment!=''){ ?> <table class="list">
<thead>
<tr>
<td class="left"><?php echo $text_update_comment; ?></td>
</tr>
</thead>
<tbody>
<tr>
<td class="left"><?php echo nl2br($order_comment); ?></td>
</tr>
</tbody>
</table><?php } ?>
<p><?php echo $text_footer; ?></p>]]></add>
</operation>
</file>
</modification>
Under catalog/controller/mail/order.php file
For additional field name to display under view file you need to add that field text under /catalog/language/en-gb/mail/order_add.php file.
By using catalog/view/theme/*/template/mail/order_alert.twig file. You can display the changes in front store.
Opencart Expert | sales[at]ost.agency
Skype - manish.osuniverse | Gtalk - manishmt
Extensions for Opencart @ https://www.ost.agency/product/product- ... extensions
ost.agency - ecommerce website design, development and digital company
https://www.opencart.com/index.php?rout ... n_id=35844
Great,fabius wrote: ↑Mon Dec 31, 2018 12:26 amUse this free extension, "Customer order confirmation email for store owner":
https://www.opencart.com/index.php?rout ... n_id=35844
I just downloaded and installed it. A very useful option.
Thanks
here:
viewtopic.php?f=202&t=209133
nice extension,but not works for me ,opencart Version 3.0.3.1,fabius wrote: ↑Mon Dec 31, 2018 12:26 amUse this free extension, "Customer order confirmation email for store owner":
https://www.opencart.com/index.php?rout ... n_id=35844
my extension:https://www.opencart.com/index.php?rout ... estshop24h
email :support@bestshop24h.com
site:http://www.bestshop24h.com
Old codes. These changes could be easily accomplished with Events nowadays.tingwing wrote: ↑Sat Nov 21, 2020 9:41 pmnice extension,but not works for me ,opencart Version 3.0.3.1,fabius wrote: ↑Mon Dec 31, 2018 12:26 amUse this free extension, "Customer order confirmation email for store owner":
https://www.opencart.com/index.php?rout ... n_id=35844
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
However, it still encourages people to edit core files.sw!tch wrote: ↑Sun Nov 22, 2020 2:10 amCan be done in 2 lines of code - viewtopic.php?f=202&t=215662#p774260
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
excellent reply,but it doesnot work for me,is there an commercial extension ,fabius wrote: ↑Mon Dec 31, 2018 12:26 amUse this free extension, "Customer order confirmation email for store owner":
https://www.opencart.com/index.php?rout ... n_id=35844
by the way ,I think this should become a default function of opencart
my extension:https://www.opencart.com/index.php?rout ... estshop24h
email :support@bestshop24h.com
site:http://www.bestshop24h.com
You don't need a commercial extension if you follow the post I linked. viewtopic.php?f=202&t=215662#p774260tingwing wrote: ↑Sun Nov 22, 2020 11:37 amexcellent reply,but it doesnot work for me,is there an commercial extension ,fabius wrote: ↑Mon Dec 31, 2018 12:26 amUse this free extension, "Customer order confirmation email for store owner":
https://www.opencart.com/index.php?rout ... n_id=35844
by the way ,I think this should become a default function of opencart
If you don't want to edit the core, you can easily build an .ocmod.
Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!
Or an event.sw!tch wrote: ↑Sun Nov 22, 2020 1:55 pmYou don't need a commercial extension if you follow the post I linked. viewtopic.php?f=202&t=215662#p774260tingwing wrote: ↑Sun Nov 22, 2020 11:37 amexcellent reply,but it doesnot work for me,is there an commercial extension ,fabius wrote: ↑Mon Dec 31, 2018 12:26 amUse this free extension, "Customer order confirmation email for store owner":
https://www.opencart.com/index.php?rout ... n_id=35844
by the way ,I think this should become a default function of opencart
If you don't want to edit the core, you can easily build an .ocmod.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
now ,I guess the reason is that it is limited by hosting.
my extension:https://www.opencart.com/index.php?rout ... estshop24h
email :support@bestshop24h.com
site:http://www.bestshop24h.com
Users browsing this forum: No registered users and 74 guests