Post by olaand » Sat Mar 02, 2019 11:14 pm

Hi,

Using OC v3.x.

I have noticed that the customer account activation link in the email sent out is written twice and causes a page cannot be found message. Do you know where I can edit that link?

Code: Select all

index.php?route=account/loginindex.php?route=account/login
Kind Regards
Ola

Newbie

Posts

Joined
Mon Apr 30, 2018 7:51 pm

Post by straightlight » Sun Mar 03, 2019 12:11 am

Using OC v3.x.
Imprecise OC version posted. OC versions have four decimal values.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by olaand » Sun Mar 03, 2019 12:40 am

straightlight wrote:
Sun Mar 03, 2019 12:11 am
Using OC v3.x.
Imprecise OC version posted. OC versions have four decimal values.
Apologies: Version 3.0.2.0

Newbie

Posts

Joined
Mon Apr 30, 2018 7:51 pm

Post by straightlight » Sun Mar 03, 2019 3:03 am

Issue already fixed in OC v3.0.3.1 release. In admin/controller/mail/customer.php file,

find all instances of:

Code: Select all

if ($store_info) {
				$store_name = html_entity_decode($store_info['name'], ENT_QUOTES, 'UTF-8');
				$store_url = $store_info['url'];
			} else {
				$store_name = html_entity_decode($this->config->get('config_name'), ENT_QUOTES, 'UTF-8');
				$store_url = HTTP_CATALOG;
			}
replace all with:

Code: Select all

if ($store_info) {
				$store_name = html_entity_decode($store_info['name'], ENT_QUOTES, 'UTF-8');
				$store_url = $store_info['url'] . 'index.php?route=account/login';
			} else {
				$store_name = html_entity_decode($this->config->get('config_name'), ENT_QUOTES, 'UTF-8');
				$store_url = HTTP_CATALOG . 'index.php?route=account/login';
			}

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by Scooteruk » Sun May 04, 2025 9:03 pm

Hi,
I am using OC version 3.0.3.2 and facing the same problem. The changes suggested here are already there in my OC 3.0.3.2 file but when customer registers, he gets the following URL
Welcome and thank you for registering at XYZ Store!https://xyz.co.uk/shop/index.php?route= ... t/loginXYZ Store
So the two problems are:


1. index.php?route=account/loginindex.php?route=account/login (twice)
and in the second part of the above , the store name (XYZ) gets added to the URL making the final URL as
https://xyz.co.uk/shop/index.php?route= ... t/loginXYZ
Please help me fix this problem.
Regards

Newbie

Posts

Joined
Sat Dec 21, 2019 11:04 pm

Post by khnaz35 » Mon May 05, 2025 12:59 am

Scooteruk wrote:
Sun May 04, 2025 9:03 pm
Please help me fix this problem.
Can you share your

Code: Select all

/catalog/model/account/customer.php

Got an urgent question that’s keeping you up at night? There might just be a magical inbox ready to help: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by JNeuhoff » Mon May 05, 2025 2:49 am

@Scooteruk : More details please, see forum rules. What's your website URL? Theme? Extensions used?

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by Scooteruk » Mon May 05, 2025 8:13 pm

Thank you for your prompt response. Attached is the requested file .
Regards

Newbie

Posts

Joined
Sat Dec 21, 2019 11:04 pm

Post by JNeuhoff » Mon May 05, 2025 9:25 pm

There have been some changes since OC 3.0.3.2 for the catalog/model/account/customer.php, see https://github.com/opencart/opencart/bl ... stomer.php , though is still the same as in OC 3.0.3.2 .

However, why don't you provide requested details as per the forum rules? Without them, nobody will be able to help you here!

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by khnaz35 » Wed May 07, 2025 3:07 am

JNeuhoff wrote:
Mon May 05, 2025 9:25 pm
However, why don't you provide requested details as per the forum rules? Without them, nobody will be able to help you here!
Also would recommend

Code: Select all

/catalog/controller/mail/register.php 

/catalog/language/en-gb/mail/register.php


Got an urgent question that’s keeping you up at night? There might just be a magical inbox ready to help: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia
Who is online

Users browsing this forum: Bing [Bot] and 16 guests