• Resolved may

    (@mcp2019)


    Hi everyone,

    To best illustrate my problem I’ll describe what happened prior to the problem first.

    First I’ve set up all the other web pages of my website. Then I installed Woocommerce, but did not activate it because I was still researching how to set up the Checkout Page.

    Then I came across Cartflows and decided to use this plugin to set up the workflow of the checkout process: checkout and thank you page. That’s when I activated both Woocommerce (free version) and Cartflows (free version).

    I’ve successfully set up the checkout and thank you page, including the test mode of the payment gateway. All worked well.

    Then, because of the VAT laws in Europe I had to have some VAT check in place during the checkout process. I installed Woocommerce EU VAT compliance plugin (premium version) which includes checking the input of VAT numbers and adds a input field to the checkout form to collect the VAT number of the customer. There must be some kind of conflict between Cartflows and the VAT plugin because the VAT input field did not show up in my checkout form. Then I found out the VAT input field does (only) show up in the Edit Elementor mode of WordPress.

    I deactivated Cartflows (also advised by the developer of the VAT plugin), and instead used Woocommerce’s checkout page by itself. The VAT input field now shows up in the checkout page and works fine…. HOWEVER, whenever I fill out the checkout form, proceed to payment (in test mode), the following problems occur:

    1. I can only submit the checkout page ONCE, after payment process I’m redirected to the Woocommerce standard Thank You page, but when I try to access the checkout page again, I’m redirected to the Home Page.

    2. I restored my backup so that the Checkout Page is accessible again. But the same thing as described above under point 1, happens again after checkout.

    I have no idea if the following things have something to do with this problem, but I’ll include them here:
    – I have not set a shop page, basket page or account page (I have one single virtual product)
    – According to the system status report of Woocommerce, the following plugins are not tested with the active version of Woocommerce:
    * Mollie Payments for Woocommerce
    * WooCommerce Cart Abandonment Recovery
    * Checkout Field Editor for WooCommerce
    * WooCommerce EU VAT Compliance (Premium)
    * WooCommerce Sequential Order Numbers
    * Cartflows (deactivated)
    * EU VAT Compliance for WooCommerce (Free) (deactivated)

    My website is not live yet.

    How can I fix this problem? Help is very much appreciated!

    • This topic was modified 4 years, 9 months ago by may.
    • This topic was modified 4 years, 9 months ago by may.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Hey @mcp2019,

    Here’s what I hear you saying. You can add an item to the cart and check out successfully. But after checking out you’re not able to go back to the checkout page. Is that correct?

    When there are no products in the shopping cart, the customer should not be able to access the checkout page. Have you tried adding an item to the cart before trying to go back to check out again?

    If you can’t access checkout after adding an item to your cart, let me know.

    Cheers

    Thread Starter may

    (@mcp2019)

    Hi @3sonsdevelopment,

    Thanks for your message!

    Well, the thing is, I don’t use a shopping cart. At least, I don’t have a cart or shop page specifically assigned (in Woocommerce) to a page. I have an Order page with a button that says Order Now. When you click on this button you’ll be redirected to the Checkout Page. On this Checkout Page the digital/virtual product is already included in the Checkout Form.

    Then after clicking the button “Checkout” you’ll get to the payment page, and then Thank You Page. I don’t necessarily want to return to the Checkout Page after the Checkout, rather the Checkout Page is not accessible anymore after this one Checkout. So trying to access this page through WordPress Dashboard > Pages > Checkout Page, redirects me to the Home Page.

    However, when I go to the Order Page and click on the button Order Now again, I am able to access the Checkout Page, although the page is there, the form section is gone entirely. So it’s a Checkout Page without the Checkout Form!

    Hope this clears up the problem more.

    Hey @mcp2019,

    Thanks for the further explanation. What I mean here by “cart” isn’t necessarily a page, but where WooCommerce holds products in memory for a customer. You don’t have to send people to a cart page, but unless a product is in the system’s cart for that user, they won’t be able to view the checkout page. If there are no products ready to be purchased, the customer can’t go to checkout since there wouldn’t be anything for them to pay for.

    I suspect clicking order now adds a product to your “cart” and that makes check out possible.

    I’d be happy to help you straighten all of this out. Could I get you to describe the workflow you’re going for here? That would help me visualize what you’re going for and hopefully help you find where it’s not working.

    Thanks!

    Thread Starter may

    (@mcp2019)

    Hi @3sonsdevelopment,

    Aha, thank you, it makes a lot of sense. I just don’t know how to fix it.

    My workflow is Order Page > Checkout Page > Payment Gateway > Thank You Page.

    On my Order Page (which almost acts like a landing page) there are 2 Order Now buttons. Both Order Now buttons link to the Checkout Page like this websitename.com\checkout-page, but they’re not putting anything in the cart, either visually or at the backend. I think this might be part of the problem, considering your explanation.

    I haven’t thought of it this way, and was too fixated on accessing the checkout page by itself without realizing something apparently have to be in the cart first.
    That said, I just tested with accessing the Checkout Page by going to the Order Page and clicked Order Now (which should be the right way of course). This gets me to the Checkout Page, but without the Checkout Form (like before). So I guess it’s evident that by clicking Order Now doesn’t put anything in the cart.

    I’m curious about your thoughts on this.

    Thanks for your efforts so far.

    • This reply was modified 4 years, 9 months ago by may.

    Hey @mcp2019,

    Thanks for the explanation…that really does help out. Here’s one way you could potentially address this. You can add a variable to the end of a URL with WooCommerce that will automatically add an item to the cart.

    Here’s an example

    
    https://yourdomain.com/checkout/?add-to-cart=25
    

    That would an item with a product ID of 25 to the cart and redirect the user to the checkout page.

    You may be able to use that strategy with the buttons on your order page to add the item to the cart as part of the redirect. You can learn more about how this works in this post:

    https://businessbloomer.com/woocommerce-custom-add-cart-urls-ultimate-guide/

    See if that works for you and let me know if you have any questions.

    Cheers

    Thread Starter may

    (@mcp2019)

    Hi @3sonsdevelopment,

    Your solution works perfectly fine! I do have a few questions though.
    When you don’t immediately proceed to checkout, and click on Order Now again, whether by accident or not, it adds another product to the cart, so at checkout the quantity is 2. After checking out, refreshing the page and making a new order and checkout process, the quantity keeps starting with 1 and adds 1 more. Is there a way to adjust this?

    Secondly, when at the checkout page Woocommerce adds a button “Checkout” at the top of my checkout form with one product in the cart, and “View Basket” with more products in the cart. How to disable the extra buttons Checkout and View Basket? By the way, when clicking on View Basket, I’m redirected to the Home Page, and this also adds another product to the cart.

    The Order Now button redirects me to the Checkout Page Template (under Templates). I also have another Checkout Page (under Pages). I was assuming that I was redirected to the Checkout Page, but in reality I was redirected to the Checkout Template. Order Now doesn’t proceed to Checkout when the Template is deleted. Checkout should be able to work with either the Template or the Page, right? Either should work without the other, or am I missing something here?

    Lastly, the Thank You Page is a combination of my Checkout Page and the order information Woocommerce includes. Is it possible to replace this with a custom Thank You Page?

    Hope I’m not bombarding you with questions. Thanks.

    Thread Starter may

    (@mcp2019)

    Hi @3sonsdevelopment,

    The problems with the product quantity are solved. I changed the quantity to 0 at first. But found out about the setting “Sold Individually” in Products.

    On businessbloomer I also found a snippet to Redirect to Checkout on Add to Cart which was helpful.

    I’m also in the middle of creating a custom Thank You Page. As for the Checkout Template…I was using Elementor Templates and thought Woocommerce used them as a default for the Checkout Page as I created a Checkout Page Template as well.
    But of course that wasn’t the case.

    Thank You for your help!

    Cheers

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Checkout Page not accessible after One Checkout’ is closed to new replies.