Post by jerocarson » Sat May 26, 2018 11:37 pm

Hi Pals,

I am new to opencart, and there is something I am trying to pull off.

On the success page,

I want the Continue button to link to an external link. I have been able to change button text, but linking it to an external link has given me some kind of headache,

Here is the code in file,
catalog/controller/checkout/success.php

Code: Select all

$data['button_continue'] = $this->language->get('button_continue');

		$data['continue'] = $this->url->link('common/home');
Please help :'(

Newbie

Posts

Joined
Tue May 22, 2018 3:10 am

Post by Johnathan » Sat May 26, 2018 11:38 pm

Change this:

$data['continue'] = $this->url->link('common/home');

to the URL that you want:

$data['continue'] = 'http://www.yourdomain.com/other-page';

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by jerocarson » Sun May 27, 2018 11:08 pm

Johnathan wrote:
Sat May 26, 2018 11:38 pm
Change this:

$data['continue'] = $this->url->link('common/home');

to the URL that you want:

$data['continue'] = 'http://www.yourdomain.com/other-page';
Wow, worked like a charm. Thanks a lot pal.. :D

Newbie

Posts

Joined
Tue May 22, 2018 3:10 am

Post by Johnathan » Mon May 28, 2018 8:45 pm

No problem, glad I could help.

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am

Who is online

Users browsing this forum: No registered users and 219 guests