Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Ultimate › Disabling shop vendor not removing products from shop
Tagged: disable shop
- This topic has 4 replies, 2 voices, and was last updated 5 years, 1 month ago by
WCFM Forum.
- AuthorPosts
- October 24, 2019 at 9:23 pm #88873
Jamie O’Reilly
ParticipantHi
We have disabled a shop vendor but we found that their products were still visible and even a purchase was made. We’ve now deleted the product as well in order to prevent any more such problems. Please could you advise?
Jamie
- November 5, 2019 at 6:30 pm #90833
WCFM Forum
MemberHI,
Well, when a vendor’s store disabled it’s product become “archived”.
As Admin you may see those, but as other user it’s not visible.
Thank You
- February 3, 2020 at 4:23 pm #105180
Jamie O’Reilly
ParticipantWe have deleted the products but her membership is still showing as using 47MB of memory. Is this accurate?
Thank you - February 3, 2020 at 7:36 pm #105204
Jamie O’Reilly
ParticipantAlso is there a way to delete a shop rather than disable it?
- February 6, 2020 at 10:43 am #105670
WCFM Forum
MemberHi,
Well, deleting vendor store means deleting that vendor user, you may off course do so.
It’s also possible to restrict accessing vendor’s store page by adding such code –
add_action('template_redirect', function( $template ) { if( function_exists( 'wcfmmp_is_store_page' ) && wcfmmp_is_store_page() ) { wp_safe_redirect( get_permalink( wc_get_page_id( 'shop' ) ) ); } return $template; }, 100 );
This will always redirect to WooCommerce default shop page.
Thank You
- AuthorPosts
- The topic ‘Disabling shop vendor not removing products from shop’ is closed to new replies.