Support » Plugin: WooCommerce » Suddenly /checkout/?add-to-cart not working as intended

  • Resolved soulcryst

    (@soulcryst)


    Good Day everyone,

    Please help me with this issue.
    For the past couple of months I’ve been using this /checkout/?add-to-cart=<Product ID>
    code for my button links. It has been working so far until November 30th. I just realized today that it was giving me problems. When the button is clicked, it redirects to the cart page.

    Anyone have any idea how to solve this issue?

    Thank you

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Luminus

    (@luminus)

    Automattic Happiness Engineer

    Hi @soulcryst,

    It sounds like you’re creating an “Add to Cart” button and it is doing what it is supposed to by adding the product to the cart and then going to the cart so that the customer can proceed to checkout.

    Are you expecting a different result? If, so what are you trying to achieve?

    If you’re looking to Skip the Cart and go straight to the checkout page, you’ll want to look at this tutorial – https://rudrastyh.com/woocommerce/redirect-to-checkout-skip-cart.html and pay particular attention to Steps 1 and 3.

    I would recommend installing the Code Snippets plugin – https://wordpress.org/plugins/code-snippets/ and using that to add in the bits of code required.

    Cheers.

    Plugin Support Luminus

    (@luminus)

    Automattic Happiness Engineer

    Hi @soulcryst,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.