Hello,
I'm upgrading an OpenCart site from 1.5 to 3.0.2.0. In the old site, I had added the ability (thanks to this forum) to include the SKU and UPC in emails. I've gone through the changes I made to implement this and it now looks very different in the latest version of OC. I've searched the forums and not been able to find any posts on this subject for this version. Does anyone have a clue where to start?
I'm currently looking at
catalog/model/checkout/order.php
and
catalog/controller/checkout/order.php
Am I at least starting in the right place?
I'm upgrading an OpenCart site from 1.5 to 3.0.2.0. In the old site, I had added the ability (thanks to this forum) to include the SKU and UPC in emails. I've gone through the changes I made to implement this and it now looks very different in the latest version of OC. I've searched the forums and not been able to find any posts on this subject for this version. Does anyone have a clue where to start?
I'm currently looking at
catalog/model/checkout/order.php
and
catalog/controller/checkout/order.php
Am I at least starting in the right place?
How different? What are you looking for to do exactly? More information is needed.daveydave wrote: ↑Thu Mar 22, 2018 9:38 pmHello,
I'm upgrading an OpenCart site from 1.5 to 3.0.2.0. In the old site, I had added the ability (thanks to this forum) to include the SKU and UPC in emails. I've gone through the changes I made to implement this and it now looks very different in the latest version of OC. I've searched the forums and not been able to find any posts on this subject for this version. Does anyone have a clue where to start?
I'm currently looking at
catalog/model/checkout/order.php
and
catalog/controller/checkout/order.php
Am I at least starting in the right place?
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Which email are you specifically looking for?
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
In catalog/controller/mail/order.php file,
find all instances of:
add below each:
Then, find all instances of:
add above each:
Then, find all instances of:
add below each:
In catalog/view/theme/<your_theme>/template/mail/order_alert.twig file,
find:
you can add:
before the second: {% endfor %} ending below. This should resolved the issue.
find all instances of:
Code: Select all
$this->load->model('tool/upload');
Code: Select all
$this->load->model('catalog/product');
Code: Select all
$data['products'][] = array(
Code: Select all
$product_info = $this->model_catalog_product->getProduct($order_product['product_id']);
Code: Select all
'model' => $order_product['model'],
Code: Select all
'upc' => (!empty($product_info['upc']) ? strip_tags(html_entity_decode($product_info['upc'], ENT_QUOTES, 'UTF-8')) : ''),
'sku' => (!empty($product_info['sku']) ? strip_tags(html_entity_decode($product_info['sku'], ENT_QUOTES, 'UTF-8')) : ''),
find:
Code: Select all
{% for product in products %}
Code: Select all
{{ product.upc }}
{{ product.sku }}
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
It's been a long time since this has been posted.straightlight wrote: ↑Thu Mar 22, 2018 10:06 pmIn catalog/controller/mail/order.php file,
find all instances of:
...Code: Select all
$this->load->model('tool/upload');
Can you help me to achive that?, I tried your but it didn't work
OC 3.0.3.2
PM sent.SynysterDory wrote: ↑Wed Feb 19, 2020 12:12 amIt's been a long time since this has been posted.straightlight wrote: ↑Thu Mar 22, 2018 10:06 pmIn catalog/controller/mail/order.php file,
find all instances of:
...Code: Select all
$this->load->model('tool/upload');
Can you help me to achive that?, I tried your but it didn't work
OC 3.0.3.2
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Who is online
Users browsing this forum: No registered users and 377 guests