Developer forum

Forum » Ecommerce - Standard features » Shipping Method Id in Validation Groups not working

Shipping Method Id in Validation Groups not working

Mafalda Correa
Mafalda Correa
Reply

Hi,

I set up a Validation Group to make Shipping Method Id required, as I don't want to pre-select a Shipping option for the user, but I also don't want the user to be able to finish an order without selecting one.

However, I can still finish an order withou a Shipping Method selected without getting any error.

See the repro:

https://www.screencast.com/t/x3vbydZIr

Am I doing something wrong? Or is this particular validation not working? I also have Validation Groups for the Billing and Delivery fields and those are working.

Thanks


Replies

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply

Hi Mafalda,

I was able to reproduce this and have registered Bug 81535: Order field validation does not work with null values

As a workaround you can try to add a default selected "None" option to the shipping method radio button group you have in the cart template. This should trigger the validation and report an error if the field is marked as required.

Sorry about the inconvenience.

Best regards,
Morten

 

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply

Hi Mafalda,

Unfortunately we had to reject the bug I registered, since it would be too risky to change the current behavior. So you will have to use the workaround in the cart template. Let me know if you need any help with that.

Best regards,

Morten

 

You must be logged in to post in the forum