1

I use woocommerce plugin for my shop. I want to skip the checkout page where users give shipping details. So the system will be when they select a product and after go to the cart page they will go to paypal and from paypal we will get the adress. Any idea how i can build this, Please help me. I am newbie.

closed as off-topic by fuxia Jun 3 '14 at 21:02

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

  • Basically I don't want to redirect the user in the checkout page, so in the cart page when the click on the "Proceed to to Checkout" then they will directly go to the paypal. Would you please let me know how i can do that? – Jewel Jul 22 '12 at 10:31
2

there is an option in the Woocommerce to not include shipping

Go to Woocommerce > Settings> Shipping

and disable the options there

Woocommerce Settings

  • 1
    thanks for your answer, Basically I don't want to redirect the user in the checkout page, so in the cart page when the click on the "Proceed to to Checkout" then they will directly go to the paypal. Would you please let me know how i can do that? – Jewel Jul 22 '12 at 10:30
  • Basically I don't want to redirect the user in the checkout page, so in the cart page when the click on the "Proceed to to Checkout" then they will directly go to the paypal. Would you please let me know how i can do that? – Jewel Jul 22 '12 at 11:56
  • Hi Jewel this should be asked as a new question ... but in answer to this ... go to WooCommerce > General and CHECK Allow Guest to Checkout. You should also have a look at the documents at wcdocs.woothemes.com/user-guide/extensions/… – Damien Jul 22 '12 at 12:27
2

To skip the checkout page you can redirect the add to cart URL to the checkout URL. Be careful as the following as no conditional logic and so applies to any product added.

function wpa_59232_redirect_to_checkout( $url ) {
    global $woocommerce;

    // Remove default cart message
    $woocommerce->clear_messages();

    // Redirect to checkout
    $url = $woocommerce->cart->get_checkout_url();

    return $url;
}
add_filter( 'add_to_cart_redirect', 'wpa_59232_redirect_to_checkout' );

Not the answer you're looking for? Browse other questions tagged or ask your own question.