Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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.

share|improve this question

closed as off-topic by toscho Jun 3 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
add comment

2 Answers 2

up vote 2 down vote accepted

there is an option in the Woocommerce to not include shipping

Go to Woocommerce > Settings> Shipping

and disable the options there

Woocommerce Settings

share|improve this answer
    
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
    
thanks a lot. This is what i wanted! thanks a lot.. –  Jewel Jul 23 '12 at 13:47
add comment

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' );
share|improve this answer
add comment

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