Support » Plugin: Order Splitter for WooCommerce » Add a delay in auto-split

  • Resolved coldrealms65

    (@coldrealms65)


    There are a number of customer-facing confusions with the order splitting process that might be solved by simply adding a delay to the auto-splitting process.

    Thank you pages, order confirmation emails, and anything made with any kind of customization tools currently are a mess and are very confusing for customers of split-orders (always have to cater to the lowest denominator here). If there was a way to add a customizable delay in the auto-split process I believe we could resolve these issues. Essentially, the user experience would look like a normal non-split order to the customer at first then a short time later (10-60 seconds) their order gets split, they can get a custom email saying their order has been split.

    Instead what happens now is thank you pages show a partial order, emails shoot out backwards (i always get the new split order email before the customer get the parent order and neither of them indicates that the order was split or why).

    Either a feature add to the plugin or even just a php code I could add to functions.php to play around with a delay would be amazing!!!!

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Fahad Mahmood

    (@fahadmahmood)

    @coldrealms65 please have a look on settings page and try to manage it with a cron instead. By default it is getting triggered on thankyou page but you can change it to any other event.

    Advanced Settings > Cron Jobs / Action Hooks

    Thread Starter coldrealms65

    (@coldrealms65)

    I’ll test that out today and get back to you. Certain advanced styling plugins do odd things with hooks that a global delay might be more universally compatible with.

    Either way, thanks for getting back to me!

    Thread Starter coldrealms65

    (@coldrealms65)

    Just taking a quick look if I set a different hook will it no longer try to fire on thank-you? As it is now it looks like it is just adding extra triggers.
    That is one of the issues is the thank you page only shows the parent order with the split order products removed and we need the thank you page to load before the split happens..

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    Correct, it will change the trigger. So thankyou page will appear as it was default.

    Thread Starter coldrealms65

    (@coldrealms65)

    Unfortunately it does not.

    Here is what happens: Once an order is placed the user gets taken directly to the thank-you page which shows the now stripped parent order. So it looks to the user as though their order is missing items. They then receive two emails, one with all their products and then another with their stripped-out product (making it appear as though they got double charged).

    What I am looking for is a way to NOT split the order until several seconds AFTER the order is in the “processing” state so that the auto-firing thank-you page and emails show the whole order BEFORE it is split.

    @coldrealms65 please turn OFF emails and hide splitted orders on checkout page for now.

    Thread Starter coldrealms65

    (@coldrealms65)

    I have set as you requested. there is no change. The thankyou page still only shows the parent order minus the split-off item and there are two emails sent to the customer, one for each order.

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    @coldrealms65 humbly requested, please turn off the Auto Split option. It will not split immediately. And I am closing this ticket because you came up with a new idea/suggestion. I will surely work on this feature in upcoming versions but any specific date cannot be given for the completion of this feature. I hope you will manage to split manually once or twice per day, it will resolve your issue.

    We love opensource community and we are putting our best in it. Every new feature requires not only time but compatibility checklist ensured before release with other modules.

    Thread Starter coldrealms65

    (@coldrealms65)

    The issue with turning off auto-split is that mucks up the api’s for our partners. The reason we auto-split is some of our products are produced on-demand. That system pulls orders periodically. If an order were to come in at night and sit waiting for us to split the next day that would create 2 production orders with our partner. There cannot be more than 2 minutes of delay in splitting or we cannot split at all without MAJOR issues.

    So, I understand that you are looking into a new feature, and that is great, however, I was hoping for a defer action php bit of code I could add to my site as a band-aid.

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