Post by xsaintzx » Sat May 24, 2014 2:44 pm

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.

New member

Posts

Joined
Wed Apr 14, 2010 10:48 pm

Post by andrei.bogdan » Sat May 24, 2014 6:43 pm

I can help you with a module for this. JavaScript validation needs to be altered, from the template file.

Andrew

Andrei
andrei.opencart[at]yahoo.com
Themes and Extensions


Active Member

Posts

Joined
Mon Mar 25, 2013 4:52 am

Post by Xyph3r » Sat May 24, 2014 7:26 pm

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.

ImageImageImage
Opencart Templates, Modules, Themes & Custom Development | ShopThemer


User avatar
Active Member

Posts

Joined
Sun Feb 10, 2013 1:08 am


Post by Xyph3r » Sat May 24, 2014 7:33 pm

And here's the Product SEO Keyword Required xml

ImageImageImage
Opencart Templates, Modules, Themes & Custom Development | ShopThemer


User avatar
Active Member

Posts

Joined
Sun Feb 10, 2013 1:08 am


Post by xsaintzx » Mon Jun 09, 2014 3:03 pm

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!

New member

Posts

Joined
Wed Apr 14, 2010 10:48 pm
Who is online

Users browsing this forum: No registered users and 40 guests