Developer forum

Forum » Swift » Single Page checkout

Single Page checkout

Justin Sjouw Dynamicweb Employee
Justin Sjouw
Reply

Hi,

For a B2B customer that has a the wish for a very simple checkout page I have modified the Swift\eCom7\CartV2\Step\PaymentUser.cshtml template to also include address and delivery selection.

This seems to work, except I had to create a workaround for getting the delivery Address onto the order.

The @RenderAddressUser() wil render the addresses correctly, and also pre-select the delivery addres that is set as default. However I need to trigger useUserAddress() in javascript to apply the address, otherwise the order gets completed with the invoice address.

Is there a better way to handle this and already apply the delivery address to the order?

Thanks,

Justin


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

There are no better ways. 

 

You must be logged in to post in the forum