Home Forums WC Vendors Pro Support Customize vendor application form

NOTICE: We've Moved to a Ticket System for Support

As of August 31, 2017 (12am EST) our support forums will be retired (read-only), and we will be moving to a support ticket system.  This will allow us to better organize and answer support requests, and provide a more personalized experience as we assist our customers.

For the time being, we will leave our forums open for reading and learning while we work on creating a more robust Knowledge Base for everyone to use.

If you are a WC Vendors Pro customer please open a support ticket here. 

If you are a WC Vendors user please open a support ticket on the Wordpress.org forums.

The information on this forum is outdated and in most instances no longer relevant. Please be sure to check our documentation for the most up to date information.

https://docs.wcvendors.com/

Thank you to all of our customers!

 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #60248
    Asher
    Participant

    Hello.

    Is it possible you could answer the questions below as this would really help us complete dev of our website

    1.) I want to add some custom fields on the vendor aplication form. These fields need to feature on the vendor application form and in our admin panel when we review the vendor eg please list products you sell. I have tried to follow https://www.wcvendors.com/kb/custom-fields-to-shop-settings-page/ but part 2 of the code is throwing up errors in my fuction file

    2.) Make the “view your store” menu button on the vendor dashboard open in a new page eg target_blank

    3.) Can vendors add attributes for their products in their dashboard? Our store is a multi product market place so it would be easier for us if approved vendors could add their own attributes

    4.) My emails are duplicating when a vendor makes an application and when i approve an application. This is for vendors notifications and admin notifications

    5.) if you dont authorise your account then you cannot submit a vendor application. is their a way for vendors to authorise first before completing the vendor application or can you direct me to the file where the vendor application is so we can write some text directing them to authorise their account before completing the form

    6.) Can you direct me to a plugin that you wold recommend so we can customise all of our emails into a standard format

    7.) Do you know a way to make the vendor dashboard navigation (wcv-navigation) 100% width to match my top navigation. I want the remainder of the information below the navigation to be containhned in the wrapper . It is currently in a box container

    8. ) Can you let me know how track your order works. I cant see any documentation on that. how is it setup

    Thanks in advance

    #60315
    Anna
    Member

    Hello @blackhighstreet ,
    1. What error are you seeing?

    2. I have to work on this one- it is normally changed with a filter, but because of the way this link is written in, it is not currently one which you can just add the target=”_blank”

    3.Vendors cannot add actual attributes (ie. color, size, material) but they can add attribute terms (i.e. black, red, orange… large, medium..) if you have the capability checked in wp amdin > woocommerce > wc vendors > product form

    4. ? No idea on this one.. I have not heard of that email duplicating before. DO you have any plugins installed which mess with emails at all?

    5. If you use the WooCommerce my-account page for registration, there should be no authorization needed. This must be a setting somewhere on your site, or via the login form or page you are using. If you are using a buddypress login, then they would have to authorize, yes. If you want to keep it that way, then you can add a note to the vendor-signup-form.php template TO notify the vendors. If you are using the BuddyBoss OneSocial / Social Marketplace theme, I’d recommend that you change the login and registration to the my-account page since their login forms don’t really work very well, and sometimes do not log users in properly.
    If you choose to modify the template, read this article first: https://www.wcvendors.com/kb/changing-vendor-templates/

    6. What do you mean by standard format?
    You do have some options for the emails, such as changing them to html only: wp admin > woocommerce > settings > emails
    And no- I really do not know what plugin would be best fro this, as I do not have experience with any plugins to modify emails.

    7. The div for the navigation for the pro dashboard is within the page container– you could make your own div for that menu and modify the dashboard template. What theme are you using?

    8. When a vendor has shipped, they can add a tracking number. This them sends an email to the customer with a link, which they can click on to see any tracking information from the shipping carrier.

    #60376
    Asher
    Participant

    Thanks for your answers

    1.) If you look at the code below that is in my fuction file it breaks the file (please see screenshot). I think its the second fuction (//adds the custom field to the wp-admin > Users > Edit User screen) that seems to add an extra php closing tag. Also this custom function does not add any fields on the vendor application form which is what i want to do. I want too add a new field on vendor application form that vendor fills out and that info goes into the vendor user section.

    <?php
    /* WC Vendors Pro – My Custom Field */
    function store_bank_details( ){
    if ( class_exists( ‘WCVendors_Pro’ ) ){
    $key = ‘_wcv_custom_settings_bankname’;
    $value = get_user_meta( get_current_user_id(), $key, true );
    // Bank Name
    WCVendors_Pro_Form_Helper::input( array(
    ‘id’ => $key,
    ‘label’ => __( ‘Bank Name’, ‘wcvendors-pro’ ),
    ‘placeholder’ => __( ‘First Bank’, ‘wcvendors-pro’ ),
    ‘desc_tip’ => ‘true’,
    ‘description’ => __( ‘Your local bank name’, ‘wcvendors-pro’ ),
    ‘type’ => ‘text’,
    ‘value’ => $value,
    )
    );
    }
    }
    //adds the custom field to the wp-admin > Users > Edit User screen
    add_action( ‘wcvendors_admin_after_commission_due’, ‘wcv_store_bank_details_admin’ );
    function wcv_store_bank_details_admin( $user ) {
    ?>
    <tr>
    <th><label for=”_wcv_custom_settings_bankname”><?php _e( ‘Bank Name’, ‘wcvendors-pro’ ); ?></label></th>
    <td><input type=”text” name=”_wcv_custom_settings_bankname” id=”_wcv_custom_settings_bankname” value=”<?php echo get_user_meta( $user->ID, ‘_wcv_custom_settings_bankname’, true ); ?>” class=”regular-text”></td>
    </tr>
    <?php
    }
    ?>
    ?>

    2.) emails are sending three emails when vendor adds product or i approve product. This is an issue which is known on your forum. please look at https://www.wcvendors.com/help/topic/duplicate-email/

    #60429
    Anna
    Member

    Hello:

    ?>
    ?>

    That’s your problem in the code.
    For the emails- you said it was the vendor application email, which is different than the email discussed in that forum thread.
    Do you have any plugins installed that affect emails?

    #60448
    Asher
    Participant

    Hello

    The issue is not the two
    ?>
    ?>

    If i remove 1 or both of them it creates syntax errors and you cant see the site at all. Also my primary objective is to put a new field on the vendor application and this does not do this at all. Can you please tell me how to put a new field on the vendor application that captures in the user backend system and vendor settings page please. Can you paste the code that will do this

    I dont have any plugins that affect email. Im running Buddyboss social market place on my website with their plugins

    #60463
    Anna
    Member

    Hello,
    I guarantee that having two php closing tags in a row will jack up your site. There may be another issue, also– but that is definitely an issue.

    In this gist, I have the proper code for adding fields to your Pro settings form and to your admin user page.
    Now, the only thing you would need to change to add these fields to your product add/edit template is that you would edit that template (product-edit.php) instead of the store settings.php.
    At the top of the gist I have instructions.
    I say,” for theme/child theme functions.php. Creates the function for the fields to collect the info. you still need to edit the template: store-settings.php to add and where you want the field to show on the pro vendor dashboard settings page “.

    So, instead of modifying the store-settings.php template, you’d modify the product-edit.php template to add the fields.

    1. The code shown will go in your theme/child theme functions.php file. I have just tested it on my dev install, and it does NOT throw and errors if pasted properly (after the opening <?php in your functions.php file).

    2. Secondly, then, you need to put the two pieces of code to display your fields in the product-edit.php file. these:
    <?php store_bank_details( ); ?>
    <?php store_bank_account_number( ); ?>

    Put them in the template where you want those fields to show on the form.
    The template is located here:
    wp-content/plugins.wc-vendors-pro/templates/dashboard/product-edit.php
    You have to copy it and move it to your theme/child to modify it.

    And please be sure you read this about modifying templates before you begin:
    https://www.wcvendors.com/kb/changing-vendor-templates/

    #60477
    Asher
    Participant

    hi thanks for the info.

    adding the wp-content/plugins.wc-vendors-pro/templates/dashboard/product-edit.php does not ammend the application form. The application form is what i have attached. It is the form vendors fill out to get approved for an account. Products-edit.php does not affect this page. so adding the code below does add fields to this form. Also have you got any info on the duplicate email situation.

    Thanks in advance

    #60486
    Anna
    Member

    Hello,
    All of the directions I gave you still apply; I mistakenly thought you were wishing to edit the product form.. for the application form you’d modify the vendor-signup-form.php template (templates/front/ vendor-signup-form.php).

    I do not know why you’re receiving duplicate emails. If you’re using the Buddyboss forms instead of my-account you might be receiving buddypress emails also.

Viewing 8 posts - 1 through 8 (of 8 total)
  • The forum ‘WC Vendors Pro Support’ is closed to new topics and replies.
This website uses cookies to ensure you get the best experience on our website.