Post by tgdonohue » Sat May 27, 2017 1:39 am

On my site, opencart 2.2 is a module within the larger site.
When one clicks on a "Buy" button the user is taken into Opencart to complete the transaction.
After successful completion I would like the user to be returned to the main directory either by substituting a page for / index.php?route=checkout/success
or
By changing the URL of the "continue" button on the success page.

Can anyone offer a solution please?

New member

Posts

Joined
Sat Mar 12, 2016 3:03 am

Post by ite.systems » Sat May 27, 2017 7:37 am

Hi
In the file: catalog/controller/checkout/success.php just before

Code: Select all

$this->document->setTitle($this->language->get('heading_title'));
add

Code: Select all

$this->response->redirect('url you want to redirect');

Image
Professional OpenCart support: info@ite.systems


User avatar
Newbie

Posts

Joined
Mon May 15, 2017 7:17 am
Location - Leicester, United Kingdom
Who is online

Users browsing this forum: No registered users and 83 guests