et-open-submissions-featured-image

How to make price & image field required in Dokan

It is very common that your vendor submit their product with a good cover image and price but sometimes, they can miss it because by default it is not required. If any vendor skip the image and price mistakenly then your website will have product without image which does not look good to a customer. Even without price, customer might purchase it without any payment.

It is possible to make these two fields required through some custom code. You might be thinking that where you will get the code. No worries! I am here to provide the code for free 😀

How to do this?

If you have a child theme installed then you can paste the below code on your child-theme’s functions.php file or you can use this plugin.

After saving the code, your vendor won’t be able to submit any product without price & image and if they try then they will get the error like below –

You can take a look in this video to get more details –

Share This Post

Related Post

0 thoughts on “How to make price & image field required in Dokan

  1. Thanks Nayem. I was wondering how can I make the Description field (not short description) required as well. Can you please advise me on this?
    Thanks in advance

  2. Thanks for this code, just a problem, it works perfectly for a simple product, but in variable product, even if I add price, the message ‘Please insert product price’ still appears.

  3. Eugenio Carrio says:
    November 30, 2020 at 3:58 pm
    Thanks for this code, just a problem, it works perfectly for a simple product, but in variable product, even if I add price, the message ‘Please insert product price’ still appears.
    I have this problem too.

  4. Hello,

    I am currently using on my site the pro version of the Dokan multi-seller plugin, but it turns out that this plugin does not have mandatory validation fields including weight and shipping class, which are related to Woocommerce . We necessarily need these fields and also the full French translation. it would be necessary to do some customization for these two fields according to the support of Dokan and they do not do it and are not able. Do you have any solutions to this problem. Could you really help me on how to customize these two fields in Dokan to have the weight and the shipping class.

    Thank you

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: