Support » Plugin: WooCommerce Multi-Step Checkout » Plugin customer details issue at checkout

  • Resolved magedmoh94

    (@magedmoh94)


    Hi, I’m using a custom plugin for ticketing: https://wordpress.org/plugins/tickera-event-ticketing-system

    The issue i faced in that plugin which i use with woo commerce that in this plugin we don’t have shipping details so i canceled it in woocommerce and in your plugin too but when i contacted tickera support i got that issue that need to be fixed to they replied like that below:

    I’ve found the issue with the multi-step plugin. They have put woocommerce_checkout_after_customer_details hook only on the shipping step 🙂 That means that you can tickets related fields only on the shipping step. Since you don’t use shipping, we can put that hook on the billing page.

    //THIS IS THEIR FUNCTION and you can see their hook located in the shipping tab only:

    if ( !function_exists('wmsc_step_content_shipping') ) {
    function wmsc_step_content_shipping() {
    do_action( 'woocommerce_checkout_shipping' );
    do_action( 'woocommerce_checkout_after_customer_details' );
    }
    }


    The quickest possible fix would be to put this function in your functions.php (of your theme for instance):

    function wmsc_step_content_billing() {
    do_action( 'woocommerce_checkout_before_customer_details' );
    do_action( 'woocommerce_checkout_billing' );
    do_action( 'woocommerce_checkout_after_customer_details' );
        }

    I think all we need to do is to add this to the wmsc_step_content_billing

    do_action( 'woocommerce_checkout_after_customer_details' );

    Also, i want to thank you for the great support and for this great plugin specially 🙂

    • This topic was modified 2 months, 1 week ago by  magedmoh94.
    • This topic was modified 2 months, 1 week ago by  magedmoh94.
    • This topic was modified 2 months, 1 week ago by  magedmoh94.
Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Diana Burduja

    (@diana_burduja)

    Hello,

    you’re right, the woocommerce_checkout_after_customer_details action needs to be called in the wmsc_step_content_billing function in case the Shipping step is missing. I’ll add this to the plugin’s next version.

    Meanwhile you can add the suggested function to your functions.php file. This will solve your issue.

    Hi,

    Thank you indeed for you support, we ‘re waiting 🙂

    Plugin Author Diana Burduja

    (@diana_burduja)

    In the plugin’s 2.3 version the woocommerce_checkout_after_customer_details action is called also when the Shipping step is not shown on the checkout page.

    Note that if you added the suggested wmsc_step_content_billing function to your theme’s functions.php file, then the woocommerce_checkout_after_customer_details will be called twice. After updating to the 2.3 version you should remove the function from the theme’s functions.php file.

    magedmoh94

    (@magedmoh94)

    Yes, Thats true issue solved and tested the updated version. thank you 🙂

    Plugin Author Diana Burduja

    (@diana_burduja)

    Thank you for reporting the issue 🙂

    magedmoh94

    (@magedmoh94)

    Thank you for your fast support 🙂

    I have another feature request if we be able to have an option to combine the billing and the order & payment together as that one provided for the billing and shipping as in this scenario we will be used for the step of the login as separate and the billing and order&payment will be the 2nd step only not to be 3 steps as its shown in my website here: tktshub.com/shop

    Plugin Author Diana Burduja

    (@diana_burduja)

    You can combine all the three steps by adding the following PHP snippet to your website (for example in your child theme’s functions.php file):

    add_filter('wpmc_modify_steps', 'wmsc_billing_order_payment_together');
    if ( !function_exists('wmsc_billing_order_payment_together') ) {
        function wmsc_billing_order_payment_together($steps) {
            $steps = array(
                'billing_order_payment' => array(
                    'title'         => __('Billing & Order & Payment' ),
                    'position'      => 10,
                    'class'         => 'wpmc-step-billing wpmc-step-review wpmc-step-payment',
                    'sections'      => array('billing', 'review', 'payment'),
                ),
            );
            return $steps;
        }
    }

    If you want to better understand the code see the Customizations section from the documentation.

    Hi,

    Firstly, thank you for this snippet for helping me in the customization, secondly I have tested this snippet but its not functioning properly, as for the design for example the step it self isn’t centered in the page its floating left, and there is a next button under the plwcr order button which doesn’t have any mean to be there and doesn’t have a function too which is not working, and by combining the 3 steps together i faced the issue that the order details isn’t collected which is the same issue i opened the issue here for.

    I think we need to support this feature separately in the settings panel to make it work properly.

    Thank you again

    Plugin Author Diana Burduja

    (@diana_burduja)

    This is not a feature, but a customization.

    The plugin was thought with the idea of several steps. At least three of them. Putting them all under one step is not officially supported within the plugin. If you need to make the customization work on your website, then you’ll need to ask a developer to adjust the things for you.

    As about the order details not being collected, did you update the plugin to the 2.3 version or are you using the wmsc_step_content_billing from the Tickera support?

    Hi,

    Thank you for your fast reply, yes i updated to v2.3 and its working fine and collecting the order details with tickera i just mean that after merging the steps together in one step the problem is caused again and it didn’t collect the order details if i used the snippet you provided, if i disabled it it works fine ane collects

Viewing 10 replies - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.