Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author SkyVerge

    (@skyverge)

    Hey shawaj!

    Yes, because get_order_number() is a method in WooCommerce the will work with or without Sequential Order Numbers :). Sequential Order Numbers only filters the value that function returns to ensure it’s the sequential order number

    Hope that helps ??

    Cheers,

    Tamara

    Thread Starter shawaj

    (@shawaj)

    Aha, I see. So when you call that function, your plugin filters it and changes it from the post id? But the post id itself remains the same?

    That is good news – means it should be really easy to pass the “correct” order number through to BitPay.

    On a side note – it is weird how WooCommerce itself uses both in different places. For example in the standard order cancelled email it uses order id and order number in the same email – which seems really odd.

    Thanks for your help

    Plugin Author SkyVerge

    (@skyverge)

    Happy to help ??

    That is very strange indeed. I’ve sent in a patch to fix up the cancel order email. You can follow the progress of the pull request here: https://github.com/woothemes/woocommerce/pull/7697

    Good luck with the plugin!

    Cheers,

    Tamara

    Thread Starter shawaj

    (@shawaj)

    Thank you for all your help.

    Plugin changes are already merged into the master branch of the BitPay plugin which is great ??

    Plugin Author SkyVerge

    (@skyverge)

    Awesome! Happy to hear it worked out ?? -Tamara

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Will get_order_number work without sequential order numbers?’ is closed to new replies.