Updated Codes

Hide Co Creator/Vendor Products Category On Shop Page-1st create Category(Co-Creator,Co-Karachi,Karachi-1,Karachi-2-In Code Snippets-Its For Single Co-Creator/Vendor

//<~ dont add me into functions.php
 
add_action( ‘woocommerce_product_query’, ‘prefix_custom_pre_get_posts_query’ );
/**
 * Hide Product Cateories from targetted pages in WooCommerce
 * @link https://gist.github.com/stuartduff/bd149e81d80291a16d4d3968e68eb9f8#file-wc-exclude-product-category-from-shop-page-php
 *
 */
function prefix_custom_pre_get_posts_query( $q ) {
 
if( is_shop() || is_page(‘awards’) ) { // set conditions here
 
    $tax_query = (array) $q->get( ‘tax_query’ );
 
    $tax_query[] = array(
           ‘taxonomy’ => ‘product_cat’,
           ‘field’    => ‘slug’,
           ‘terms’    => array( ‘co-creators’,), // set product categories here
           ‘operator’ => ‘NOT IN’
    );
 
 
    $q->set( ‘tax_query’, $tax_query );
}
}
Hide Multiple Co Creators/Vendors Products categories on shop page through Code Snippets-1st create categories-Applied On this Shop Page.Check.Its For more than 1 Co Creator/Vendor
  //<~ dont add me into functions.php 
 
add_action( ‘woocommerce_product_query’, ‘prefix_custom_pre_get_posts_query’ );
/**
 * Hide Product Cateories from targetted pages in WooCommerce
 * @link https://gist.github.com/stuartduff/bd149e81d80291a16d4d3968e68eb9f8#file-wc-exclude-product-category-from-shop-page-php
 *
 */
function prefix_custom_pre_get_posts_query( $q ) {
 
if( is_shop() || is_page(‘awards’) ) { // set conditions here
 
    $tax_query = (array) $q->get( ‘tax_query’ );
 
    $tax_query[] = array(
           ‘taxonomy’ => ‘product_cat’,
           ‘field’    => ‘slug’,
           ‘terms’    => array( ‘co-kpk’,’co-karachi’, ‘co-lahore’ ,), // set product categories here
           ‘operator’ => ‘NOT IN’
    );
 
 
    $q->set( ‘tax_query’, $tax_query );
}
}

Hide Bank Option From Co Creators To keep Transactions smooth through your hand/your Account.Use Code Snippets-Its Applied on this website

add_filter( ‘woocommerce_available_payment_gateways’, ‘wtwh_unset_gateway_by_category’ );

function wtwh_unset_gateway_by_category( $available_gateways ) {
if ( is_admin() ) return $available_gateways;
if ( ! is_checkout() ) return $available_gateways;
$unset = false;
$category_id = 126;
foreach ( WC()->cart->get_cart_contents() as $key => $values ) {
$terms = get_the_terms( $values[‘product_id’], ‘product_cat’ );
foreach ( $terms as $term ) {
if ( $term->term_id == $category_id ) {
$unset = true;
break;
}
}
}
if ( $unset == true ) unset( $available_gateways[‘bacs’] );
return $available_gateways;
}

Co Creators/Vendors Products-Short Code On Page Section

Products which you posted on your current/hosted website will be displated below.If you donot hv any product posted , no product will be shown.

To Hide a specific category like Co Creators Category in Recent Products On Front Page-st Create Categories
To Hide Multiple Co Creators Category in Recent Products On Front Page-!st Create Categories

FEATURED PRODUCTS Code

Product Categories Code
Bank Payment Description

Make your payment directly into our bank account.Kindly share Screenshot of your payment details with your Order ID as the payment reference. Your order will not be shipped until the funds have cleared in our account.

Hide Specific Menu Items In Vendors dashboard-Paste in Theme Editor function php file

function remove_vendor_dashboard_menu( $urls ){
unset( $urls[‘withdraw’] );
return $urls;
}
add_action( ‘dokan_get_dashboard_nav’, ‘remove_vendor_dashboard_menu’, 99 );

Additional CSS for Website Customization

/*Create Title of Single Product page*/
 
.woocommerce div.product div.summary .product_title {
display: block;
}
 
 
/* Hide permalink section in Dokan vendor product dashboard */
.dokan-dashboard .dokan-product-edit-header .dokan-edit-row.dokan-clearfix.dokan-hide {
    display: none !important;
}
/* Specific class for the slug editor box */
.dokan-dashboard #edit-slug-box {
    display: none !important;
}
 
 
/*Hide category selection option in vendors product edit dashboard*/
#dokan-category-open-modal{
display: none;
}
 
 
/*Hide Product Status from Vendor to change it*/
#post_status{
display: none;
}
 
 
/*Hide to change option from Visibility to Hide/Search/Catalogue*/
#_visibility{
display: none;
}
 
 
/*Hide To change to Manage Stock Quantity/SKU No./Low stock threshold*/
.dokan-section-content{
display: none;
}
 
 
/*Hide product description from Vendor dashboard */
/* Hide Long Description in Dokan Vendor Dashboard */
 
 
/*Remove become a Vendor fron a Customer*/
.dokan-account-migration-lists{
display: none;}
 
 
 
.dokan-store-contact {
    display: none !impoertant;
}
 

 —————————————————————————————–———–
Full Additional CSS Customization

 
/*Create Title of Single Product page*/
 
.woocommerce div.product div.summary .product_title {
display: block;
}
 
 
/* Hide permalink section in Dokan vendor product dashboard */
.dokan-dashboard .dokan-product-edit-header .dokan-edit-row.dokan-clearfix.dokan-hide {
    display: none !important;
}
/* Specific class for the slug editor box */
.dokan-dashboard #edit-slug-box {
    display: none !important;
}
 
 
/*Hide category selection option in vendors product edit dashboard*/
#dokan-category-open-modal{
display: none;
}
 
 
/*Hide Product Status from Vendor to change it*/
#post_status{
display: none;
}
 
 
/*Hide to change option from Visibility to Hide/Search/Catalogue*/
#_visibility{
display: none;
}
 
 
/*Hide To change to Manage Stock Quantity/SKU No./Low stock threshold*/
.dokan-section-content{
display: none;
}
 
 
/*Hide product description from Vendor dashboard */
/* Hide Long Description in Dokan Vendor Dashboard */
 
 
/*Remove become a Vendor fron a Customer*/
.dokan-account-migration-lists{
display: none;}
 
 
 
.dokan-store-contact {
    display: none !impoertant;
}
 
 
.dokan-edit-row show_if_simple dokan-order-min-max-product-metabox-wrapper {
display: none;
}
 
?*Hide Product Title and Product Type*/
.dokan-form-control{
display: none;
}
 
 
/*Hide Linked Products*/ 
.content-half-part{
display: none;
}
 
 
 
 
 
Shopping Cart