Home Forums Themes Support Claue Add a new icon for Vendor Store

Topic Resolution: Resolved
Viewing 3 reply threads
  • Author
    Posts
    • #17371

      Hi there,

      I’d like to make it easy for vendors to get to their vendor dashboard.
      Is it possible to add an icon of a shop in between the favourites heart and shopping bag in the main menu when vendors are logged in? (I have nav menu roles plug in).

      See attached screenshot.

      Many thanks,

      Karen

      Attachments:
      You must be logged in to view attached files.
    • #17380

      Hi,

      Please copy file layout-5.php from claue > views > header to claue-child > views > header and add below code

      if (class_exists('WCV_Vendors') && WCV_Vendors::is_vendor(get_current_user_id())) {
      	$page = WC_Vendors::$pv_options->get_option( 'vendor_dashboard_page' );
      	echo '<a class="vendor-dash-link nice-button" id="vendor-link" href="' . get_permalink( $page ) . '"><i class="fa fa-dashboard"></i></a>';
      }

      to line 23 in layout-5.php

      I refer from this topic https://www.wcvendors.com/help/topic/add-vendor-dashboard-link-to-menu-but-make-it-only-visible-to-vendors/

      If it doesn’t work please ask support from WC vendor team.

      Best regards

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

    • #17381

      Hi Harry,

      this broke my site (white screen) so I’ve raised a ticket with WCV

    • #17729

      Hi Harry,

      You can mark this one as resolved too after you helped me add the vendor dashboard link to the My account icon 🙂

Viewing 3 reply threads

You must be logged in to reply to this topic.