Archives

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!

Best Multi Vendor Marketplace Plugin for WordPress › Forums › Search › Search Results for 'update'

Viewing 25 results - 351 through 375 (of 4,410 total)
  • Author
    Search Results
  • #123801

    Hello,

    I want to set default product description for vendor product entering page – description (not short description), How should I do it?
    >>Add this code in your theme’s functions.php

    add_filter('wcfm_marketplace_settings_fields_general', 'wcfm_marketplace_settings_fields_general_custom2704', 50, 2 );
    function wcfm_marketplace_settings_fields_general_custom2704($general_fields,$vendor_id) {
    	$store_product_description = wcfm_get_user_meta( $vendor_id, '_store_product_description', true );
    	if(isset($general_fields['gravatar']) ) {
    		$general_fields['store_product_description']= array('label' => __('Shop Product Description', 'wc-frontend-manager') , 'type' => 'wpeditor', 'class' => 'wcfm-textarea wcfm_custom_field_editor wcfm_ele wcfm_wpeditor', 'label_class' => 'wcfm_title', 'value' => $store_product_description );
    	}
    	return $general_fields;
    }
    
    add_action( 'wcfm_wcfmmp_settings_update','fn_wcfm_vendor_settings_storetype_update2704', 50, 2);
    add_action( 'wcfm_vendor_settings_update','fn_wcfm_vendor_settings_storetype_update2704', 50, 2);
    function fn_wcfm_vendor_settings_storetype_update2704($user_id, $wcfm_settings_form ){	
    	wcfm_update_user_meta( $user_id, '_store_product_description',  $wcfm_settings_form['store_product_description'] );
    }

    Add the below script in your theme’s js file (https://developer.wordpress.org/reference/functions/wp_enqueue_script/)

    jQuery(document).ready(function ($) {
    
       $('#wcfm_store_setting_save_button, #wcfm_store_general_setting_save_button, #wcfm_store_address_setting_save_button').click(function(event) {
        event.preventDefault();
       
        var profile = getWCFMEditorContent( 'shop_description' );
    
          // WCFM Custom field Editor support
        if( $('.wcfm_custom_field_editor').length > 0 ) {
          $('.wcfm_custom_field_editor').each(function() {
            $wcfm_custom_field_editor = $(this);
            if( $wcfm_custom_field_editor.hasClass('rich_editor') || $wcfm_custom_field_editor.hasClass('wcfm_wpeditor') ) {
              $('#'+$wcfm_custom_field_editor.attr('id')).val(getWCFMEditorContent( $wcfm_custom_field_editor.attr('id') ));
            }
          });
        }
       
        // Validations
        $('.wcfm-message').html('').removeClass('wcfm-error').removeClass('wcfm-success').slideUp();
        $wcfm_is_valid_form = true;
        $( document.body ).trigger( 'wcfm_form_validate', $('#wcfm_vendor_manage_store_setting_form') );
        $is_valid = $wcfm_is_valid_form;
        
        if($is_valid) {
          $('#wcfm_vendor_manage_store_setting_form').block({
            message: null,
            overlayCSS: {
              background: '#fff',
              opacity: 0.6
            }
          });
          var data = {
            action                    : 'wcfm_ajax_controller',
            controller                : 'wcfm-vendors-manage-marketplace-settings',
            wcfm_settings_form        : $('#wcfm_vendor_manage_store_setting_form').serialize(),
            profile                   : profile,
          } 
          $.post(wcfm_params.ajax_url, data, function(response) {
            if(response) {
              $response_json = $.parseJSON(response);
              $('.wcfm-message').html('').removeClass('wcfm-error').removeClass('wcfm-success').slideUp();
              if($response_json.status) {
                wcfm_notification_sound.play();
                $('#wcfm_vendor_manage_form_store_setting_expander .wcfm-message').html('<span class="wcicon-status-completed"></span>' + $response_json.message).addClass('wcfm-success').slideDown();
              } else {
                wcfm_notification_sound.play();
                $('#wcfm_vendor_manage_form_store_setting_expander .wcfm-message').html('<span class="wcicon-status-cancelled"></span>' + $response_json.message).addClass('wcfm-error').slideDown();
              }
              $('#wcfm_vendor_manage_store_setting_form').unblock();
            }
          }); 
        }
      });
       
    });

    Then you will find a field “Shop Product Description” in vendor settings. Here admin/vendor can add default product description.
    To show this field value in product page description section, you have to override description.php from “\wp-content\plugins\woocommerce\templates\single-product\tabs” to “yourtheme/woocommerce/single-product/tabs/description.php”.
    And this code to fetch default product description –

    <?php
    $product_id = get_the_ID();
    $vendor_id   = wcfm_get_vendor_id_by_post( $product_id );
    ?>
    <p><?php echo wcfm_get_user_meta( $vendor_id, '_store_product_description', true );?></p>

    How to make 2 registration forms like when u enter half of the information then in the next page the other info? can we make it?
    >>By default there is no possible setting option to achieve this.But this can be achievable by overriding registration template.

    Or if do you mean,”SUBSCRIBE TO MEMBERSHIP” section in this https://wclovers.com/knowledgebase/wcfm-membership/, then after activate “WCFM – WooCommerce Multivendor Membership” plugin use the Vendor membership page(which contain “[wcfm_vendor_membership]” shortcode) for vendor registration.

    Hope this information will help you.

    Thanks.

    #123770
    Sushobhan
    Keymaster

    Hello,
    Have you updated form an earlier version of WCFM Marketplace? Are you facing these issues after plugin update?

    how to delete an account

    WCFM doesn’t provide user deletion from frontend dashboard. Please do that from wp-admin >> Users.

    I don’t get an e-mail when I register, how do I do that, all the notifications have been stopped

    Go to settings >> Notification manager and check if all the notifications are enabled or not. Ref: https://imgur.com/N526DD4
    If all the notifications are enabled and still you aren’t getting any email the please install https://wordpress.org/plugins/wp-mail-logging/ plugin. And, check if the emails are getting triggered or not.

    #123751
    Sushobhan
    Keymaster

    You are always welcome 🙂
    Let me know if there’s anything else we can help you with.
    Can we ask for a favor? Would you mind taking a few minutes to review our plugin (if you haven’t already) at https://wordpress.org/support/plugin/wc-multivendor-marketplace/reviews/ and let others know about your 5 Star experience with WCFM Marketplace. Also, follow us on Twitter https://twitter.com/wcfmmp for more exciting news, important updates, and irresistible offers.

    Kay
    Participant

    Same here, I have gave admin access and sent seller login as requested and no update since then.

    #123721
    Sushobhan
    Keymaster

    You are always welcome 🙂
    Let me know if there’s anything else we can help you with.
    Can we ask for a favor? Would you mind taking a few minutes to review our plugin (if you haven’t already) at https://wordpress.org/support/plugin/wc-multivendor-marketplace/reviews/ and let others know about your 5 Star experience with WCFM Marketplace. Also, follow us on Twitter https://twitter.com/wcfmmp for more exciting news, important updates, and irresistible offers.

    #123650
    Sushobhan
    Keymaster

    @Henriette, the purpose of the last snippet was-

    1. remove Street 2 and Country from vendor dashboard > Location.

    2. bring Postcode first and than City/Town

    And it does just that. But as you mentioned in your last message that you want to hide state field as well from Vendor settings >> location and make it consistent with the store page; so here is the updated snippet (kindly remove the older one)-

    add_filter( 'wcfm_marketplace_settings_fields_address', function( $fields ) {
        if ( ! current_user_can( 'administrator' ) ) {
            $shuffled_fields = array();
            if ( isset( $fields['street_1'] ) )
                $shuffled_fields['street_1'] = $fields['street_1'];
            if ( isset( $fields['zip'] ) )
                $shuffled_fields['zip'] = $fields['zip'];
            if ( isset( $fields['city'] ) )
                $shuffled_fields['city'] = $fields['city'];
            if ( isset( $fields['state'] ) ) {
                $shuffled_fields['state'] = $fields['state'];
                $shuffled_fields['state']['type'] = 'hidden';
            }
            if ( isset( $fields['country'] ) ) {
                $shuffled_fields['country'] = $fields['country'];
                $shuffled_fields['country']['type'] = 'hidden';
            }
            return $shuffled_fields;
        }
        return $fields;
    }, 10 );
    
    add_filter( 'wcfmmp_store_address_string', function( $store_address, $vendor_data ) {
        $address = array();
        if ( ! empty( $vendor_data['address'] ) ) {
            if ( isset( $vendor_data['address']['street_1'] ) ) $address[] = $vendor_data['address']['street_1'];
            if ( isset( $vendor_data['address']['zip'] ) ) $address[] = $vendor_data['address']['zip'];
            if ( isset( $vendor_data['address']['city'] ) ) $address[] = $vendor_data['address']['city'];
        }
        return implode( ', ', array_filter( $address ) );
    }, 10, 2 );

    Add this code to your child theme’s functions.php
    In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/ (more preferred option)
    Let me know how this goes.
    Thanks!

    #123524
    Sushobhan
    Keymaster

    Hello,

    Thank you for contacting the support and sorry for any inconvenience that might have been caused due to that.

    Assuming you are using the latest version of all the plugins and the themes (please update if not yet), it could be a conflict with one of the plugins or the theme you are using.

    To determine that, please follow this awesome troubleshooting guide from here:
    https://rankmath.com/kb/check-plugin-conflicts/

    Only the site admin would know and your users won’t be affected by this troubleshooting.

    Please let us know if you find the cause.

    Looking forward to helping you.

    #123441

    In reply to: Fatal error

    senior_gamal
    Participant

    i have the same issue with woocommerce subscribe and wcfm
    If you want to cancel the plan for the customer, the order cannot be executed and the page remains fixed and is not canceled and this appears in the error log

    Fatal error: Uncaught Exception: Unable to change subscription status to “expired”. in /home/xxxx/public_html/wp-content/plugins/woocommerce-subscriptions/includes/class-wc-subscription.php:422

    1.
    WC_Subscription->update_status(‘expired’)
    /home/xxxx/public_html/wp-content/plugins/wc-multivendor-membership/core/class-wcfmvm.php:1667
    2.
    WCFMvm->wcfmvm_vendor_membership_cancel(3, 3296)
    /home/xxxx/public_html/wp-content/plugins/wc-multivendor-membership/core/class-wcfmvm-ajax.php:479
    3.
    WCFMvm_Ajax->wcfmvm_membership_cancel(”)
    /home/xxxx/public_html/wp-includes/class-wp-hook.php:287
    6.
    do_action(‘wp_ajax_wcfmvm_…’)
    /home/xxxx/public_html/wp-admin/admin-ajax.php:175
    7.
    {main}
    thrown in /home/xxxx/public_html/wp-content/plugins/woocommerce-subscriptions/includes/class-wc-subscription.php on line 422
    Show 2 more

    Hello,

    I would like to display in the same Tab the vendor description and the product description.
    I would like to dispplay in one column the vendor description and in the second column the description of the product.
    I try to do yhe code but I don’t succeed.
    Below is the code to display these 2 elements but for the moment the product description is displayed after the vendor description.
    Can you help me ?
    Attached what I would like in terms of result.

    Thanks,
    Have a good day.
    Aurélien.

    <?php
    /**
     * The Template for displaying store.
     *
     * @package WCfM Markeplace Views Store Sold By as Tab
     *
     * For edit coping this to yourtheme/wcfm/sold-by
     *
     */
    
    if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
    
    global $WCFM, $WCFMmp;
    
    $vendor_id = $WCFM->wcfm_vendor_support->wcfm_get_vendor_id_from_product( $product_id );
    if( $vendor_id ) {
    	if( apply_filters( 'wcfmmp_is_allow_sold_by', true, $vendor_id ) && $WCFM->wcfm_vendor_support->wcfm_vendor_has_capability( $vendor_id, 'sold_by' ) ) {
    		// Check is store Online
    		$is_store_offline = get_user_meta( $vendor_id, '_wcfm_store_offline', true );
    		if ( $is_store_offline ) {
    			return;
    		}
    			
    		$sold_by_text = $WCFMmp->wcfmmp_vendor->sold_by_label( absint($vendor_id) );
    		
    		
    		if( apply_filters( 'wcfmmp_is_allow_sold_by_linked', true ) ) {
    			$store_name = $WCFM->wcfm_vendor_support->wcfm_get_vendor_store_by_vendor( absint($vendor_id) );
    		} else {
    			$store_name = $WCFM->wcfm_vendor_support->wcfm_get_vendor_store_name_by_vendor( absint($vendor_id) );
    		}
    		
    		$store_user  = wcfmmp_get_store( $vendor_id );
    		$store_info  = $store_user->get_shop_info();
    		
    		$gravatar = $store_user->get_avatar();
    		$email    = $store_user->get_email();
    		$phone    = $store_user->get_phone(); 
    		$address  = $store_user->get_address_string(); 
    		
    		echo '<div class="wcfmmp_sold_by_container">';
    		do_action('before_wcfmmp_sold_by_gravatar_product_page', $vendor_id );
    		echo '<div class="wcfmmp_store_tab_info wcfmmp_store_info_gravatar"><img src="' . $store_user->get_avatar() . '" /></div>';
    		do_action('before_wcfmmp_sold_by_label_product_page', $vendor_id );
    		echo '<div class="wcfmmp_sold_by_wrapper">' . $store_name . '</div>';
    		if( apply_filters( 'wcfm_is_pref_vendor_reviews', true ) ) { $WCFMmp->wcfmmp_reviews->show_star_rating( 0, $vendor_id ); }
    		do_action('after_wcfmmp_sold_by_label_product_page', $vendor_id );
    		
    		do_action('before_wcfmmp_sold_by_info_product_page', $vendor_id );
    		
    		if( $address && ( $store_info['store_hide_address'] == 'no' ) && $WCFM->wcfm_vendor_support->wcfm_vendor_has_capability( $vendor_id, 'vendor_address' ) ) {
    			echo '<div class="wcfmmp_store_tab_info wcfmmp_store_info_address"><i class="wcfmfa fa-map-marker" aria-hidden="true"></i>' . $address . '</div>';
    		}
    		
    		if( $email && ( $store_info['store_hide_email'] == 'no' ) && $WCFM->wcfm_vendor_support->wcfm_vendor_has_capability( $vendor_id, 'vendor_email' ) ) {
    			echo '<div class="wcfmmp_store_tab_info wcfmmp_store_info_address"><i class="wcfmfa fa-envelope" aria-hidden="true"></i>' . $email . '</div>';
    		}
    		
    		if( $phone && ( $store_info['store_hide_phone'] == 'no' ) && $WCFM->wcfm_vendor_support->wcfm_vendor_has_capability( $vendor_id, 'vendor_phone' ) ) {
    			echo '<div class="wcfmmp_store_tab_info wcfmmp_store_info_address"><i class="wcfmfa fa-phone" aria-hidden="true"></i><span>' . $phone . '</div>';
    		}
    		
    		do_action('after_wcfmmp_sold_by_info_product_page', $vendor_id );
    		
    		if( apply_filters( 'wcfmmp_is_allow_sold_by_social', true ) ) {
    			if( !empty( $store_info['social'] ) && $WCFM->wcfm_vendor_support->wcfm_vendor_has_capability( $store_user->get_id(), 'vendor_social' ) ) { 
    				do_action('before_wcfmmp_sold_by_social_product_page', $vendor_id ); ?>
    				<div class="wcfm_cearfix"></div>
    				<div class="wcfmmp_store_tab_info wcfmmp_store_info_store_social">
    					<?php $WCFMmp->template->get_template( 'store/wcfmmp-view-store-social.php', array( 'store_user' => $store_user, 'store_info' => $store_info ) ); ?>
    				</div>
    				<div class="wcfm_cearfix"></div>
    			 
    				<?php do_action('after_wcfmmp_sold_by_social_product_page', $vendor_id );
    			}
    		}
    		
    		if( apply_filters( 'wcfmmp_is_allow_sold_by_about', false ) ) {
    			$wcfm_shop_description = apply_filters( 'woocommerce_short_description', $store_user->get_shop_description() );
    			?>
    			<?php if( $wcfm_shop_description ) { ?>
    				<div class="wcfm-store-about" style="font-style:italic;">
    					<div class="wcfm_store_description" ><?php echo $wcfm_shop_description; ?></div>
    				</div>
    			<?php 
    			}
    		}
    		
    		if( apply_filters( 'wcfmmp_is_allow_sold_by_location', true ) ) {
    			$api_key = isset( $WCFMmp->wcfmmp_marketplace_options['wcfm_google_map_api'] ) ? $WCFMmp->wcfmmp_marketplace_options['wcfm_google_map_api'] : '';
    			$store_lat    = isset( $store_info['store_lat'] ) ? esc_attr( $store_info['store_lat'] ) : 0;
    			$store_lng    = isset( $store_info['store_lng'] ) ? esc_attr( $store_info['store_lng'] ) : 0;
    	
    			if ( !empty( $api_key ) && !empty( $store_lat ) && !empty( $store_lng ) && $WCFM->wcfm_vendor_support->wcfm_vendor_has_capability( $store_user->get_id(), 'vendor_map' ) ) {
    				echo '<div class="wcfmmp_store_tab_info wcfmmp_store_info_store_location">';
    				do_action( 'before_wcfmmp_sold_by_location_product_page', $store_user->get_id() );
    			
    				$WCFMmp->template->get_template( 'store/widgets/wcfmmp-view-store-location.php', array( 
    																											 'store_user' => $store_user, 
    																											 'store_info' => $store_info,
    																											 'store_lat'  => $store_lat,
    																											 'store_lng'  => $store_lng,
    																											 'map_id'     => 'wcfm_sold_by_tab_map_'.rand(10,100)
    																											 ) );
    		
    				do_action( 'after_wcfmmp_sold_by_location_product_page', $store_user->get_id() );
    				echo '</div>';
    				
    				wp_enqueue_script( 'wcfmmp_store_js', $WCFMmp->library->js_lib_url . 'store/wcfmmp-script-store.js', array('jquery' ), $WCFMmp->version, true );
    				$scheme  = is_ssl() ? 'https' : 'http';
    				wp_enqueue_script( 'wcfm-store-google-maps', $scheme . '://maps.googleapis.com/maps/api/js?key=' . $api_key . '&libraries=places' );
    			}
    		}
    		
    		echo '</div>';
    
    	}
    }
    ?>
    
    /**
     * Description tab
     *
     * This template can be overridden by copying it to yourtheme/woocommerce/single-product/tabs/description.php.
     *
     * HOWEVER, on occasion WooCommerce will need to update template files and you
     * (the theme developer) will need to copy the new files to your theme to
     * maintain compatibility. We try to do this as little as possible, but it does
     * happen. When this occurs the version of the template file will be bumped and
     * the readme will list any important changes.
     *
     * @see 	    https://docs.woocommerce.com/document/template-structure/
     * @package 	WooCommerce/Templates
     * @version     2.0.0
     */
    <?php
    if ( ! defined( 'ABSPATH' ) ) {
    	exit; // Exit if accessed directly
    }
    
    global $post;
    $heading = esc_html( apply_filters( 'woocommerce_product_description_heading', __( '', 'woocommerce' ) ) );
    
    ?>
    
    <?php if ( $heading ) : ?>
      <h2><?php echo $heading; ?></h2>
    <?php endif; ?>
    
    <?php the_content(); ?>
    Attachments:
    You must be logged in to view attached files.
    #123411
    Ahmed AlAli
    Participant
    This reply has been marked as private.
    JUANMA JUAREZ
    Participant

    After installing WCFM Groups and Staff I’m having the following issues:

    Issue 1: When I try to add Single Product Multi-Vendor I receive the following warning: Sell Items Catalog: You don’t have permission to access this page. Please contact your Store Admin for assistance.

    Issue 2: When I try to add You reached your product limit! Update or upgrade your membership. (¡Has llegado al límite de productos!Cambiar o actualizar tu plan de membresía actual).

    I have set (both global and group-based) capabilities to groups for an unlimited number of products and everything is checked as “ON”.

    Attachments:
    You must be logged in to view attached files.
    #123128
    L Stewart
    Participant

    any update on this – I am also interested

    #122994
    Craig
    Participant

    Hi Sushobhan,

    Do you have an update on this? I just updated the plugins but the shipping zones are still not working. Once the first zone is matched no others will apply even if I change the customer address.

    aemr45 thanks for your plugin suggestion as well….my problem is that I can’t manage the shipping rules for each store….we have 77 stores and growing.

    #122978
    Avinaba
    Member

    Dear @tideon,

    Thanks for sharing your views and we will definitely take a serious note on this, infact we are already working on creating a new documentation site here – docs.wclovers.com and will cover all the modules soon!.

    Also note that these new documentations will be aligned to the latest development and hence updated. So no worries.

    Hopefully we will be able to resolve issues for valuable customers like you soon 🙂

    #122925
    alexdezi
    Participant

    yes, everything is updated.

    I gave them access to the staging site, they will check it out: https://support.rankmath.com/ticket/plugin-conflict-with-wcfm/#post-46670

    Hi,

    Please update WooCommerce and our WCFM plugins.

    Thanks.

    #122785
    Sushobhan
    Keymaster

    You are always welcome 🙂
    Let me know if there’s anything else we can help you with.
    Can we ask for a favor? Would you mind taking a few minutes to review our plugin at https://wordpress.org/support/plugin/wc-multivendor-marketplace/reviews/ and let others know about your 5 Star experience with WCFM Marketplace. Also, follow us on Twitter https://twitter.com/wcfmmp for more exciting news, important updates, and irresistible offers.

    #122594
    Henriette
    Participant

    Ah! Now I see! I am already using Loco Translate but I didn’t know I had to sync after update to get the strings.
    Before sync I could not find them.
    This was my first update of Marketplace.
    Is this always the case that as soon as you sync the .PO file after an update new language strings comes available?

    Anyway…thank you very much! I LOVE Local Pickup option!

    Sushobhan
    Keymaster

    You are always welcome 🙂
    Let me know if there’s anything else we can help you with.
    Can we ask for a favor? Would you mind taking a few minutes to review our plugin at https://wordpress.org/support/plugin/wc-multivendor-marketplace/reviews/ and let others know about your 5 Star experience with WCFM Marketplace. Also, follow us on Twitter https://twitter.com/wcfmmp for more exciting news, important updates, and irresistible offers.

    #122502
    Sushobhan
    Keymaster

    You are always welcome 🙂
    Let me know if there’s anything else we can help you with.
    Can we ask for a favor? Would you mind taking a few minutes to review our plugin at https://wordpress.org/support/plugin/wc-multivendor-marketplace/reviews/ and let others know about your 5 Star experience with WCFM Marketplace. Also, follow us on Twitter https://twitter.com/wcfmmp for more exciting news, important updates, and irresistible offers.

    Sushobhan
    Keymaster

    Kindly use this updated snippet-

    add_action( 'woocommerce_product_meta_end', function() {
        global $product;
        $vendor_id = wcfm_get_vendor_id_by_post( $product->get_id() );
        $store_user = wcfmmp_get_store( $vendor_id );
        $store_info = $store_user->get_shop_info();
        if ( $store_info['store_hide_address'] == 'yes' || ! wcfm_vendor_has_capability( $vendor_id, 'vendor_address' ) )
            return;
        if ( ! empty( $store_info['address'] ) ) {
            $addr_arr = array();
            $all_countries = WC()->countries->get_countries();
            if ( ! empty( $store_info['address']['country'] ) && ! empty( $all_countries[$store_info['address']['country']] ) ) {
                array_push( $addr_arr, $all_countries[$store_info['address']['country']] );
                if ( ! empty( $store_info['address']['state'] ) )
                    array_push( $addr_arr, $store_info['address']['state'] );
                if ( ! empty( $store_info['address']['city'] ) )
                    array_push( $addr_arr, $store_info['address']['city'] );
                ?>
                <p class="vendor_singleline_address"><span>Country: </span><?php _e( implode( ", ", $addr_arr ) ); ?></p>
                <?php
            }
        }
    } );

    Add this code to your child theme’s functions.php
    In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/
    Let me know how this goes.
    Thanks!

    #122494
    stzi
    Participant

    Any update on this question?

    Hello,

    Do you mean update/save not working in WordPress dashboard->Settings?

    Thank You.

    Hello,

    Modify the code,

    function add_allow_invoice( $settings_fields_general, $vendor_id ) {
    	$vendor_data = get_user_meta( $vendor_id, 'wcfmmp_profile_settings', true );
    	$allow_invoice = isset( $vendor_data['allow_invoice'] ) ? esc_attr( $vendor_data['allow_invoice'] ) : 'no';
    	if( isset( $settings_fields_general['store_name'] ) ) {
    		//$allow_invoice = get_user_meta( $vendor_id, 'allow_invoice', true );
    		$settings_fields_general['allow_invoice'] = array(
    			'label' => __( 'Rechnung erlauben', 'ddwoo' ),
    			'type' => 'checkbox',
    			'priority' => 50,
    			'class' => 'wcfm-checkbox wcfm_ele',
    			'label_class' => 'wcfm_title wcfm_ele',
    			'value' => 'yes',
    			'dfvalue' => $allow_invoice
    		);
    	}
    	return $settings_fields_general;
    }
    add_filter('wcfm_marketplace_settings_fields_general', 'add_allow_invoice', 20, 2 );
    
    function save_custom_vendor_settings($vendor_id, $wcfm_settings_form) {
    	global $WCFM, $WCFMmp;
    	$wcfm_settings_form_data_new = array();
    	parse_str($_POST['wcfm_settings_form'], $wcfm_settings_form_data_new);	
    	$wcfm_settings_form_data_storetype = array();
    	if(isset($wcfm_settings_form_data_new['allow_invoice']) && !empty($wcfm_settings_form_data_new['allow_invoice'])) {
    		$wcfm_settings_form_data_storetype['allow_invoice'] = 'yes';
    	} else {
    		$wcfm_settings_form_data_storetype['allow_invoice'] = 'no';
    	}
    	$wcfm_settings_form = array_merge( $wcfm_settings_form, $wcfm_settings_form_data_storetype );
    	update_user_meta( $vendor_id, 'wcfmmp_profile_settings', $wcfm_settings_form );
    }
    add_action('wcfm_vendor_settings_update',  'save_custom_vendor_settings', 30, 2);
    add_action( 'wcfm_wcfmmp_settings_update','save_custom_vendor_settings', 30, 2);

    Thanks.

    #122279
    trawler-captain
    Participant

    I have a similar problem. Whenever i make updates on the admin level of WCFM Backend i have no clue how to save my settings. there is no chance for saving any settings at all. if i scroll down, i only see the reset to factory button. am i missing something?

Viewing 25 results - 351 through 375 (of 4,410 total)