Can someone help me with this?
Thanks!
So you want everyone to create an account?
Is that the goal?
Mike
cue4cheap not cheap quality
If you can't find an extension, you could pay a developer such as ourselves or post a job in the Commercial Support Forum.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Thanks for the answer, but it doesn't help me at all.paulfeakins wrote: ↑Wed Dec 18, 2024 12:59 amIf you can't find an extension, you could pay a developer such as ourselves or post a job in the Commercial Support Forum.
If you have not made changes to Opencart then you should not be able to checkout a delivery item without an address and payment requires an address.
Opencart has a "built in" required function - it is both in the twig and the validation process of the controller.
You should be able to use these for your needs.
DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.
https://www.youtube.com/watch?v=zXIxDoCRc84
Dear @mona,by mona wrote: ↑Wed Dec 18, 2024 2:57 amI do not really understand why this is a problem.
If you have not made changes to Opencart then you should not be able to checkout a delivery item without an address and payment requires an address.
Opencart has a "built in" required function - it is both in the twig and the validation process of the controller.
You should be able to use these for your needs.
I know these things quite well. You don't understand what I want, or did you not read the request well!?
I want a member who is registered on the site but does not have a shipping or payment address registered, but wants to checkout to be redirected to the page: index.php?route=account/address/add to make him fill in the address.
I made some changes to the script and I am stuck with this problem.
I don't see where you don't understand what I want?
You are asking for help on a modified Opencart, with a modified script that has edited core Opencart.
Default Opencart does not allow you to checkout without an address.
As Paul already mentioned and provided a link, custom work falls outside the scope of free support.
For free coding assistance you can try stackoverflow.com
DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.
https://www.youtube.com/watch?v=zXIxDoCRc84
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
After all, there are only two, three lines of code for this requirement and this is a forum for community members.
Happy holidays to all!
Code: Select all
if ($this->customer->isLogged()) {
$this->load->model('account/address');
if (!$this->model_account_address->getAddresses()) {
$this->response->redirect($this->url->link('account/address/add'));
}
}
Check out our ever-growing list of extensions for OpenCart here.
Some useful extensions for a better admin experience: Image File Manager Pro • Drag & Drop Sort Order
Reach out to us at hello@softmonke.com for your OpenCart web development needs or feedback for our extensions.
Thank you very much @softmonke, it works perfectly!

You can mark this request as solved!
Check out our ever-growing list of extensions for OpenCart here.
Some useful extensions for a better admin experience: Image File Manager Pro • Drag & Drop Sort Order
Reach out to us at hello@softmonke.com for your OpenCart web development needs or feedback for our extensions.
Users browsing this forum: Semrush [Bot] and 14 guests