We have inventory and some non-inventory (cannot b...
# suitecommerce
v
We have inventory and some non-inventory (cannot be fulfilled) items in our webstore. The customers can either checkout using only inventory items, only non-inventory items, or a combination of both. There is a setting in the website setup "Shipping info is required". We want to keep this on since the customers should be able to set shipping method and address when buying inventory items. But, when this is on, customers cannot checkout using only non-inventory items (it throws an error: "Shipping info is incomplete"). How should we resolve this issue?
m
I just tested out with only a non-inventory item and it asked me for Shipping and Billing address. The Sales Order was placed successfully without any hassle.
v
Our non-inventory items are not marked as "Can be fulfilled/received". Maybe that's the reason it doesn't ask the shipping info for us.
m
Let me verify this on the item I just tested.
Yes it was checked on that item.
With that option unchecked, the
Shipping address is incomplete
message appears on the Checkout -> Review step.
v
@Mohammad Sharaf Ali Exactly, that's the problem.
Can anyone help me with this? It seems I'm stuck trying to find a way around this.
m
I believe you will need to use the checkout component events plus commerce api for the purpose. E.g. Add checkout event before review step and update the billing address using the commerce api.
v
@Mohammad Sharaf Ali Thanks for the suggestion, I will try that.
@Mohammad Sharaf Ali Can you help me figure out which event should I target from the Checkout module? I cannot figure out how to do that.
m
Then simply use
LiveOrderMode.getInstance().setAddress(address_type, address_id, options, save);