Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Guest Checkout. #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions functions-parent-override.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,8 @@
*
*
*/
add_filter( 'gb_account_register_user_fields', 'remove_guest_registration_field', 100, 1 );
function remove_guest_registration_field( $fields = array() ) {
unset($fields['guest_purchase']);
return $fields;
}
32 changes: 32 additions & 0 deletions gbs/checkout/login-or-register.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<div id="checkout_login_register_wrap" class="border_bottom clearfix">

<h2 class="sub_heading gb_ff"><span class="title_highlight"><?php gb_e('Sign-up, Sign-in or Guest Purchase'); ?></span></h2>

<div id="checkout_login_register_forms" class="clearfix">
<div id="checkout_registration_form_wrap" class="checkout_block background_alt left_form clearfix">
<div class="paymentform-info">
<h2 class="table_heading contrast font_medium gb_ff"><?php _e('Register'); ?></h2>
</div>
<div id="checkout_registration_form" class="clearfix">
<?php print $args['registration_form']; ?>
</div><!-- #checkout_registration_form.-->

</div>

<div id="checkout_login_form_wrap" class="checkout_block background_alt right_form clearfix">
<div class="paymentform-info">
<h2 class="table_heading contrast font_medium gb_ff"><?php _e('Login'); ?></h2>
</div>
<div id="checkout_login_form" class="clearfix">
<?php print $args['login_form']; ?>
<div class="account-register-controls">
<input class="form-submit submit" type="submit" value="Login">
</div>
</div>

</div>
<input type="hidden" name="gb_account_action" value="gb_account_register" />
<input type="hidden" name="gb_login_or_register" value="1" />
</div><!-- .checkout_login_register_forms -->

</div>
5 changes: 4 additions & 1 deletion style.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Theme Name: Blank Child Theme
Theme Name: Response Child Theme
Theme URI: http://groupbuyingsite.com
Description: This theme will be identical to the Response Theme until you add modifications.
Author: Group Buying Site
Expand All @@ -12,3 +12,6 @@ template: response-theme
Add your custom styles below:
*/

#gb_checkout_payment table, #gb_checkout_review table {
width: 100%;
}