• Resolved Sudhanshu Dubey

    (@sudhanshudubey)


    wp-content/themes/storefront-child/woocommerce/pdf/Custom

    I have a file on this path where I am trying to display each products inbound stock but it is not working. I am trying to fetch the same using this:

    $inbound_stock = \Atum\Inc\Helpers::get_product_inbound_stock( $product, true );

    It is throwing me this error:
    Fatal error: Call to undefined method WC_Product_Simple::get_inbound_stock()
    How can I fix it?

Viewing 1 replies (of 1 total)
  • Plugin Author Jose Andres Piera

    (@japiera)

    Hi @sudhanshudubey,

    Thanks for your post.

    Please note that we don’t provide support for custom coding.

    However, as your question is easy to answer, I can make an exception. You need to load a product with the ATUM properties included. Just add the next code before yours:

    $product = \Atum\Inc\Helpers::get_atum_product( $product );

    That should work.

    Best Regards,
    José Andrés

Viewing 1 replies (of 1 total)
  • The topic ‘Display inbound stock’ is closed to new replies.