Post by sdd » Tue Feb 16, 2021 4:18 am

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.

Attachments

emailissue2.jpg

emailissue2.jpg (159.63 KiB) Viewed 725 times

emailissue.jpg

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.

User avatar
sdd
New member

Posts

Joined
Sat Feb 06, 2021 6:21 am

Post by sw!tch » Tue Feb 16, 2021 4:34 am

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.

Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm

Post by sdd » Tue Feb 16, 2021 5:22 am

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

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'] = '';
		}

User avatar
sdd
New member

Posts

Joined
Sat Feb 06, 2021 6:21 am

Post by sw!tch » Tue Feb 16, 2021 5:53 am

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.

Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm

Post by mikeinterserv » Tue Feb 16, 2021 6:04 am

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

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales

Post by sdd » Tue Feb 16, 2021 6:23 am

sw!tch wrote:
Tue Feb 16, 2021 5:53 am
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.
yes i recently installed a guest login and i used the cod payment for the mock order i created in admin.

User avatar
sdd
New member

Posts

Joined
Sat Feb 06, 2021 6:21 am

Post by sw!tch » Tue Feb 16, 2021 6:28 am

sdd wrote:
Tue Feb 16, 2021 6:23 am
sw!tch wrote:
Tue Feb 16, 2021 5:53 am
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.
yes i recently installed a guest login and i used the cod payment for the mock order i created in admin.
Yeah, based on the URL in your screenshot, its most likely the guest login 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 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!


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm

Post by sdd » Tue Feb 16, 2021 6:31 am

sw!tch wrote:
Tue Feb 16, 2021 6:28 am
sdd wrote:
Tue Feb 16, 2021 6:23 am
sw!tch wrote:
Tue Feb 16, 2021 5:53 am
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.
yes i recently installed a guest login and i used the cod payment for the mock order i created in admin.
Yeah, 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.
Understand and thank you for your reply.

User avatar
sdd
New member

Posts

Joined
Sat Feb 06, 2021 6:21 am

Post by paulfeakins » Tue Feb 16, 2021 5:13 pm

sdd wrote:
Tue Feb 16, 2021 6:31 am
Understand and thank you for your reply.
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


User avatar
Guru Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by sdd » Tue Feb 16, 2021 11:23 pm

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

User avatar
sdd
New member

Posts

Joined
Sat Feb 06, 2021 6:21 am
Who is online

Users browsing this forum: NicNie, shanghua and 399 guests