Hi All, How can we use Liveorder model data in vie...
# suitecommerce
g
Hi All, How can we use Liveorder model data in view in SC 20.2? Any one have any idea on that?
s
No. Use the cart component instead
g
Okay..then how to use OrderHistory Model?
s
The order history model is not available either. We have some support for order history customisation via the ability to change the configurable columns, but generally speaking no code-level changes are permitted
g
i want to get the order items based on the internalid's..then how can we acheive that?
s
Which internal IDs? You mean the internal ID of an order?
g
yes
s
Good question. I'm not sure I have a good answer. You may have to build a full service that runs in parallel to the existing one
g
Can we extend the orderhistory model ?
s
Not in an extension, no
g
okay
How to write below syntax in 20.2? this.model=LiveOrderModel.getInstance(); this.model.on('change:summary',this.ShippingBanner,this);
s
m
You can create a proxy service by extending the orderhistory model and using that from frontend instead.
g
Can we use core module as a dependency ??
s
Not in an extension, no