Developer forum

Forum » Ecommerce - Standard features » Address validation not fired when submitting to same step

Address validation not fired when submitting to same step

Mario Santos Dynamicweb Employee
Mario Santos
Reply

Hi there,

I was struggeling with an odd behavior when trying to validate the order addresses on checkout steps.
After some debugging I realized that it is only happening when the form is submited to the same cart step.

Found the reason why is happening on file Dynamicweb.Ecommerce\Cart\Frontend.vb:
159: 'If next and prev steps are the same, we have a postback to the same step to update payment, shipping etc. 
160: If nextStepIndex <> previousStepIndex Then

The next and previous steps check makes total sense if we are only updating payment and shipping, and also reduce the calls to the validators.
Although, would be good if it could still validate when addresses change. Or maybe a cartcmd to force the order validation?

Thanks,
BR, Mario


Replies

 
Nicolai Pedersen
Reply

Hi Mario

Or, you could just go to step next using the same template...

BR Nicolai

 
Mario Santos Dynamicweb Employee
Mario Santos
Reply

Hi Nicolai,

Is it possible to change the template on the request like for product catalog app (view parameter) or your suggestion is to have an actual duplicated step with the same template?
Just trying to see the possibilities... 

Thanks,
BR, Mario

 
Mario Santos Dynamicweb Employee
Mario Santos
Reply

bump, any wise thoughts? :-) 

 
Nicolai Pedersen
Reply

Nope...

 

You must be logged in to post in the forum