Post by furnic » Tue Jun 11, 2024 9:28 pm

using opencart 4.0.2.2
I get there are issues still with version 4.0 so we can bypass those answers

my question is when i checkout i get to the following page:
https://mywebsite.com/en-gb?route=checkout/checkout

instead i would like it to redirect to to the create account page
https://mywebsite/en-gb?route=account/login


Where do I go to change this, thank you

Newbie

Posts

Joined
Mon Jan 05, 2015 10:02 pm

Post by grgr » Wed Jun 12, 2024 9:07 am

Open the file ../controller/account/account.php
Copy the code at the top of the file for the redirect.
Open the file ../controller/checkout/checkout.php
Paste in the code you just coppied to a suitable place at the top of the file.
Change the session redirect line to checkout/checkout.
Save and test.

I'm guessng that should work.

Obviously, you should do that with an Event Handler rather than hard coding. Or I guess vQmod works also.

-
Image Image Image Image
VIEW ALL EXTENSIONS * EXTENSION SUPPORT * WEBSITE * CUSTOM REQUESTS


User avatar
Active Member

Posts

Joined
Mon Mar 28, 2011 4:08 pm
Location - UK
Who is online

Users browsing this forum: levik11 and 5 guests