Okay
  Public Ticket #2479802
Bypass WooCommerce cart to Carflows checkout
Closed

Comments

  •  8
    Debbie started the conversation

    Hi,

    I have a service where a client books an appointment and then pays via WooCommerce. We have also set up Cartflows with a global checkout. This means that every product that does not have a specific Cartflows attached will revert to the global checkout page. 

    Problem is that the customer is first directed to the default WooCommerce checkout and after that to the Cartflows checkout. Is there a was to bypass the WC checkout and go straight to CF?

    Even with global checkout disabled it seems that a client has to enter their data twice? First in the Amelia window and then on the checkout page?

  • [deleted] replied

    Hello Debbie,

    It isn't possible in Amelia and WooCommerce integration to skip the WooCommerce checkout page. It is possible to skip the Cart page but not the Checkout one, as it needs to be used for the payment process. Amelia integration with WooCommerce works for Woo only, we can't say if it will work with any additional WooCommerce plugin/add-on, unfortunately.

    Information that are provided in the Amelia's booking form are sent to WooCommerce, and they don't need to be filled in again on the Checkout page, customers need to add there only information that are not requested by Amelia, but are requested by WooCommerce. 

    If you have any further questions or concerns feel free to ask,


  •  8
    Debbie replied

    Hi Marija,

    Maybe i wrote it wrong, but i mean to skip the Cart page and go straight to Checkout. How can i make that possible?

  • [deleted] replied

    Hello Debbie, 

    Sorry for the misunderstanding. 

    Yes, you can skip the Woo Cart page, from version 2.6 of Amelia, but you need to change this in your database.

    When you access your database you need to find and open the wp-options table (it can have another prefix than wp, depending on your database, but it will be something like yourprefix_options), and find the option amelia_settings in it. Then please edit this option and when you find property 'wc:' there you need to set checkout for the 'page' property instead of cart, like here: 

     "wc": {
            "onSiteIfFree": false,
            "page": "checkout"
    }
    

    If you have any further questions or concerns feel free to ask. 


  • Alexandra Bakó replied

    Hello Marija,

    I tried to do the same, followed your instructions, but I can't find the amelia_settings table in wp_options in my php.

    Have there been a change maybe?

    Thank you, Alexandra

  • [deleted] replied

    Hello Alexandra, 

    We haven't changed this setting. 

    This is done in your database (not files/php code), and the table is wp_options not amelia_settings. So, you need to first find and open the wp_options table, this is a WordPress table where Amelia settings are saved, and it can have another prefix rather than wp_ depending on your database.  

    In this table, you need to search for the amelia_settings option and edit it. 

    Then find the property 'wc:'  and change cart to checkout for the 'page' property, like here: 

     "wc": {
            "onSiteIfFree": false,
            "page": "checkout"
    }
    
  • Alexandra Bakó replied

    Dear Marija,

    Thank you, I've found it and it works. :)

    All the best,

    Alexandra

  • [deleted] replied

    You are welcome, Alexandra. 

    Glad to see that you managed to find and change the setting in the database, thank you for letting me knowsmile.png

    If you have any other questions or concerns feel free to open a new ticket and we will gladly help. 

  •  2
    Jacob Eggebeen replied

    Will I need to manually make this change everytime I update Amelia?

    And why can this not be an option under Payments > WooCommerce ? Can you please suggest this?? Most people do not want the cart page. 

  • [deleted] replied

    Hello Jacob,

    No, you won't need to make the change after each update of Amelia, as it is saved in the database and that isn't overridden with the update.

    You can suggest that as a feature request here, or if there is such feature request there vote for it.

    If you have any other questions or concerns feel free to open a new ticket and we will gladly help out.


  •  2
    Jacob Eggebeen replied

    Is there an SQL command you can provide so I can safely change this?

  • [deleted] replied

    Hello Jacob, 

    Apologies for replying a bit later, we don't work on weekends. 

    We don't have such SQL queries on hand, unfortunately, but it could probably be achieved with some string replacement. You can try something like this out : 

    UPDATE wp_options SET option_value = REPLACE(option_value, '"page":"cart"', '"page":"checkout"') WHERE option_name = 'amelia_settings'


    If you have any other questions or concerns feel free to open a new ticket and we will gladly help out.