Home › Forums › WC Vendors Pro Support › Inscription for vendors
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.
Thank you to all of our customers!
- This topic has 5 replies, 2 voices, and was last updated 6 years, 9 months ago by
Tristan.
-
AuthorPosts
-
February 24, 2017 at 9:04 am #57458
Tristan
ParticipantHi,
I’d like to create a customised form for the sign up of vendors, with very specific questions, please could you explain me:
1. how to create these fields and display them when they sign up (i can’t accept them if they only “apply as vendor”)
2. how to display it ONLY for vendors applications : when a client buys a product and create an account, he must not see these specific questions. Maybe by spliting the page for vendor signup vs user signup ?I tried with BuddyPress for Vendors pro, but i don’t find.
I let the screenshot as an idea of what i see yet.. Thanks !February 24, 2017 at 9:05 am #57460Tristan
Participant### WordPress Environment ### Home URL: https://chezmoneleveur.fr Site URL: https://chezmoneleveur.fr WC Version: 2.6.14 Log Directory Writable: ✔ WP Version: 4.7.2 WP Multisite: – WP Memory Limit: ❌ 40 MB - Nous recommandons l’augmentation de la mémoire à 64Mo minimum. Voir : Augmenter la mémoire allouée à PHP WP Debug Mode: – WP Cron: ✔ Language: fr_FR ### Server Environment ### Server Info: Apache PHP Version: 7.0.15 PHP Post Max Size: 6 MB PHP Time Limit: 30 PHP Max Input Vars: 1000 cURL Version: 7.38.0 OpenSSL/1.0.1t SUHOSIN Installed: – MySQL Version: ❌ 5.5.54 - Nous recommandons MySQL version 5.6 minimum. Voir : Exigences de WordPress Max Upload Size: 64 MB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔ ### Database ### WC Database Version: 2.6.14 : woocommerce_sessions: ✔ woocommerce_api_keys: ✔ woocommerce_attribute_taxonomies: ✔ woocommerce_downloadable_product_permissions: ✔ woocommerce_order_items: ✔ woocommerce_order_itemmeta: ✔ woocommerce_tax_rates: ✔ woocommerce_tax_rate_locations: ✔ woocommerce_shipping_zones: ✔ woocommerce_shipping_zone_locations: ✔ woocommerce_shipping_zone_methods: ✔ woocommerce_payment_tokens: ✔ woocommerce_payment_tokenmeta: ✔ MaxMind GeoIP Database: ❌ La base de données GeoIP MaxMind n’existe pas - La géolocalisation ne fonctionnera pas. Vous pouvez la télécharger et l’installer manuellement depuis http://dev.maxmind.com/geoip/legacy/geolite/ dans ce chemin : . Faites défiler vers le bas jusqu’à \"Downloads\" et téléchargez le fichier \"Binary / gzip\" à coté de \"GeoLite Country\" ### Active Plugins (13) ### Ultimate Addons for Visual Composer: par Brainstorm Force – 3.16.7 BP WC Vendors: par Sven Lehnert – 1.0.9 Display Medium Posts: par AceKYD – 2.0.0 The7 Demo Content: par Dream-Theme – 1.5.3 The7 Post Types: par Dream-Theme – 1.1.3 Google Analytics Dashboard for WP: par Alin Marcu – 4.9.6.2 WPBakery Visual Composer: par Michael M - WPBakery.com – 4.12.1 MANGOPAY WooCommerce plugin: par Yann Dubois MANGOPAY – 2.1.0 Quick View WooCommerce: par XootiX – 1.6 Slider Revolution: par ThemePunch – 5.2.6 WC Vendors Pro: par WC Vendors – 1.3.9 WC Vendors: par WC Vendors – 1.9.8 WooCommerce: par WooThemes – 2.6.14 ### Settings ### Force SSL: ✔ Currency: EUR (€) Currency Position: right_space Thousand Separator: Decimal Separator: , Number of Decimals: 2 ### API ### API Enabled: – ### WC Pages ### Base Boutique: #15606 - /animalerie/ Panier: #15263 - /panier/ Commande: #15264 - /commande/ Mon Compte: #15265 - /mon-compte/ ### Taxonomies ### Product Types: external (external) grouped (grouped) simple (simple) variable (variable) ### Theme ### Name: The7 Version: 4.1.0 Author URL: http://dream-theme.com/ Child Theme: ❌ – Si vous modifiez WooCommerce sur un thème parent que vous n’avez pas construit personnellement nous vous recommandons d’utiliser un thème enfant. Voir : Comment créer un thème enfant WooCommerce Support: ✔ ### Templates ### Overrides: dt-the7/woocommerce/cart/cart.php dt-the7/woocommerce/content-product.php dt-the7/woocommerce/content-product_cat.php dt-the7/woocommerce/emails/admin-cancelled-order.php dt-the7/woocommerce/emails/admin-new-order.php dt-the7/woocommerce/emails/customer-on-hold-order.php dt-the7/woocommerce/global/breadcrumb.php dt-the7/woocommerce/loop/loop-end.php dt-the7/woocommerce/loop/loop-start.php dt-the7/woocommerce/loop/orderby.php ### WC Vendors Pro ### Theme Compatability: - Pro Dashboard Page: - #15618 Feedback form page: - #15619 Vendor Shop Permalink: - vendeurs/ ### Templates ### Overrides: –
February 24, 2017 at 9:14 am #57461Tristan
ParticipantSorry, here is a new screenshot, of the signin page, when BuddyPress is activated. Nothing anymore about “become a vendor”… ?
February 24, 2017 at 9:51 am #57465Anna
MemberHello,
Please direct registration to the my-account page (woocommerce page that we hook into to add the checkbox for “apply to become a vendor”) to see the option for the vendor application.Once you have that straightened out, you can look into adding fields to the vendor application.
You will need to add code to your theme/child theme functions.php, and also modify the vendor application template.
Here is an article on how to modify templates:
https://www.wcvendors.com/kb/changing-vendor-templates/The template you will look for is the vendor signup form: wp-content/plugins/wcvendors-pro/templates/front/vendor-signup-form.php
Then you can follow this article to get an idea of how you would create the code for the fields (that goes in the theme/child theme functions.php file), fields that will show in the admin (wp admin > users) and then also the code to place the fields int he front-end form for the vendors- in the vendor signup form template.
https://www.wcvendors.com/kb/custom-fields-to-shop-settings-page/February 26, 2017 at 10:58 am #57640Tristan
ParticipantHello,
thanks for your answers,
Actually I followed these instructions, (1) I “enabled people to apply as vendors” on the my-account page (image 1), then i pasted the wp-content/plugins/wcvendors-pro/templates/front/vendor-signup-form.php file in my theme (the7), and now the form is totally bugged : black screen, impossible to fill the form and validate. I am not a coder, so I do my best, but i’m a bit lost with all these processes…
Thanks for your support,
TFMarch 4, 2017 at 2:41 pm #58240Tristan
ParticipantHello,
I finally could unbug my site, now i created a child theme and i try to follow the instruction to customize the vendor form. I checked the page https://www.wcvendors.com/kb/custom-fields-to-shop-settings-page/
I’m sorry but i am not really sure of what I can copy and paste (without changes), and what I have to change. For example, if i want to add a section “animals sold” (multiple choice), would this be correct? :/* WC Vendors Pro – My Custom Field */
function animals_sold( ){
if ( class_exists( ‘WCVendors_Pro’ ) ){
$key = ‘_wcv_custom_settings_animals_sold’;
$value = get_user_meta( get_current_user_id(), $key, true );
// Animals sold
WCVendors_Pro_Form_Helper::input( array(
‘id’ => $key,
‘label’ => __( ‘Animals sold’, ‘wcvendors-pro’ ),
‘placeholder’ => __( ‘Animals sold’, ‘wcvendors-pro’ ),
‘desc_tip’ => ‘true’,
‘description’ => __( ‘Select the animals you sell’, ‘wcvendors-pro’ ),
‘type’ => ‘list’,
‘value’ => ‘cats’,’dogs’,’birds’,
)
);
}
}Then, what should i write in this code ?
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
}
?>Part 3: In order to show the custom field on your Pro Settings page, you need to add the function you just created above to the
template. Copy /plugins/wc-vendors-pro/templates/dashboard/store-settings.php to /themes/yourtheme-child/wc-vendors/dashboard/store-settings.php
and add this wherever you want the field to show up:<?php store_bank_details( ); ?>
Thank you =)
TF -
AuthorPosts
- The forum ‘WC Vendors Pro Support’ is closed to new topics and replies.