Page 1 of 1

Disable Login And Registration on Checkout

Posted: Sat Feb 13, 2010 2:36 pm
by fahd
Hi,
Is it possible to disable login box from checkout page. I just want my customer details billing and shipping don't want to give him option to register or login. I know It can be done. When Customer clicks on checkout he should ask for his details that's it. Please advice me how can I do that.

Regards,

Re: Disable Login And Registration on Checkout

Posted: Sat Feb 13, 2010 9:37 pm
by Qphoria
Quick method is to redirect all normal checkout pages to the guest checkout pages.

1. EDIT 3 FILES:
catalog/controller/checkout/shipping.php
catalog/controller/checkout/payment.php
catalog/controller/checkout/confirm.php

2. IN ALL 3 FILES, FIND:

Code: Select all

$this->redirect($this->url->https('account/login'));
3. IN ALL 3 FILES, REPLACE WITH:

Code: Select all

$this->redirect(HTTPS_SERVER . 'index.php?route=checkout/guest_step_1'));
If you want to completely disable login and account create features, you can set up redirects from those account pages so that they can never be landed on:

1. EDIT 2 FILES:
catalog/controller/account/login.php
catalog/controller/account/create.php

2. FIND:

Code: Select all

public function index() {
3. AFTER, ADD:

Code: Select all

$this->redirect(HTTPS_SERVER . 'index.php?route=checkout/guest_step_1');
4. EDIT:
catalog/view/theme/YOURTHEME/template/common/header.tpl

You will also likely want to remove the login & account tabs from the header.

Re: Disable Login And Registration on Checkout

Posted: Tue Feb 16, 2010 5:17 pm
by gartheman
Qphoria wrote: You will also likely want to remove the login & account tabs from the header. If you want to completely disable login and account create features, there is a different way
how would one go about this? apologies if the answer is on here somewhere but i can't find it :(

Re: Disable Login And Registration on Checkout

Posted: Wed Feb 17, 2010 10:00 pm
by khlaim
Hi,
You will also likely want to remove the login & account tabs from the header. If you want to completely disable login and account create features, there is a different way
I would like to remove login & account & shopping cart etc. functions, im trying to configure my opencart as "catalogue only".

thanks in advance

Re: Disable Login And Registration on Checkout

Posted: Thu Feb 18, 2010 12:47 am
by gartheman
to fix my problem i ended up editing this file

\catalog\view\theme\default\template\common.header.tpl

go to line 35 and replace all the div4 code with this:

<div class="div4"><a href="<?php echo $home; ?>" id="tab_home"><?php echo $text_home; ?></a>
<a href="<?php echo $cart; ?>" id="tab_cart"><?php echo $text_cart; ?></a><a href="<?php echo $checkout; ?>" id="tab_checkout"><?php echo $text_checkout; ?></a></div>

although now the tabs are misaligned, but i'm sure that's easily fixed

Re: Disable Login And Registration on Checkout

Posted: Fri Feb 19, 2010 7:16 am
by khlaim
thank you very much,

i've played in template files a bit, it looks exactly as i want now.

thanks again.
I apperciate it.

Re: Disable Login And Registration on Checkout

Posted: Mon Jun 21, 2010 10:21 pm
by sel
Qphoria wrote:If you want to completely disable login and account create features, there is a different way
Hi. How do you disable the login and account features as mentioned above? I only want users to be able to checkout using a guest account. I'm running version 1.4.8

Thanks in advance.

Re: Disable Login And Registration on Checkout

Posted: Mon Mar 14, 2011 9:47 pm
by ehandelsfabriken
How can I send all clicks on the Checkout link to the guest checkout page but still give the customer the option to register an account. I think I need to add something to the "if" question in login.php.

1.4.9.3

Re: Disable Login And Registration on Checkout

Posted: Tue Jun 07, 2011 1:14 am
by mixor
Hi,

I would like to allow checkout as guest only on opencart 1.5.
Since it's completely different way for checout as in 1.4.x I would be glad if anyone can provide instructions.
I presume threre's need to change the checkout.php and/or checkout.tpl file but since I'm beginner in java programming I can't do it myself.

Thanks

Re: Disable Login And Registration on Checkout

Posted: Thu Aug 11, 2011 4:10 am
by tjonnyc
How about making the registration option a little more "stealthy"?

What do we need from the customer to register an account? E-mail and password.
They already enter the E-mail address on guest checkout - so just stick a password field in there somewhere.
That way, you're not scaring them with the whole "Register Account" header, yet you're still providing them with a way to re-login and track their orders.

That's the easy part... now we just need one of the resident OpenCart wizards (oh hi Qphoria! :D :D :D) to figure out the programming...

Re: Disable Login And Registration on Checkout

Posted: Thu Aug 11, 2011 5:21 am
by tjonnyc
Qphoria wrote: 1. EDIT 3 FILES:
catalog/controller/checkout/shipping.php
catalog/controller/checkout/payment.php
catalog/controller/checkout/confirm.php

2. IN ALL 3 FILES, FIND:

Code: Select all

$this->redirect($this->url->https('account/login'));
3. IN ALL 3 FILES, REPLACE WITH:

Code: Select all

$this->redirect(HTTPS_SERVER . 'index.php?route=checkout/guest_step_1'));
UPDATE for version 1.4.9.5:

