Support » Plugin: WooCommerce » Change add to cart button url on single product page

  • Idaniel

    (@argo_unchained)


    Hello,

    I have a question about the add to cart button on the single product page. if you click on the button you must go straight to the billing form. How do i do that?

    Best regards,

    Idaniël

Viewing 1 replies (of 1 total)
  • Thilina Wickramasinghe

    (@thilina-wickramasinghe)

    Hi,

    Did you try this:

    Woocommerce > Settings > Products > Display > Check ‘Redirect to the cart page after successful addition’

    This option will be automatically Redirect to the cart page after click on add to cart button. You can redirect directly ‘Checkout’ page by adding this to functions.php

    function redirect_to_checkout() {
    return WC()->cart->get_checkout_url();
    }

Viewing 1 replies (of 1 total)
  • The topic ‘Change add to cart button url on single product page’ is closed to new replies.