Okay
  Public Ticket #2797214
Recommended booking system with CartFlow (Amelia does not work as expected)
Closed

Comments

  • Saul Fernandez started the conversation

    I am trying to use Amelia with CartFlow and as far as I am experiencing, when clicking on BOOKING from the Aemlia Form, it breaks the flow created in CartFlow.

    Can I custom the website where BOOKING goes. I know it is possible globally, but I have several campings and I need a different checkout page for each of them.

    Thanks,

  • [deleted] replied

    Hi Saul,

    thank you for reaching out to ussmile.png

    Unfortunately as we currently don't have a direct integration with the CartFlow, you can check out and try this script:

    src/Infrastructure/WP/Integrations/WooCommerce/WooCommerceService.php
    Find this method:
    /**
         * 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();
            }
        }

    You can set your URL where you want to be redirected.