Instead of
$this->redirect($this->url->https('account/login'));

search for
$this->redirect(HTTPS_SERVER . 'index.php?route=account/login');.

Re: Disable Login And Registration on Checkout

Posted: Tue Aug 23, 2011 2:20 am
by gtamborero
Disable login and registration on Checkout Opencart 1.5

Hi! Have a look at this post:
http://forum.opencart.com/viewtopic.php?f=20&t=36157

Re: Disable Login And Registration on Checkout

Posted: Sun Apr 15, 2012 1:02 am
by kgkaraoke
If you want to completely disable login and account create features in OC 1.4.X.X, you can set up redirects from those account pages so that they can never be landed on:

1. EDIT 2 FILES:
catalog/controller/account/login.php
catalog/controller/account/create.php

2. FIND:

Code: Select all

public function index() {
3. AFTER, ADD:

Code: Select all

$this->redirect(HTTPS_SERVER . 'index.php?route=checkout/guest_step_1');
4. EDIT:
catalog/view/theme/YOURTHEME/template/common/header.tpl

You will also likely want to remove the login & account tabs from the header.

In order to change the wording "Guest Checkout", go to catalog\language\english\checkout and you will find two files:

guest_step_1.php and guest_step_2.php
Change all references to "GUEST CHECKOUT" in these files to "CHECKOUT"

This way the customers won't think there's something wrong with your cart.

Re: Disable Login And Registration on Checkout

Posted: Thu Jun 27, 2013 9:55 pm
by rusty69t
How can I disable login and registration on checkout in opencart 1.5.5.1

I cant find any of these files in my catalog/controller/checkout/ Folder

catalog/controller/checkout/shipping.php
catalog/controller/checkout/payment.php
catalog/controller/checkout/confirm.php

Re: Disable Login And Registration on Checkout

Posted: Sun Oct 13, 2013 12:25 am
by dbckham7
Following up... got 1.5.2.1 and there are no shipping or payment .php

Re: Disable Login And Registration on Checkout

Posted: Sun Oct 13, 2013 12:39 am
by dbckham7
@Qphoria is it the same steps just with different file (.php) names?

Re: Disable Login And Registration on Checkout

Posted: Mon Oct 14, 2013 9:54 pm
by dbckham7
Anyone know how to make this work for 1.5.2.1?

Re: Disable Login And Registration on Checkout

Posted: Tue Oct 15, 2013 10:13 pm
by dbckham7
?

Re: Disable Login And Registration on Checkout

Posted: Mon Apr 14, 2014 2:12 am
by slavib
? 1.5.6.2

Re: Disable Login And Registration on Checkout

Posted: Thu May 24, 2018 3:02 am
by sayedsrkkhan
how to do in OC 2.3.0.2