• Resolved GrooveBakery

    (@nekfurn)


    Hello, I’ve use your plugin and it works very well. But when I submit a product in woocommerce and changed status to my new status I mean Approved or declined the vendor in WC Lovers see No data in the Table. What can I do?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Felix W.

    (@welly2103)

    Hi @nekfurn,

    I am not quite sure how to help. What is WC Lovers? If it’s simply a WooCommerce setup, then the product should appear with a Custom Status, as long as that status has the “Show posts in admin “All” list” property.

    Does this get you anywhere?

    Greetings Felix

    Thread Starter GrooveBakery

    (@nekfurn)

    Hi Felix, WC Lovers is WCFM here’s the link: https://wclovers.com/ref/238/
    But what I understand is your plugin work’s on the admin side.But I’m using WCFM for my multivendor’s. So when they submit products from the frontend, I want to put Approved status or Declined status. But right now, when I’m using my new status, inside the client product, it appears “No data in the Table” and the product disappear! I want a know if we can make the status available for the vendor’s? Thank’s!

    • This reply was modified 3 years, 2 months ago by GrooveBakery.
    • This reply was modified 3 years, 2 months ago by GrooveBakery.
    Plugin Author Felix W.

    (@welly2103)

    Hi @nekfurn,

    unfortunately I can not judge how this premium platform manages statuses. This plugin is typically to be used only in WordPress backend. If a status is fetched in the frontend for example via get_post_statuses(), then custom statuses should also be recognized by the function.

    This plugin only extends the core functions. In order for posttypes to be displayed with a custom status, “Public” must be set in the status, otherwise entries with the status will no longer be output in the frontend.

    Greetings Felix

    Thread Starter GrooveBakery

    (@nekfurn)

    I’ve found this code but it doesn’t work:

    add_filter( ‘wcfmu_products_menus’, function( $wcfmu_products_menus ) {
    $wcfmu_products_menus[‘Extended Post Status’] = __( ‘Approved’, ‘wc-frontend-manager’);
    return $wcfmu_products_menus;
    }, 50);

    It’s me who change the Extend Post Status inside bracket. With this code I’m able to see Approved in the menu of WCFM but not the file.

    Plugin Author Felix W.

    (@welly2103)

    Hi @nekfurn,

    I’m afraid I still don’t know exactly what you’re trying to accomplish. Can you send me a sample setup so I can recreate the problem?

    Greetings Felix

    Thread Starter GrooveBakery

    (@nekfurn)

    Ok, I saw on a forum this code:

    register_post_status( ‘custom-hide-product’, array(
    ‘label’ => _x( ‘Approved’, ‘post’ ),
    ‘public’ => false,
    ‘exclude_from_search’ => true,
    ‘show_in_admin_all_list’ => true,
    ‘show_in_admin_status_list’ => true,
    ‘label_count’ => _n_noop( ‘Approved <span class=”count”>(%s)</span>’, ‘Approved <span class=”count”>(%s)</span>’ ),
    ) );
    add_action( ‘admin_footer’, ‘display_hide_status_option’ );
    
    function display_hide_status_option() {
    global $post;
    $complete = ”;
    $label = ”;
    if ( $post->post_type === ‘product’ ) {
    if ( $post->post_status === ‘custom-hide-product’ ) {
    $selected = ‘selected’;
    }
    echo ‘<script>
    jQuery(document).ready(function($){
    $(“select#post_status”).append(“<option value=\”custom-hide-product\” ‘ . $complete . ‘>Approved </option>”);
    $(“.misc-pub-section label”).append(“‘ . $label . ‘”);
    });
    </script>
    ‘;
    }
    }

    And WCFM answer to this code to be able to see it in vendor dashboard is this code:

    add_filter( ‘wcfmu_products_menus’, function( $wcfmu_products_menus ) {
    $wcfmu_products_menus[‘custom-hide-product’] = __( ‘Approved’, ‘wc-frontend-manager’);
    return $wcfmu_products_menus;
    }, 50);

    What is in your code ( in the code of WCFM ) the equivalent ( the register post status )?

    I put the link to the forum: https://www.ads-software.com/support/topic/show-custom-product-status/

    I’m trying to making work the code of WCFM with your plugin.

    Plugin Author Felix W.

    (@welly2103)

    Hi @nekfurn,

    use your custom status slug instead of “custom-hide-product” that should do the trick.

    Greetings Felix

    Plugin Author Felix W.

    (@welly2103)

    Hi @nekfurn,

    since I have heard nothing more from you I assume your problem is solved and I close this thread.

    Greetings Felix

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Post Status not in WC Lovers’ is closed to new replies.