Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Is there a way to Require a Product Option in E-Commerce View modes: 
User avatar
Certified Developer 9
Certified Developer 9
rweber-weblications - 1/6/2012 1:46:49 PM
   
Is there a way to Require a Product Option in E-Commerce
I wanted to know if there is a way to specify that a product option is required to checkout. Or an easy way to program that via API. Pretty standard E-Commerce functionality I think.

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 1/9/2012 7:21:13 AM
   
RE:Is there a way to Require a Product Option in E-Commerce
Hello,

I am not sure, what do you mean exactly. If you specify a product option in Kentico, you can make it mandatory by not including an "none" option. So, if you specify for example only two options (for example additional shipping):

Express 10$
Standard 5$

Then one of those options is mandatory, because it gets always included with the selected product.

Best regards,
Boris Pocatko

User avatar
Certified Developer 9
Certified Developer 9
rweber-weblications - 1/9/2012 7:31:32 AM
   
RE:Is there a way to Require a Product Option in E-Commerce
Thanks for the response. I figured that one out. What about a single text field option? Any easy coding that can be added to make that required?

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 1/9/2012 9:03:26 AM
   
RE:Is there a way to Require a Product Option in E-Commerce
Hello,

This validation needs to be implemented by yourself. You can either use some javascript checking for the client side validation, or you can implement your server side checking in the file \CMSModules\Ecommerce\Controls\ProductOptions\ProductOptionSelector.ascx which generates the project option dialogs.

Best regards,
Boris Pocatko