Page 1 of 1

Make Price field Mandatory for Admin

Posted: Sat May 24, 2014 2:44 pm
by xsaintzx
Hi,

Anyone knows how can I make the "Price" field as mandatory or "REQUIRED" when editing a product in admin?
Seems to be easily missed out sometimes as we have many fields to fill in and we don't want to end up with a free product.

Would also like to make SEO keyword the same.

Re: Make Price field Mandatory for Admin

Posted: Sat May 24, 2014 6:43 pm
by andrei.bogdan
I can help you with a module for this. JavaScript validation needs to be altered, from the template file.

Andrew

Re: Make Price field Mandatory for Admin

Posted: Sat May 24, 2014 7:26 pm
by Xyph3r
Here are 2 VQmods I've made for you.
Those will add the price to the php validation alongside model.

In the archive are 2 files.

a) "admin_price_required_and_bigger_than_zero.xml" - the price input will be required and the price value must be bigger than zero

b) "admin_price_required.xml" - the price input will be only required. You can add 0 as the price with this one.

Choose ONE of those 2 files (NOTE: Only ONE! The one that you need!) and upload it to vqmod/xml and voila. The price will be required.

Re: Make Price field Mandatory for Admin

Posted: Sat May 24, 2014 7:33 pm
by Xyph3r
And here's the Product SEO Keyword Required xml

Re: Make Price field Mandatory for Admin

Posted: Mon Jun 09, 2014 3:03 pm
by xsaintzx
Xyph3r wrote:And here's the Product SEO Keyword Required xml
Admin Product SEO Keyword Required.zip
Sorry for the late response.
Thank you a lot for these Vq Mod!
You should share at the extension page as I think it can help a lot of others too!