Home Forums WC Vendors Pro Support Make fields mandatory on vendor registration form Reply To: Make fields mandatory on vendor registration form


You can also edit the product-edit.php template so that a vendor is prevented form listing a product until the paypal email address is entered.
Approx line 24, add:

$value = get_user_meta( get_current_user_id(), 'pv_paypal', true );
if ( !empty( $value ) ) {

So, if you do this, approx line 21-29 should look like this now:

 *  Ok, You can edit the template below but be careful!
$value = get_user_meta( get_current_user_id(), 'pv_paypal', true );
if ( !empty( $value ) ) {
<h2><?php echo $title; ?></h2>

<!-- Product Edit Form -->

Now go to the very end of the template. Approx line 208 after </form> add this:

} else {
echo '<p> WAIT!  Before you can add products, you need to enter your paypal email address, so you can receive the funds from your sales. Please <a href="/pro-dashboard/settings/"> VISIT YOUR STORE DASHBOARD SETTINGS </a> and click the PAYMENTS tab.</p>';

Check that the URL in the error message there is accurate for your website’s pro dashboard > settings page.

This website uses cookies to ensure you get the best experience on our website.