开发者

Validation when "adding products" in the admin

I'm sure this is simple, but haven't been able to find an answer. I have several custom att开发者_运维问答ributes on on a Simple product in magento and I need to validate that if one option is set, the other is required.

Example if they choose "shirt" from a drop down they must fill in the size.

Thanks, Blake


If you want further options to be dependent on previous selections, you really need to make this as a configurable product.

For example if you have T Shirts in Blue, Red & Green. There are only Medium & Large sizes in Blue.

When the user chooses the size blue, the next dropdown will be enabled and only the sizes Medium and Large will be available.

It sounds like you need a similar solution.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