• Resolved tictok

    (@tictok)


    Hi –

    I’m using your excellent order splitting plug. It works really well, thanks!

    One aspect I need to solve through, is that to keep our fulfilment/shipping company happy, I’m using a sequential order number plugin in WooCommerce (WooCommerce Sequential Order Numbers by Skyverge).

    How can I get your order splitter to use these sequential order numbers on Customer emails, Order thank you page and in order notes?

    Is there a filter or action hook that can be used?

    I need to replace occurrences of $order->id with $order->get_order_number()

    I’d be really grateful for any help.

    Kind regards

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

    (@fahadmahmood)

    @tictok please follow these:

    YOUR-THEME-DIRECTORY/woocommerce/checkout/thankyou.php
    replace all $order->id with $order->get_order_number()

    regarding the compatibility, i will try to add it soon in the plugin.

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    @tictok please confirm if you are using basic version or advanced version? If you are using advanced version so i can ask you to update and try, else i have to release a new version for you to test the changes.

    For emails, you need to update your templates. Very limited items are being managed from our plugin, most of the things are working from WooCommerce area.

    YOUR-THEME-DIRECTORY/woocommerce/emails/customer-completed-order.php
    YOUR-THEME-DIRECTORY/woocommerce/emails/customer-processing-order.php
    YOUR-THEME-DIRECTORY/woocommerce/emails/customer-on-hold-order.php

    Thread Starter tictok

    (@tictok)

    Hi Fahad – thanks you for your reply!

    So, I’m currently using your free version, but if this works will happily buy the premium version. It’s too much to risk (cost-wise) to buy the premium version without been sure it will work as needed first! I hope you understand. I do appreciate all your work on this plugin though, so if it works out I will definitely purchase it.

    I’m not so sure it’s my templates that need updating? –?they already display the current sequential order number for a standard non-split order (both on thank-you page and in emails). It’s the additional details about the split orders that your plugin adds to the thank-you/order-received page and emails that displays the standard order id instead of sequential number.

    Many thanks
    Stef

    Thread Starter tictok

    (@tictok)

    Hi Fahad,

    Spotted the update to the plugin today – many thanks for looking at this!

    Unfortunately it doesn’t quite work for me on the order received / thankyou page. The child orders still show order ID instead of the sequential order number.

    I had a quick look and found a quick fix for me.

    on line 5187 of the functions.php file in your plugin you have this line:
    $child_id = $post_data->ID;

    just after that I added:

    if ( class_exists( 'WC_Seq_Order_Number_Pro' ) || class_exists( 'WC_Seq_Order_Number' ) ) {	
      $order = wc_get_order( $child_id );
      $child_id = $order->get_order_number();
    }

    that then shows the sequential order number on the order received/thank you page, however I haven’t checked yet how the child order numbers display within customer emails.

    I also extended the conditional check to include the free version of WooCommerce Sequential Order Number too.

    Also, could you please confirm that if in the premium version of your plugin, the ‘Remove Items from Parent Order on Split?’ option works for ‘auto split’ orders?

    Many thanks
    Stef

    • This reply was modified 4 years, 1 month ago by tictok.
    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    Dear Stef,

    On line no. 5152, $child_order object is already available so I am going to use this $child_id = $child_order->get_order_number();

    Once you will confirm this is working, I will push it to repository.

    Thanks,
    Fahad

    Thread Starter tictok

    (@tictok)

    Hi Fahad

    Apologies for the delay. I had a very rare few days off!

    I confirm that works great – many thanks for looking at this.

    Kind regards
    Stef

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Order splitter with sequential order numbers’ is closed to new replies.