Title: greenlightsolutions's Replies | WordPress.org

---

# greenlightsolutions

  [  ](https://wordpress.org/support/users/greenlightsolutions/)

 *   [Profile](https://wordpress.org/support/users/greenlightsolutions/)
 *   [Topics Started](https://wordpress.org/support/users/greenlightsolutions/topics/)
 *   [Replies Created](https://wordpress.org/support/users/greenlightsolutions/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/greenlightsolutions/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/greenlightsolutions/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/greenlightsolutions/engagements/)
 *   [Favorites](https://wordpress.org/support/users/greenlightsolutions/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Ultimate Member – User Profile, Registration, Login, Member Directory, Content Restriction & Membership Plugin] Double-form-submission bug in UM (manifesting with UM-Story extension)](https://wordpress.org/support/topic/double-form-submission-bug-in-um-manifesting-with-um-story-extension/)
 *  Thread Starter [greenlightsolutions](https://wordpress.org/support/users/greenlightsolutions/)
 * (@greenlightsolutions)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/double-form-submission-bug-in-um-manifesting-with-um-story-extension/#post-11965655)
 * I would, except that this is not an UM Story bug, but an Ultimate Member bug.
   I happened to encounter it when using the UM Story extension, but I imagine this
   problem might occur with any number of other extensions. And of all factors which
   came together to cause the problem, the above Ultimate Member code-fragment is
   one that is extremely easy to correct (as well as one that is obviously not correct
   in its current form). For this reason, I think this _is_ the proper forum to 
   raise this issue.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Packages Configuration for WooCommerce] Group by Product Vendors if Vendor != Owner?](https://wordpress.org/support/topic/group-by-product-vendors-if-vendor-owner/)
 *  Thread Starter [greenlightsolutions](https://wordpress.org/support/users/greenlightsolutions/)
 * (@greenlightsolutions)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/group-by-product-vendors-if-vendor-owner/#post-9022972)
 * I have now added support for the ‘WooCommerce Product Vendors’ plugin by modifying
   the file ‘Academe_Multiple_Packages.php’, replacing on 3 locations the lines
 *     ```
       if (isset( $item['data']->post->post_author ) ) {
         $post_author = $item['data']->post->post_author;
       } else {
         $post_author = '-1';
       }
       ```
   
 * by
 *     ```
       if (method_exists("WC_Product_Vendors_Utils", "get_vendor_id_from_product") && ($vendor_id = WC_Product_Vendors_Utils::get_vendor_id_from_product($product_id))) {
          $post_author = "vendor:$vendor_id";
       } else if (isset( $item['data']->post->post_author ) ) {
           $post_author = $item['data']->post->post_author;
       } else {
           $post_author = '-1';
       }
       ```
   
 * This might be worth including in new updates for the ‘Package Configuration for
   WooCommerce’ plugin.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Packages Configuration for WooCommerce] Group by Product Vendors if Vendor != Owner?](https://wordpress.org/support/topic/group-by-product-vendors-if-vendor-owner/)
 *  Thread Starter [greenlightsolutions](https://wordpress.org/support/users/greenlightsolutions/)
 * (@greenlightsolutions)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/group-by-product-vendors-if-vendor-owner/#post-9022967)
 * I should have clarified: the Product Vendors plugin I use is the plugin ‘WooCommerce
   Product Vendors’ by WooCommerce, from [https://woocommerce.com/products/product-vendors/](https://woocommerce.com/products/product-vendors/)

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