Has anyone had issues with the extensibility front...
# suitecommerce
a
Has anyone had issues with the extensibility frontend Cart class? I see via the documentation that afterSetShipMethod and afterEstimateShipping should be valid events to trigger from, however these functions never seem to get called (I have a debugger statement at the top of the function). Similar events like afterAddPromotion works fine but these others never get triggered:
Copy code
var cart = this.options.wizard.application.getComponent('Cart');
cart.on("afterEstimateShipping", function() {
    debugger;
});
k
does calling estimateShipping() method trigger the event?
Copy code
cart.estimateShipping({
	address: {
		zip: "10065",
		country: "US"
	}
});
a
Hey Keaton - when I run that function it does go into the afterEstimateShipping. What about afterSetShipMethod though? This does not fire at all when I change the ship method in checkout
k
I don’t know about the cart component ‘afterSetShip’ method. I know it’s listed in the NS docs, but it isn’t in the oracle cart component docs. You may be able to get an instance of LOM.. liveOrderModel.on(‘change: shipmethods’, function (order) {})
i
Yeah I noticed those don't work for me either. I've asked before too. I think they have to be manually called.