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 - 451 through 475 (of 4,410 total)
  • Author
    Search Results
  • Henriette
    Participant

    Hi,

    I found on one of this forums this functions.php code for letting vendor choose a suitable category at registration.

    add_action( 'end_wcfm_membership_registration_form', function() {
    	$selected_categories = array();
    	
    	$product_categories   = get_terms( 'product_cat', 'orderby=name&hide_empty=0&parent=0' );
    	$p_category_options   = array();
    	foreach ( $product_categories as $cat ) {
    		$p_category_options[$cat->term_id] = array( 'name' => $cat->name, 'parent' => 0 );
    	}
    	
    	if( !empty( $p_category_options ) ) showRegistrationCategoryHierarchySelector( $p_category_options, $selected_categories );
    	?>
    	<script>
    	jQuery(document).ready(function($) {
    		$('.wcfm_category_hierarchy').each(function() {
    			$(this).change(function() {
    				$level = parseInt($(this).data('level'));
    				$value = $(this).val();
    				if( $('.p_category_'+($level+1)).length > 0 ) {
    					$('.p_category_'+($level+1)).addClass('wcfm_custom_hide');
    					$('.p_category_label_'+($level+1)).addClass('wcfm_custom_hide');
    					if( $value ) {
    						$.each($value, function( $i, $svalue ) {
    							if( $('.p_category_'+($level+1)).find('.cat_parent_'+$svalue).length > 0 ) {
    								$('.p_category_'+($level+1)).removeClass('wcfm_custom_hide');
    								$('.p_category_label_'+($level+1)).removeClass('wcfm_custom_hide');
    							}
    						});
    					}
    					$level_1 = $('.p_category_'+($level+1)).val();
    					$('.p_category_'+($level+1)).val('');
    					$('.p_category_'+($level+1)).find('option').addClass('wcfm_custom_hide');
    					if( $value ) {
    						$.each($value, function( $i, $svalue ) {
    							$('.p_category_'+($level+1)).find('.cat_parent_'+$svalue).removeClass('wcfm_custom_hide');
    						});
    					}
    					if( $level_1 ) {
    						if( !$('.p_category_'+($level+1)).find('option[value="'+$level_1+'"]').hasClass('wcfm_custom_hide') ) {
    							$('.p_category_'+($level+1)).val($level_1);
    						}
    					}
    					$('.p_category_'+($level+1)).change();
    				}
    			}).change();
    			
    		});
    	});
    	</script>
    	<?php
    });
    
    function showRegistrationCategoryHierarchySelector( $p_category_options, $selected_categories, $level = 0 ) {
    	global $WCFM, $WCFMch;
    	
    	$p_category_child_options = array();
    	$ptax_custom_arrtibutes = apply_filters( 'wcfm_taxonomy_custom_attributes', array(), 'product_cat' );
    	?>
    	<p class="wcfm_title p_category_label_<?php echo $level; ?>">
    		<strong>
    			<?php 
    			echo apply_filters( 'wcfm_taxonomy_custom_label', '', 'product_cat' );
    			if( $level ) _e( 'Sub-', 'wcfm-category-hierarchy' ); 
    			_e( 'Categories', 'wc-frontend-manager' ); 
    			?>
    		</strong>
    	</p>
    	<label class="screen-reader-text" for="product_cats">
    		<?php 
    		if( $level ) echo __( 'Sub-', 'wcfm-category-hierarchy' );
    		echo apply_filters( 'wcfm_taxonomy_custom_label', __( 'Categories', 'wc-frontend-manager' ), 'product_cat' ); 
    		?>
    	</label>
    	<select id="p_category_<?php echo $level; ?>" style="height: auto;" multiple name="reg_category[<?php echo $level; ?>][]" class="wcfm-select wcfm_category_hierarchy p_category_<?php echo $level; ?>" data-level="<?php echo $level; ?>" data-catlimit="1" <?php echo implode( ' ', $ptax_custom_arrtibutes ); ?>>
    		<option value=""><?php _e( '-- Selecteer Categorie --', 'wcfm-category-hierarchy' ); ?></option>
    		<?php
    		foreach( $p_category_options as $term_id => $term_details ) {
    			$cat_group_class = 'cat_parent_' . $term_details['parent'];
    			echo '<option class="' . $cat_group_class . '" value="' . esc_attr( $term_id ) . '"' . selected( in_array( $term_id, $selected_categories ), true, false ) . '>' . __( esc_html( $term_details['name'] ), 'wcfm-category-hierarchy' ) . '</option>';
    			
    			$product_child_taxonomies   = get_terms( 'product_cat', 'orderby=name&hide_empty=0&parent=' . absint( $term_id ) );
    			if ( $product_child_taxonomies ) {
    				foreach ( $product_child_taxonomies as $cat ) {
    					$p_category_child_options[$cat->term_id] = array( 'name' => $cat->name, 'parent' => $term_id );
    				}
    			}
    		}
    		?>
    	</select>
    	<?php
    	$level++;
    	if( !empty( $p_category_child_options ) ) showRegistrationCategoryHierarchySelector( $p_category_child_options, $selected_categories, $level );
    }
    
    add_action( 'wcfm_membership_registration', function( $member_id, $wcfm_membership_registration_form_data ) {
    	if( isset( $wcfm_membership_registration_form_data['reg_category'] ) ) {
    		update_user_meta( $member_id, 'wcfm_vendor_reg_category', $wcfm_membership_registration_form_data['reg_category'] );
    	}
    }, 50, 2 );

    This works like a charm but the only problem is that this is required. I do not want that because if there is no category for vendor to suit his store I have a custom field where vendor can add a category suggestion so I can make that category for him in WC admin.
    I can not find in the code how to make it not required. Can you please point me in the right direction?

    Also I wish to re-order the custom fields. Like “K.v.K. Nummer” is part of the shopinfo.
    And custom field for Suggested Categorie (“Categorie Suggestie”) needs to be beneath the categories so if there is no category to choose from than vendor can fill in his own.Please see attachment.
    Can you help me to achieve this please?

    And one more question.
    Is it possible to hide the custom fields from vendor profile page?
    I only need this information like K.v.K. Nummer to approve vendor and category suggestion to make the right category for vendor store.

    Thank you.

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

    Hello,

    Sorry for delay reply.
    Regarding group issue which is your first topic,
    We have setup properly, the group count shows correctly now (PFA)

    Regarding the commission amount applying both coupon,
    Unfortunately it seems to be bug in our system, we are working on it and we shall resolve it in our future update.

    Thanks.

    Attachments:
    You must be logged in to view attached files.
    #118997
    EK
    Participant

    Hi guys,

    Production and staging are becoming different as we update production. Can you kindly login and confirm the issue or recent updates might change production a bit. You asked for credentials on the 3RD of April and today is 14th 🙂

    Thanks a lot.

    #118986

    Hello,

    1. Apply the look and feel in the Woolementor templates,
    >>Unfortunately Woolementor has not provided the support of our plugin till now, hence it might be a good idea if you reach out to the plugin author/their support directly and ask them to provide our support so that you can do the desirable in vendor store page.As far as we know from our customers, they were supposed to add our support in next update

    2. Only display the product published by the store itself on its own store page.
    >> Kindly add “Store Tab Contents” elementor block to display vendor’s products. (PFA)
    Please check the link : https://www.youtube.com/watch?v=0d-2wFlkg0I&feature=youtu.be

    Thanks.

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

    Hello,

    Add this code in your theme’s functions.php

    // Function to check starting char of a string
    function startsWith($haystack, $needle){
        return $needle === '' || strpos($haystack, $needle) === 0;
    }
    // Custom function to display the Billing Address form to registration page
    function zk_add_billing_form_to_registration(){
        global $woocommerce;
        $checkout = $woocommerce->checkout();
        ?>
        
        <?php foreach ( $checkout->get_checkout_fields( 'billing' ) as $key => $field ) : ?>
    
            <?php if($key!='billing_email' && $key!='billing_phone' && $key!='billing_company'){ 
                woocommerce_form_field( $key, $field, $checkout->get_value( $key ) );
            } ?>
    
        <?php endforeach;  ?>
        <p class="form-row form-row-first">
           <label for="reg_store_name"><?php _e( 'Business Title', 'woocommerce' ); ?><span class="required">*</span></label>
           <input type="text" class="input-text" name="store_name" id="reg_store_name" value="<?php if ( ! empty( $_POST['store_name'] ) ) esc_attr_e( $_POST['store_name'] ); ?>" />
           </p>
        <?php
    }
    add_action('woocommerce_register_form_start','zk_add_billing_form_to_registration');
    
    // Custom function to save Usermeta or Billing Address of registered user
    function zk_save_billing_address($user_id){
        global $woocommerce;
        $address = $_POST;
        if ( ! empty( $_POST['store_name'] ) ) {
        	update_user_meta( $user_id, 'store_name', $_POST['store_name'] );
        }
        foreach ($address as $key => $field){
            if(startsWith($key,'billing_')){
                // Condition to add firstname and last name to user meta table
                if($key == 'billing_first_name' || $key == 'billing_last_name'){
                    $new_key = explode('billing_',$key);
                    update_user_meta( $user_id, $new_key[1], $_POST[$key] );
                }
                update_user_meta( $user_id, $key, $_POST[$key] );
            }
        }
    
    }
    add_action('woocommerce_created_customer','zk_save_billing_address');
    
    // Registration page billing address form Validation
    function zk_validation_billing_address(){
        global $woocommerce;
        $address = $_POST;
        foreach ($address as $key => $field) :
            // Validation: Required fields
            if(startsWith($key,'billing_')){
                if($key == 'billing_country' && $field == ''){
                    $woocommerce->add_error( '<strong>' . __( 'ERROR', 'woocommerce' ) . '</strong>: ' . __( 'Please select a country.', 'woocommerce' ) );
                }
                if($key == 'billing_first_name' && $field == ''){
                    $woocommerce->add_error( '<strong>' . __( 'ERROR', 'woocommerce' ) . '</strong>: ' . __( 'Please enter first name.', 'woocommerce' ) );
                }
                if($key == 'billing_last_name' && $field == ''){
                    $woocommerce->add_error( '<strong>' . __( 'ERROR', 'woocommerce' ) . '</strong>: ' . __( 'Please enter last name.', 'woocommerce' ) );
                }
                if($key == 'billing_address_1' && $field == ''){
                    $woocommerce->add_error( '<strong>' . __( 'ERROR', 'woocommerce' ) . '</strong>: ' . __( 'Please enter address.', 'woocommerce' ) );
                }
                if($key == 'billing_city' && $field == ''){
                    $woocommerce->add_error( '<strong>' . __( 'ERROR', 'woocommerce' ) . '</strong>: ' . __( 'Please enter city.', 'woocommerce' ) );
                }
                if($key == 'billing_state' && $field == ''){
                    $woocommerce->add_error( '<strong>' . __( 'ERROR', 'woocommerce' ) . '</strong>: ' . __( 'Please enter state.', 'woocommerce' ) );
                }
                if($key == 'billing_postcode' && $field == ''){
                    $woocommerce->add_error( '<strong>' . __( 'ERROR', 'woocommerce' ) . '</strong>: ' . __( 'Please enter a postcode.', 'woocommerce' ) );
                }
                
    
            }
        endforeach;
    }
    add_action('register_post','zk_validation_billing_address');

    Thanks.

    #118819

    In reply to: Bank Transfer

    WCFM Forum
    Member

    Hi,

    Are you using only “Bank Transfer” as payment method?

    If so, then we have a solution to show vendor’s Bank Details directly under customer’s order page and order email.

    If you will use that than you will be release from two things – no need to handle vendors payment and no notification send out to vendors.

    Please know me thoughts.

    how to notify him that a payment has been received to our account. Now if we change the status of the order to:in processing it does not get a notification in the processing but only the buyer.
    – Well, vendors are receive notification for order status update.

    Thank You

    #118788
    Avinaba
    Member

    Sorry, just to clarify, are you refereing to the notification of the announcement in the Dashboard? Which is getting 404, I didn’t get that. Kindly also check if all WCFM plugins are updated as well.

    #118654

    Hello,

    We have already mentioned you, you need to override “packing-slip.php” file from “wc-frontend-manager-ultimate” to your child theme and update the “packing-slip.php” file.

    Thanks.

    #118557
    Abdullah
    Participant

    Thanks for the reply.

    I see 3 files in “child theme/wcfm/vendor_invoice/” directory. Which file does it need to be updated?

    commission-invoice.php
    invoice.php
    store-invoice.php

    Thanks
    Abdullah

    #118501

    In reply to: Video Preview

    martin gomez
    Participant

    Hi! i have tested this and I cant get it worked. First, all the products dissapear from the products list. When I try to create a new one nothing works. Maybe the code needs to update? I have tried with the free version of YITH before buying. I have wcfm ultimate. Thanks!

    #118479

    Hello,

    Can you please explain us what exactly are you looking for?

    Regarding new meta save at the time of product creation/update,

    add_action( 'after_wcfm_products_manage_meta_save', 'fn_custom_product_meta_save',10,2 );
    function fn_custom_product_meta_save($new_product_id, $wcfm_products_manage_form_data) {
    	$regular_price = get_post_meta( $new_product_id, '_regular_price', true );  
      update_post_meta( $new_product_id, 'your_new_meta', $regular_price );  
    }

    Now for using “wcfm_form_custom_validation” this filter what you want to do?

    Thanks.

    #118453
    jennis015
    Participant

    Great! this code didnt work to me, something is wrong? Can you help me please?

    _price is the meta_key of woocommerce.

    add_filter( 'wcfm_form_custom_validation', function( $wcfm_products_manage_form_data, $form ) {
    
      if( $form_manager == 'product_manage' ) {
    			$regular_price = isset( $wcfm_products_manage_form_data['regular_price'] ) ? wc_clean( $wcfm_products_manage_form_data['regular_price'] ) : '';
    	update_post_meta( $new_product_id, '_price', $regular_price );
    		}
    	
    	return $wcfm_products_manage_form_data;
    },
    50, 2);
    #118381

    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.

    #118276
    WCFM Forum
    Member

    is it possible to add a map during checkout so people can point their location in order to get GPS coordinates instead of only an address? Unfortunately, address don’t work very well here.

    – We already have this in plan, will add in next update.

    WCFM Forum
    Member

    Are you able to add a note section to the order assignment window when a vendor is assigning so the vendor (if they choose) can put in a note something like

    – Sure, we will add this option in next update.

    erginkezbanertas
    Participant

    There is a problem in the fast product installation window, no part is not working, I can not click. There is no batch product update, there is the same problem, there is no click. Also, when the order is created, I cannot click on the shipping options, please help.

    Attachments:
    You must be logged in to view attached files.
    jennis015
    Participant

    Hi! I created this function to generate a new position in the database with metakey: “_price” because when i create a new product from frontend this is empty. The code works only when I update the post, not when I create it for the first time the product.
    And how i can traslate the calendar?
    Can you help me? Thank you !!

      function wpufe_update_post_price( $post_id ) {
        if ( 'product' != $_POST['post_type'] )
        return;
    
        $regular_price = get_post_meta( $post_id, '_regular_price', true );
        $sale_price = get_post_meta( $post_id, '_price', true );
    
        update_post_meta( $post_id, '_price', $regular_price );
    
        if ( !empty( $sale_price ) ) {
    
            update_post_meta( $post_id, '_price', $sale_price );
    
        }
    
    }
     add_action('save_post_product', 'wpufe_update_post_price', 10, 1);
      add_action('wp_insert_post', 'wpufe_update_post_price', 10, 1);
    hani
    Participant

    Hi,

    It will be great to release an update allowing enable or disable Linked product options from capability: Up-sell, Cross-Sell and Frequently Bought Together

    Thanks

    #117800
    ashley.younguk
    Participant

    Hello

    I am trying to edit the template file wcfmu-view-products.php, I’m trying to edit the attributes section of that file by adding a class and changing the title or various sections however my changes are not showing. I then found that the same options are in the file wcfm-view-products-manage-tabs.php which is a file I cannot edit as it will be overwritten when I update the plugin.

    Can you help?

    #117798
    SSC
    Participant

    Hello, I have some custom fields on my checkout page.
    They suddenly stopped working and I can not figure out why. I have spent all day trying to figure this out. There are no errors in the logs.
    The fields are no longer saving as post_meta.

    add_action('woocommerce_before_checkout_form', 'add_custom_checkout_select_field2');
    function add_custom_checkout_select_field2( $checkout ) {
    	global $woocommerce, $post ;     
    foreach ( $woocommerce->cart->get_cart() as $cart_item_key => $values) {
    	$product = $values['data'];
    		echo '<div id="customise_checkout_field">';
    		woocommerce_form_field('test_field', array(
            'type' => 'text',
            'class' => array(
            'player-name form-row-wide'
            ),
            'label' => __('test_field') ,
            'placeholder' => __('test_field') ,
    		),
    		$checkout->get_value('test_field'));
    		echo '</div>';
    }
    }
    add_action( 'woocommerce_checkout_update_order_meta', 'my_custom_checkout_field_update_order_meta2' );
    function my_custom_checkout_field_update_order_meta2( $order_id ) {
        if ( !empty( $_POST['test_field'] )) {
    		update_post_meta( $order_id, 'test_field', sanitize_text_field( $_POST['test_field'] ) );
        }
    }
    add_filter( 'woocommerce_order_details_after_order_table' , 'my_custom_checkout_field_display_admin_order_meta2', 20, 1 ); // Front
    add_filter( 'woocommerce_email_order_details' , 'my_custom_checkout_field_display_admin_order_meta2', 20, 1 ); // Front
    //Admin
    add_action( 'woocommerce_admin_order_data_after_billing_address', 'my_custom_checkout_field_display_admin_order_meta2', 10, 1 );
    function my_custom_checkout_field_display_admin_order_meta2($order){
    	$test_field = get_post_meta( $order->get_id(), 'test_field', true );
    	
    	if ( $test_field ) {
        echo '<p><strong>'.__('test_field').':</strong> ' . get_post_meta( $order->get_id(), 'test_field', true ) . '</p>';
    	}
    }
    #117792

    You’re most 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.

    #117691

    Hi,

    Please check your browser console whether there is any javascript error or not. Also go to wp-admin->WooCommerce->Status->Logs and check whether there is a fatal error or not.

    If you are not using all updated versions of our plugins then please do update them all and check again. Don’t forget to take backup of your database and all files before updating anything.

    Do let us know if you find something.

    Thanks,

    #117585
    andre
    Participant

    Hi,

    My site was working fine until recently, I have not added any new plugins, but now when I go to the vendors dashboard I can see the icons, when I click on memberships all the icons turn into little squares. I am now not able to update any settings, the site just hangs indefinitely and I have to close the browser and reload, However going back to membership the same happens again. I have tried 5 other templates including storefront, same result. I have also cleared the cash several times, same result We are nearly ready to launch and this is a major stumbling block please help

    I am using the following:

    WCFM – WooCommerce Multivendor Marketplace Version 3.3.7
    WCFM – WooCommerce Multivendor Marketplace Version 3.3.7
    WCFM – WooCommerce Multivendor Marketplace – Elementor Version 1.1.1
    WCFM – WooCommerce Multivendor Membership Version 2.8.5

    Attachments:
    You must be logged in to view attached files.
    Craig
    Participant

    It seems that any vendor registered before new “Additional Registration Custom Fields” were added to the vendor registration process can’t update their passwords.

    See attached screen shots of the vendor trying to change password and a newly created staff account trying to change their password and says they need to acknowledge those two fields but are not visible because they are at the password rest section not the registration form.

    Can you have a look and advise?

    Thanks

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

    In reply to: Directory

    sheridandoyle
    Participant

    I’m not 100% convinced. I’ve just added a code snippet that has disabled the mandatory email for WordPress users and you can see the code snippet in the link below. I’ve also attached a screenshot to show email is no longer required for WordPress users.

    Website: https://www.wppluginsforyou.com/how-to-create-users-without-email-in-wordpress/
    Snippet:
    // This will suppress empty email errors when submitting the user form
    add_action(‘user_profile_update_errors’, ‘my_user_profile_update_errors’, 10, 3 );
    function my_user_profile_update_errors($errors, $update, $user) {
    $errors->remove(’empty_email’);
    }

    // This will remove javascript required validation for email input
    // It will also remove the ‘(required)’ text in the label
    // Works for new user, user profile and edit user forms
    add_action(‘user_new_form’, ‘my_user_new_form’, 10, 1);
    add_action(‘show_user_profile’, ‘my_user_new_form’, 10, 1);
    add_action(‘edit_user_profile’, ‘my_user_new_form’, 10, 1);
    function my_user_new_form($form_type) {
    ?>
    <script type=”text/javascript”>
    jQuery(‘#email’).closest(‘tr’).removeClass(‘form-required’).find(‘.description’).remove();
    // Uncheck send new user email option by default
    <?php if (isset($form_type) && $form_type === ‘add-new-user’) : ?>
    jQuery(‘#send_user_notification’).removeAttr(‘checked’);
    <?php endif; ?>
    </script>
    <?php
    }

    Attachments:
    You must be logged in to view attached files.
Viewing 25 results - 451 through 475 (of 4,410 total)