Title: Getting Error When Adding Items to PO
Last modified: January 14, 2023

---

# Getting Error When Adding Items to PO

 *  Resolved [dfeagin](https://wordpress.org/support/users/dfeagin/)
 * (@dfeagin)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/getting-error-when-adding-items-to-po/)
 * Here is the error that we are getting when attempting to add products to the 
   PO:
 * **Warning**: Invalid argument supplied for foreach() in **/home/customer/www/
   usedhomeschoolbooks.com/public_html/wp-content/plugins/supplier-and-purchase-
   order-management-for-woocommerce/views/supplierprofile.php** on line **147**
 * and then when I click on the link to view the PO there are no items associated
   with the PO
    -  This topic was modified 3 years, 4 months ago by [dfeagin](https://wordpress.org/support/users/dfeagin/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fgetting-error-when-adding-items-to-po%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [sunnysonic](https://wordpress.org/support/users/sunnysonic/)
 * (@sunnysonic)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/getting-error-when-adding-items-to-po/#post-16440961)
 * when does this exactly happen? have the products already been associated with
   the supplier? When you click on the button “New Purchase Order”, does the new
   page open with all the supplier associated products at which you can choose quantities
   and prices? Does the error come when you then click “create purchase order”?
 *  Plugin Author [sunnysonic](https://wordpress.org/support/users/sunnysonic/)
 * (@sunnysonic)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/getting-error-when-adding-items-to-po/#post-16506456)
 * haven’t heard back. closing this topic, hoping it was resolved with the updates.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Getting Error When Adding Items to PO’ is closed to new replies.

 * ![](https://ps.w.org/supplier-and-purchase-order-management-for-woocommerce/assets/
   icon-256x256.png?rev=2765925)
 * [Supplier and Purchase Order Management for WooCommerce](https://wordpress.org/plugins/supplier-and-purchase-order-management-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/supplier-and-purchase-order-management-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/supplier-and-purchase-order-management-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/supplier-and-purchase-order-management-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/supplier-and-purchase-order-management-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/supplier-and-purchase-order-management-for-woocommerce/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [sunnysonic](https://wordpress.org/support/users/sunnysonic/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/getting-error-when-adding-items-to-po/#post-16506456)
 * Status: resolved