• Resolved rkahmed

    (@rkahmed)


    hi, first of all it seems to me a pretty good plugin.

    I want to know that, can vendors show their social media link in the store? and beside this, I want a “Media” tab besides “products” tab where I can show my pictures and videos to the visitors/clients. Is it possible?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author WC Lovers

    (@wclovers)

    HI,

    Thanks for get in touch with us.

    Well, vendor may off course show their social profile under store page.

    Kindly login as vendor -> WCFM Dashboard -> Profile (at top bar left) -> Social -> will visible under store page

    Check this – https://wcfmmp.wcfmdemos.com/store/wcfm-vendor/

    Well, it’s also possible to add custom tab under store page but that requires custom coding. Are you comfortable with WP hook/filter PHP coding?

    Thank You

    Thread Starter rkahmed

    (@rkahmed)

    GREAT!
    and thanks for quick reply. I am comfortable with wp hook/filter. how can I solve this problem?

    Plugin Author WC Lovers

    (@wclovers)

    Hi,

    That’s great. Well here is your code, using this I am adding ‘Art Works’ new tab under store page –

    add_action( 'wcfmmp_rewrite_rules_loaded', function( $wcfm_store_url ) {
    	add_rewrite_rule( $wcfm_store_url.'/([^/]+)/art_works?$', 'index.php?'.$wcfm_store_url.'=$matches[1]&art_works=true', 'top' );
    	add_rewrite_rule( $wcfm_store_url.'/([^/]+)/art_works/page/?([0-9]{1,})/?$', 'index.php?'.$wcfm_store_url.'=$matches[1]&paged=$matches[2]&art_works=true', 'top' );
    }, 50 );
    
    add_filter( 'query_vars', function( $vars ) {
    	$vars[] = 'art_works';
    	return $vars;
    }, 50 );
    
    add_filter( 'wcfmmp_store_tabs', function( $store_tabs, $store_id ) {
      $store_tabs['art_works'] = 'Art Works';
      return $store_tabs;
    }, 50, 2 );
    
    add_filter( 'wcfmp_store_tabs_url', function( $store_tab_url, $tab ) {
    	if( $tab == 'art_works' ) {
    		$store_tab_url .= 'art_works';
    	}
    	return $store_tab_url;
    }, 50, 2 );
    
    add_filter( 'wcfmp_store_default_query_vars', function( $query_var ) {
    	global $WCFM, $WCFMmp;
    	
    	if ( get_query_var( 'art_works' ) ) {
    		$query_var = 'art_works';
    	}
    	return $query_var;
    }, 50 );
    
    add_filter( 'wcfmp_store_default_template', function( $template, $tab ) {
      if( $tab == 'art_works' ) {
      	$template = 'store/wcfmmp-view-store-art-works.php';
      }
      return $template;
    }, 50, 2);

    Add this code under your child theme’s functions.php and create a template file at “child theme/wcfm/store/wcfmmp-view-store-art-works.php”

    Now add your new tab content at “wcfmmp-view-store-art-works.php”

    Hope this will helpful for you ??

    Thank You

    Thread Starter rkahmed

    (@rkahmed)

    great!
    thanks for the quick support. will it work on WC Frontend Manager–Ultimate too? same code?
    and actually I want store vendors should post their photos/videos from the store dashboard like they post their products, articles and check their payments? is it possible? I am still learning php and confused to do the major changes.

    once again, it’s a great plugin full fill my all expectations already!

    one more thing, can super admin check the conversation between vendor and client?

    thanks!

    Thread Starter rkahmed

    (@rkahmed)

    I don’t get any answer still

    Plugin Author WC Lovers

    (@wclovers)

    Hi,

    thanks for the quick support. will it work on WC Frontend Manager–Ultimate too? same code?

    – Yeah off course, this code is for WCFM Marketplace. WCFM Ultimate does not matter here!

    and actually I want store vendors should post their photos/videos from the store dashboard like they post their products, articles and check their payments? is it possible? I am still learning php and confused to do the major changes.

    – Possible, but those will separate code.

    Thank You

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Social media link and “media” tab’ is closed to new replies.