WC Lovers

WooCommerce Frontend Manager - Multivendor marketplace vendor dashboard

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Forum Replies Created

Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • in reply to: Messages in the header of the site #95797
    PATselov
    Participant

    Sorry. Last line of record
    Tell me the code for displaying these buttons in any place of the template I need?

    in reply to: What group is the user #88409
    PATselov
    Participant

    This code does not work.
    The result is an empty array.

    in reply to: New links to social profiles #88203
    PATselov
    Participant

    Your code

    add_filter( 'wcfm_profile_fields_social', function( $social_fields, $vendor_id ) {
    	$vk = get_user_meta( $vendor_id, '_wcfm_social_vk', true );
    	$telegram = get_user_meta( $vendor_id, '_wcfm_social_telegram', true );
    	$viber = get_user_meta( $vendor_id, '_wcfm_social_viber', true );
    	
    	$social_fields["vk"] = array('label' => __('VK', 'wc-frontend-manager') , 'type' => 'text', 'class' => 'wcfm-text wcfm_ele', 'label_class' => 'wcfm_title wcfm_ele', 'value' => $vk );
    	$social_fields["telegram"] = array('label' => __('Telegram', 'wc-frontend-manager') , 'type' => 'text', 'class' => 'wcfm-text wcfm_ele', 'label_class' => 'wcfm_title wcfm_ele', 'value' => $telegram );
    	$social_fields["viber"] = array('label' => __('Viber', 'wc-frontend-manager') , 'type' => 'text', 'class' => 'wcfm-text wcfm_ele', 'label_class' => 'wcfm_title wcfm_ele', 'value' => $viber );
    	return $social_fields;
    }, 50, 2 );
    
    add_action( 'wcfm_profile_update', function( $vendor_id, $wcfm_profile_form ) {
    	if( isset( $wcfm_profile_form['vk'] ) ) {
    		update_user_meta( $vendor_id, '_wcfm_social_vk', $wcfm_profile_form['vk'] );
    	}
    	if( isset( $wcfm_profile_form['telegram'] ) ) {
    		update_user_meta( $vendor_id, '_wcfm_social_telegram', $wcfm_profile_form['telegram'] );
    	}
    	if( isset( $wcfm_profile_form['viber'] ) ) {
    		update_user_meta( $vendor_id, '_wcfm_social_viber', $wcfm_profile_form['viber'] );
    	}
    }, 50, 2 );
    
    add_action( 'wcfmmp_store_after_social', function( $vendor_id ) {
    	$vk = get_user_meta( $vendor_id, '_wcfm_social_vk', true );
    	$telegram = get_user_meta( $vendor_id, '_wcfm_social_telegram', true );
    	$viber = get_user_meta( $vendor_id, '_wcfm_social_viber', true );
    	
    	if( $vk ) {
    		?>
    		<li><a href="<?php echo wcfmmp_generate_social_url( $vk, 'vk' ); ?>" target="_blank"><i class="fab fa-vk" aria-hidden="true" target="_blank"></i></a></li>
    		<?php
    	}
    	
    	if( $telegram ) {
    		?>
    		<li><a href="<?php echo wcfmmp_generate_social_url( $telegram, 'telegram' ); ?>" target="_blank"><i class="fab fa-telegram" aria-hidden="true" target="_blank"></i></a></li>
    		<?php
    	}
    	
    	if( $viber ) {
    		?>
    		<li><a href="<?php echo wcfmmp_generate_social_url( $viber, 'mixer' ); ?>" target="_blank"><i class="fab fa-viber" aria-hidden="true" target="_blank"></i></a></li>
    		<?php
    	}
    }, 50 );

    But there are two problems:
    1. During setup during registration, data added to these fields is not saved.
    2. The display of the fields does not correspond to the display of the remaining fields in the list. The image is attached.

    Attachments:
    You must be logged in to view attached files.
    in reply to: Change product status #88009
    PATselov
    Participant

    Ok.
    Then tell me how for the seller whose subscription has expired automatically set the status Disable Vendor?

    in reply to: Get user group #88008
    PATselov
    Participant

    I created my own post type and fields for it
    I have 3 tariff plans Standard, Business, Premium
    In my template I want to display some fields only for the Premium group
    To do this, to use the “if {} else {};” I need to find out which group the logged in user.
    How do I get the value which of the groups the user belongs to?

    in reply to: What group is the user #87797
    PATselov
    Participant

    No, you do not understand me.
    How can a user group be defined programmatically?
    I need, depending on the user group, to work with my data when writing the page template.
    For example:

    <?php
    if ($my_user_group == ... ) {
    // My code
    } else {
    // My code
    }
    ?>

    Therefore, I need to get the group value for a user who has logged into his woocommerce account.

    in reply to: Buy Sell Request for Quote Board #87607
    PATselov
    Participant
    This reply has been marked as private.
    in reply to: Get user group #87540
    PATselov
    Participant

    No, I need this as a variable value, so that I can use this value in if else blocks when writing my own template code.

    in reply to: Disable Vendor can add attribute #87157
    PATselov
    Participant

    For me, the most convenient option can only be selected by the “Global Attributes” for the selected category or several selected product categories, but they cannot add their own attributes.

    in reply to: Get user group #87155
    PATselov
    Participant

    Yes, I already set up groups.
    I’m interested in the code so that I can use it in php files when I edit page templates.

    in reply to: Disable Vendor can add attribute #87070
    PATselov
    Participant

    I agree with this idea. It will greatly simplify the setup of the store, it will be especially convenient for working with setting attributes for the category.

    in reply to: Hide option for Snapchat, LinkedIn, Google+ #86539
    PATselov
    Participant

    I am joining.
    I also need to remove Twitter, Instagram, Linkedin, Google Plus, Snapchat, Pinterest

    in reply to: Connection of my translations #84549
    PATselov
    Participant

    Loco Translate plugin doesn’t suit me.
    I need a translation that this plugin cannot do. That’s why I do the translation myself.
    I need your file to load after my file.

    in reply to: QUOTATION PLUGIN FOR WOOCOMMERCE – ERROR #79654
    PATselov
    Participant

    I see this error when I selected the product and click the Send request button

    in reply to: Request to incorporate a quotation feature #79554
    PATselov
    Participant

    Quotation plugin – https://woocommercequoteplugin.com/ does not work and breaks the session.
    His tech support is not responding.

    in reply to: Request to incorporate a quotation feature #79210
    PATselov
    Participant

    I’m interested too. This is a very good feature.

Viewing 16 posts - 1 through 16 (of 16 total)