• Resolved tbrmilesson

    (@tbrmilesson)


    Hi!

    It seems that you’re not running the action woocommerce_checkout_order_created in WC_Svea_Checkout_Order::create_wc_order($data). This action should run after woocommerce_checkout_update_order_meta.

    This is important since WooCommerce is hooking in their function wc_reserve_stock_for_order() on that action.

    Regards,
    Rasmus Milesson

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

    (@thegeneration)

    Hi Rasmus!

    Unfortunately we can not run that hook. This is because Svea checkout creates the order already when you visit the checkout. This is something WooCommerce does not do by default.

    Best regards

    Thread Starter tbrmilesson

    (@tbrmilesson)

    Is it possible for you to add your own hook we can hook into then?

    Plugin Author The Generation

    (@thegeneration)

    Hi again,

    We have been working on a 2.0-version of the module for a while now and have just entered the beta stage. The new version integrates even more closely with WooCommerce, requiring only a single checkout page and processing the orders using WooCommerce standard functionality.

    I think that the new version would solve this issue for you.

    Would you be interested in participating in the beta program? If you do, please send an e-mail to:
    [email protected]

    And we’ll send you further instructions.

    Hi!

    Is this next version also going to solve to be able to edit products and orders from woocommerce?

    Plugin Author The Generation

    (@thegeneration)

    Hi!
    You can edit order lines today, but whether it is reflected towards Svea depends on the order status set in Svea. For example, a refund will only work if the order is completed and sent. Otherwise you should edit the order via the order status “Awaiting payment”.
    This functionality will work in the same way in the upcoming version.

    Best regards,

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Missing action woocommerce_checkout_order_created’ is closed to new replies.