Set Guest Checkout as default login on account/login page?

Started by masalachai, January 18, 2017, 03:36:52 PM

Previous topic - Next topic

masalachai

Anybody know how to make the "checked" bullet for the account/login page  Register Account be set to Guest Checkout instead?
The other option (actually preferred because it skips a step) is to bypass the account/login page completely and go straight to /abantecart/index.php?rt=checkout/guest_step_1 from the Checkout buttons.

UPDATE:
Just did it this way, erased the social bookmarks block with this. Works!

<a class="btn btn-orange btn-lg pull-right" href="/abantecart/index.php?rt=checkout/guest_step_1">Checkout</a>




eCommerce Core

You can change this in the controller by setting default value to 'guest' instead of register:
public_html/storefront/controller/pages/account/login.php:152

Change

'value'   => (isset($this->session->data['account']) ? $this->session->data['account'] : 'register'),

To

'value'   => (isset($this->session->data['account']) ? $this->session->data['account'] : ''),


and


'value'   => ($this->session->data['account'] == 'guest' ? 'guest' : ''),

to

'value'   => ($this->session->data['account'] == 'guest' ? 'guest' : 'guest'),
"If you're in the luckiest one per cent of humanity, you owe it to the rest of humanity to think about the other 99 per cent."
― Warren Buffett

Forum Rules Code of conduct
AbanteCart.com 2010 -