AbanteCart Community
AbanteCart Development => Customization help => Topic started by: masalachai on January 18, 2017, 03:36:52 PM
-
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>
-
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'),