Post by misailidiscapsport » Fri Mar 30, 2018 4:13 pm

Hello! I am trying to solve a problem that my new eshops show with the configuration of order email template. I have some eshops on Opencart 2.3 which send normally email (with the tamplate I insert to their code) when they receive an order. My new eshops (Opencart 3.0) don't show the template as it was before. I paste the same code (first i did a convertion from php to twig) on that files:
…/catalog/language/en-gb/mail/order.php -> order_add.php
…/catalog/view/theme/default/template/ order.tpl ->order_add.twig
I also cleared the cache of the Opecart on all of them.
After I pasted the code nothing happened and my email of order confirmation isn't as i want to although the customer email (the one that customer receives) is allwright. If anyone knows the solution it will be really apreciated.
Thank you.


Posts

Joined
Tue Jul 04, 2017 5:44 pm

Post by OCMDev » Fri Mar 30, 2018 11:51 pm

Hi. Maybe this can help you: we have just released an extension specific for OpenCart v3.x Store Owner Email. What it does it to send to Store Owner the same Order information as it is sent to Customer after placing an Order.

You can check more details here: https://www.opencart.com/index.php?rout ... n_id=33653

Hope this helps.
Have a good day!

OCMDev
Web: http://www.ocmdevelopment.com/
Contact1: ocmdevelopment@gmail.com
Contact2: contact@ocmdevelopment.com


User avatar
Newbie

Posts

Joined
Tue Jul 11, 2017 10:28 pm

Post by misailidiscapsport » Mon Apr 02, 2018 2:39 pm

Hello!
I will try to fix it myself and if i can't i will see what to do...
In any case thank you for your reply!
Have a nice day!


Posts

Joined
Tue Jul 04, 2017 5:44 pm

Post by OCMDev » Mon Apr 02, 2018 11:46 pm

Hi,

Sure, I hope you will fix it. In any case you can start by looking in catalog/controller/mail/order.php (if you haven't already)
You will see the structure of the ControllerMailOrder and maybe this can help you with your fix.

Best regards,
OCMDev

OCMDev
Web: http://www.ocmdevelopment.com/
Contact1: ocmdevelopment@gmail.com
Contact2: contact@ocmdevelopment.com


User avatar
Newbie

Posts

Joined
Tue Jul 11, 2017 10:28 pm

Post by misailidiscapsport » Tue Apr 03, 2018 4:59 pm

Thank you very much! I checked it in past but in opencart 2.x i couldn't find which one is its simillar doc. Do you know with which one i have to replace it?
Thanks a lot again


Posts

Joined
Tue Jul 04, 2017 5:44 pm

Post by OCMDev » Tue Apr 03, 2018 10:31 pm

Hi,

The Controller files containing send email functions are:
- in OpenCart v2302: catalog/model/checkout/order.php
- in Opencart v3.x: catalog/controller/mail/order.php
In these files you will find the add functions which are responsible for sending Order email confirmation. If you compare the two files you should find what you need to fix.

Hope this helps.

Best regards,
OCMDev

OCMDev
Web: http://www.ocmdevelopment.com/
Contact1: ocmdevelopment@gmail.com
Contact2: contact@ocmdevelopment.com


User avatar
Newbie

Posts

Joined
Tue Jul 11, 2017 10:28 pm

Post by misailidiscapsport » Wed Apr 04, 2018 2:30 pm

Ok Thank you very much.


Posts

Joined
Tue Jul 04, 2017 5:44 pm
Who is online

Users browsing this forum: No registered users and 15 guests