Support » Plugin: CartBounty - Save and recover abandoned carts for WooCommerce » Does not work with ARG Multi-step Checkout plugin

  • Resolved dgurram

    (@dgurram)


    Hi,

    I use the ARG Multi-step Checkout plugin to present my checkout form in multiple steps for a nice user experience.

    This means that the woocommerce_after_checkout_form does not run until the final step of the checkout. This hook is where CartBounty registers the add_additional_scripts_on_checkout action which in turn enqueues the JS required on the front-end. So without the CartBounty JS running on the page the AJAX call that collects the entered customer information is never made and I don’t see any abandoned carts being stored.

    I was able to get this to work by changing this line in includes/class-cartbounty.php:

    $this->loader->add_action( 'woocommerce_after_checkout_form', $plugin_public, 'add_additional_scripts_on_checkout' ); //Adds additional functionality only to Checkout page

    to

    $this->loader->add_action( 'woocommerce_checkout_billing', $plugin_public, 'add_additional_scripts_on_checkout' ); //Adds additional functionality only to Checkout page

    However, this is quite intrusive, and ideally I’d like to not change plugin code directly. So I’m wondering if there’s a better way for me to do this from the outside?

    It would be even better if the next release of the plugin could provide a fix so no manual intervention is required.

    Thanks.

    • This topic was modified 6 months, 1 week ago by dgurram.
    • This topic was modified 6 months, 1 week ago by dgurram. Reason: Clarified final sentence
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Streamline

    (@streamlinestar)

    Hey @dgurram

    Thanks for your detailed suggestion and description of the issue.
    We will take a look into this and see if it is safe for the rest to be implemented in the core or this should be altered via functions.php

    Thanks

    Plugin Author Streamline

    (@streamlinestar)

    Hi @dgurram
    Since we are unable to run actual tests on the ARG plugin (no free version available) it is a bit hard to test the solutions.

    We could alter our plugin and change the script loading hook from “woocommerce_after_checkout_form” to “woocommerce_before_checkout_form”.

    Could you please check if this would work for your setup?

    Kind thanks

    Plugin Author Streamline

    (@streamlinestar)

    Hey @dgurram

    We have just released an update that should take care of your issue with ARG Multi-step Checkout plugin. Please make sure to update to the latest version.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Does not work with ARG Multi-step Checkout plugin’ is closed to new replies.