How do you set the shipping address to the order or shipping group?
We use the ShippingGroup droplet to display all the available shipping addresses. The ShippingGroupDroplet will get the available addresses from the Profile's shipingAddress and secondaryAddresses properties.Then the user will select the shippingAddress from the list. Then the selected address will be set the current shipping group by calling the handleApplyShippingGroups method of ShippingGroupFormHandler.
We can create a shipping group manually by using the ShippingGroupManager.createShippingGroup by passing the address. After that we call ShippingGroupManager.addShippingGroupToOrder method.The user will also select the shipping method and set to the shipping group such as Next Day , Two Day or Ground. We will use AvailableShippingMethods droplet which fetches all the shipping method names from the Shipping calculators. Each Shipping Calculator has a property called shippingMethod.
We use the ShippingGroup droplet to display all the available shipping addresses. The ShippingGroupDroplet will get the available addresses from the Profile's shipingAddress and secondaryAddresses properties.Then the user will select the shippingAddress from the list. Then the selected address will be set the current shipping group by calling the handleApplyShippingGroups method of ShippingGroupFormHandler.
We can create a shipping group manually by using the ShippingGroupManager.createShippingGroup by passing the address. After that we call ShippingGroupManager.addShippingGroupToOrder method.The user will also select the shipping method and set to the shipping group such as Next Day , Two Day or Ground. We will use AvailableShippingMethods droplet which fetches all the shipping method names from the Shipping calculators. Each Shipping Calculator has a property called shippingMethod.
No comments:
Post a Comment