Developer forum

Forum » Swift » Validation for delivery address always triggers.

Validation for delivery address always triggers.

Smári Alfreðsson
Reply

I have two validation groups setup on my website, both for Billing and Delivery.

When a user is in the checkout flow and has filled out the billing address fields and goes to "Shipping methods", there are two radio buttons that ask the user if he wants to use delivery address as the billing address or not. However, the validation for the delivery address fields triggers even though the user selects "Use same delivery address as billing address". Is there any way to control the validation so it only triggers when the users selects that he wants to have another delivery address?

To me it feels like that the intended behaviour is that the billing address fields will pick up the fields from delivery address if he wants to use the same address but I suspect that behind the scenes, the billing address fields are always empty no matter what the radio option is set to.


Replies

 
Arnór Halldórsson
Arnór Halldórsson
Reply

Hi Dynamicweb bros,

What Smári is getting at is that it seems that this flag (Use billing address as delivery address):

Is not moving the customer address info into the EcomOrderDelivery[...] fields :) They´re always empty. So when the form is submitted we get the validation error, we need the validation for the other option where the customer inputs his own delivery address info.

Best regards,
Arnór

 
Kristian Kirkholt Dynamicweb Employee
Kristian Kirkholt
Reply

Hi Arnór 

How is the Shopping Cart App setup ? Do you set Apply user details to order ?
Also check the settings in Advance Configuration for the Shopping Cart?

Please create a Care ticket on this issue if it is still a problem
We would like to see the website, version and setup.

https://care.dynamicweb.com/

Kind Regards
Dynamicweb Care Support
Kristian Kirkholt

 

 

 
Arnór Halldórsson
Arnór Halldórsson
Reply

Hi Kristian,

Thank you for the reply, I´ve created a care ticket: [#16992] Delivery address not being set as billing address : Dynamicweb

Best regards,
Arnór

 

You must be logged in to post in the forum