• Resolved julianrg2

    (@julianrg2)


    Hello!

    I am having this problem: I have a method in my code that what it does is to create with “new WC_ORDER($orderId)” an order to extract its data and work with them but it happens that when I call it and I send it an order that evidently exists the following error appears:

    Fatal error: Uncaught Exception: Pedido no válido. in...

    And it′s says that is on wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-data-store-cpt.php on line 104

    I don′t know how can I solve it, hope you can help me!

Viewing 1 replies (of 1 total)
  • Saif

    (@babylon1999)

    Hello @julianrg2,

    I am having this problem: I have a method in my code that what it does is to create with “new WC_ORDER($orderId)” an order to extract its data and work with them but it happens that when I call it and I send it an order that evidently exists the following error appears:

    If I understand this correctly, the error is showing because of the custom code snippet you added. If so, I’m afraid this is not within our scope of support.

    I recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce.

    You can also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

    Cheers!

Viewing 1 replies (of 1 total)
  • The topic ‘Invalid order’ is closed to new replies.