Created
March 16, 2020 07:51
-
-
Save akther80/c5cad14e8d59d1158f4791a7ab1423d4 to your computer and use it in GitHub Desktop.
Front - Payment method in sidebar Using woocommerce-germanized/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ( class_exists( 'WooCommerce_Germanized' ) ) : | |
function woocommerce_checkout_before_order_review() { | |
remove_action( 'woocommerce_checkout_order_review', 'woocommerce_order_review', 20 ); | |
remove_action( 'woocommerce_checkout_order_review', 'woocommerce_checkout_payment', 10 ); | |
remove_action( 'woocommerce_checkout_after_customer_details', 'woocommerce_checkout_payment', 10 ); | |
add_action( 'woocommerce_checkout_order_review', 'woocommerce_order_review', 10 ); | |
add_action( 'woocommerce_checkout_order_review', 'woocommerce_checkout_payment', 20 ); | |
} | |
add_action( 'init', 'woocommerce_checkout_before_order_review', 10 ); | |
endif; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.woocommerce-checkout-review-order-table .cart-subtotal.media { | |
clear: both; | |
} | |
.woocommerce-checkout-payment + #order_review_heading { | |
display: none !important; | |
} | |
form.woocommerce-checkout .border.shadow-soft > .border-bottom{ | |
display: none; | |
} | |
#order_payment_heading { | |
margin-top: 20px; | |
} | |
.wc-gzd-order-submit .button { | |
display: inline-block; | |
font-weight: 500; | |
color: #fff; | |
text-align: center; | |
vertical-align: middle; | |
user-select: none; | |
background-color: #377dff; | |
border: 1px solid #377dff; | |
padding: 0.75rem 1rem; | |
font-size: 1rem; | |
line-height: 1.5; | |
border-radius: 0.3125rem; | |
transition: all 0.2s ease-in-out; | |
} | |
.wc-gzd-order-submit .button:hover, | |
.wc-gzd-order-submit .button:focus { | |
box-shadow: 0 4px 11px rgba(55,125,255,.35); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment