642 users online
Register
Log in
Shopping Cart
(0)
Home
Product
Overview
Features
Store demo
Screenshots
Showcase - live shops
Copyright Notice Removal
System Requirements
Roadmap
Contribute
Team Members
License
Downloads
Download nopCommerce
Extensions
Release Notes
Support
Documentation
Forums
Partners
Recommended Hosting
Solution Partners
Become a Partner
Community sponsorship program
My Account
Contacts
Tweet
Home
/
Forums
/
General
/
Suggestions and Feedback
/
Add separate validation error message for product variant attributes
Add separate validation error message for product variant attributes
Reply
ft55555
Total Posts:
12
Karma:
90
Joined:
1/31/2012
Location:
United States
PM
Posted:
3 months ago
Quote
Right now the "Text Prompt" for an attribute shows up as both the label as well as the error message on validation.
I'd like to be able to set the text prompt so something like:
Select Dimension:
and have the validation error mesage be:
"Please select dimension."
This will require a schema change to accommodate, but it should be a pretty straightforward migration. You can add a new "RequiredErrorMessage" column to ProductVariant_ProductAttribute_Mapping table and then fill it with the value of TextPrompt column. Those that want to override the error message can do so by change the value in RequiredErrorMessage.
Better yet, maybe there can be a new table for product attribute validation that stores multiple validation criteria with their respective validation error message for each attribute.
For instance, if the attribute uses a textbox, I want to be able to add multiple validation rules:
-Can't be blank (i.e. required)
-Must be numeric
-Must be greater than zero
-Must be less than n
-etc.
For each one of these validation rules, I want to be able to set the validation error message.
1
Please
login or register
to vote for this post.
(click on this box to dismiss)