• Resolved kzduardo

    (@kzduardo)


    Hello, I’m using Google Translator. I’m sorry.

    Is it possible to remove the Vendor page store?

    On my site the artists would send the arts and would be exhibited for them the sales commission, not needing a store for each artist.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hi @kzduardo, there is no such feature to disable vendor store page, however, you can stop the vendor and customer from accessing the page by changing the url of the vendor’s store page to site’s shop page. Hence, \the customer/vendor will always be directed to the site’s store page, when they will click on the vendor’s name.

    For this you have to follow this steps :

    – Hide the “My Shop” tab from vendor dashboard using some custom CSS so that vendor won’t be able to see the store page.
    – Kindly add this code snippet in the child theme’s function.php as this will redirect the customer to site’s shop page.

    function my_page_template_redirect()
    {
    if( is_tax( 'dc_vendor_shop' ) )
    {
    $shop_page_url = get_permalink( woocommerce_get_page_id( 'shop' ) );
    wp_safe_redirect($shop_page_url);
    exit();
    }
    }
    add_action( 'template_redirect', 'my_page_template_redirect', 999 );

    Hope this solution will work on your site.

    Please let us know if you have any further query.

Viewing 1 replies (of 1 total)
  • The topic ‘Vendor Page’ is closed to new replies.