We're Moving to a New Support Platform – Starting June 1st!

We’re excited to let you know that starting June 1st, we’ll be transitioning to a new support system that will be available directly on our product websites – Amelia, wpDataTables, and Report Builder. In fact, the new support platform is already live for Amelia and wpDataTables, and we encourage you to reach out to us there.

You'll always be able to reach us through a widget in the bottom right corner of each website, where you can ask questions, report issues, or simply get assistance.

While we still do not offer live support, a new advanced, AI-powered assistant, trained on our documentation, use cases, and real conversations with our team, is there to help with basic to intermediate questions in no time.

We're doing our best to make this transition smooth and hassle-free. After June 1st, this current support website will redirect you to the new "Contact Us" pages on our product sites.

Thanks for your continued support and trust – we’re excited to bring you an even better support experience!

Okay
  Public Ticket #2364834
Skip Cart --> Checkout
Closed

Comments

  • Liam started the conversation

    Hi,

    With Amelia 2.4 I recieved these info to skip the cart after an appointment.


    Now I will upgrade to 2.6 but there are some changes and before I change something. Can I have the right info how to change it again?

    Info from Amelia 2.4:

    modify the WooCommerceService.php file in the location /ameliabooking/src/Infrastructure/WP/Integrations/WooCommerce/

    and find the function GetCartUrl() 

    and change 'cart' to 'checkout' in it so it will look like this: 

    /**
         * Get cart page
         *
         * @return string
         */
        public static function getCartUrl()
        {
            return wc_get_checkout_url();
        }
    

    Now that part is:

     /**
         * Get cart page
         *
         * @return string
         */
        public static function getPageUrl()
        {
            switch (self::$settingsService->getCategorySettings('payments')['wc']['page']) {
                case 'checkout':
                    return wc_get_checkout_url();
                    break;
                case 'cart':
                    return wc_get_cart_url();
                    break;
                default:
                    return wc_get_cart_url();
            }
        }

    Is it still in the file you need to adjust, and what?

    Thanks for the info.

    Kind regards,

    Liam

  • [deleted] replied

    Hello Liam, 

    In the latest release of Amelia the developers added this as an option in the code (to proceed to checkout or the cart page, as you wish). So, now you just need to change this in you database and it will be saved there so you won't have to modify the code each time after the update. 

    When you go to your database you need to find and open the wp-options table, and find option amelia_settings in it. Then please edit this option and when you find property 'wc:' there you need to set cart for the 'page' property instead of checkout, like here: 

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

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