Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. //First option
  2. add_action( 'woocommerce_before_cart', 'woocommerce_checkout_login_form', 10 );
  3.  
  4. //Second option
  5. add_action( 'woocommerce_before_cart', 'function custom_checkout_login_form', 10 );
  6. function custom_checkout_login_form() {
  7. ?>
  8. <div class="woocommerce-form-login-toggle">
  9. <?php wc_print_notice( apply_filters( 'woocommerce_login_form', __( 'Returning customer?', 'woocommerce' ) ) . ' <a href="#" class="showlogin">' . __( 'Click here to login', 'woocommerce' ) . '</a>', 'notice' ); ?>
  10. </div>
  11. <?php
  12.  
  13. woocommerce_login_form(
  14. array(
  15. 'message' => __( 'If you have shopped with us before, please enter your details below. If you are a new customer, please proceed to the Billing & Shipping section.', 'woocommerce' ),
  16. 'redirect' => wc_get_page_permalink( 'checkout' ),
  17. 'hidden' => true,
  18. )
  19. );}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement