Hi all I just need help with finding the correct file to correct the link.
I placed a mock order through admin and the email look good except when i clicked on the link it lead to nowhere. See attached images what files would i need to edit to correct this issue and thanks in advance.
I placed a mock order through admin and the email look good except when i clicked on the link it lead to nowhere. See attached images what files would i need to edit to correct this issue and thanks in advance.
Attachments
emailissue2.jpg (159.63 KiB) Viewed 725 times
emailissue.jpg (139.56 KiB) Viewed 725 times
Last edited by sdd on Tue Feb 16, 2021 11:23 pm, edited 1 time in total.
Assuming this is the new order email?
You can reference the following controller & line.
https://github.com/opencart/opencart/bl ... er.php#L93
$order_info['store_url'] is pulled from the oc_order table. You can reference the store_url column.
You can reference the following controller & line.
https://github.com/opencart/opencart/bl ... er.php#L93
$order_info['store_url'] is pulled from the oc_order table. You can reference the store_url column.
Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!
Thanks for your reply but below is what i show and i really would just like to remove the email link altogether. Would i cancel out the code below?
Below is what i show in file below:
.........../catalog/controller/mail/order.php
Below is what i show in file below:
.........../catalog/controller/mail/order.php
Code: Select all
$data['link'] = $order_info['store_url'] . 'index.php?route=account/order/info&order_id=' . $order_info['order_id'];
if ($download_status) {
$data['download'] = $order_info['store_url'] . 'index.php?route=account/download';
} else {
$data['download'] = '';
}
What payment gateway is being used? Did you install any mail extension?
You can remove the link from the template - https://github.com/opencart/opencart/bl ... d.twig#L12
However, looks like you already have modifications to the email template somewhere, either through the editor, or an extension.
You can remove the link from the template - https://github.com/opencart/opencart/bl ... d.twig#L12
However, looks like you already have modifications to the email template somewhere, either through the editor, or an extension.
Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!
The screenshot is not standard 3.0.3.6 order confirmation.
You can remove the link in order_add twig or the controller with OCMod
I will make it for you if you want
You can remove the link in order_add twig or the controller with OCMod
I will make it for you if you want
yes i recently installed a guest login and i used the cod payment for the mock order i created in admin.sw!tch wrote: ↑Tue Feb 16, 2021 5:53 amWhat payment gateway is being used? Did you install any mail extension?
You can remove the link from the template - https://github.com/opencart/opencart/bl ... d.twig#L12
However, looks like you already have modifications to the email template somewhere, either through the editor, or an extension.
Yeah, based on the URL in your screenshot, its most likely the guest login extension is modifying the template and controller.sdd wrote: ↑Tue Feb 16, 2021 6:23 amyes i recently installed a guest login and i used the cod payment for the mock order i created in admin.sw!tch wrote: ↑Tue Feb 16, 2021 5:53 amWhat payment gateway is being used? Did you install any mail extension?
You can remove the link from the template - https://github.com/opencart/opencart/bl ... d.twig#L12
However, looks like you already have modifications to the email template somewhere, either through the editor, or an extension.
If you want to use that extension you will have to modify it yourself and then reupload it or contact the extension developer.
Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!
Understand and thank you for your reply.sw!tch wrote: ↑Tue Feb 16, 2021 6:28 amYeah, most likely the extension is modifying the template and controller. If you want to use that extension you will have to modify it yourself and then reupload it.sdd wrote: ↑Tue Feb 16, 2021 6:23 amyes i recently installed a guest login and i used the cod payment for the mock order i created in admin.sw!tch wrote: ↑Tue Feb 16, 2021 5:53 amWhat payment gateway is being used? Did you install any mail extension?
You can remove the link from the template - https://github.com/opencart/opencart/bl ... d.twig#L12
However, looks like you already have modifications to the email template somewhere, either through the editor, or an extension.
If that answers your question please add [SOLVED] to the start of the post title.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Guru Member
Thank you for your reply but since the link was effected by a modification i simply download a Modification Manager and made changes through that and solve the issue.
For those in similar situation please see link below:
https://www.opencart.com/index.php?rout ... n_id=22318
For those in similar situation please see link below:
https://www.opencart.com/index.php?rout ... n_id=22318