I'm trying to have the user provide the billing and shipping address during the checkout process. I create two OrderAddress objects (orderAddress and billingAddress). After that I add the objects to the OrderAddresses collection:
What I'm trying to achieve is that the billingAddress information will show up as the billing address in Commerce Manager and that the shippingAddress information turns up as the address for the shipment. Problem is that whatever address I add to the OrderAddresses collection first, is the one that will show up in both places. I want different information in shipping and billing and I want it to be tied to the order, not the user.
Hi Sven, could you share the code you're using to try to access the information you want to display? Maybe that will give us a better idea about what might be going wrong.
I'm trying to have the user provide the billing and shipping address during the checkout process. I create two OrderAddress objects (orderAddress and billingAddress). After that I add the objects to the OrderAddresses collection:
Then I define that I want to use the billingAddress for my Billing Address:
I also make sure that my shippingAddress is used for my shipment:
and that my billingAddress is used with my payment: