Does anyone know if/how we can use addToViewContex...
# suitecommerce
m
Does anyone know if/how we can use addToViewContextDefinition data-root-component-id="Wizard.View" ? WHat would be the view_id? I am trying to modify the context in order_wizard_shipmethod_module.tpl. Thanks
s
What exactly are you trying to do? Checkout modules don't behave like other views, and have other ways of adding customisations to them
m
Hi Steve thanks so much. I am trying to adjust the shipping options based on a config that we set up. In the order_wizard_shipmethod_module.tpl we have a shippingMethods property that i want to modify accordingly
s
OK, I am nervous about offering advice on that because that doesn't sound like a particularly robust way of doing things. With that said,
addToViewContextDefinition()
works on the module name, not the rendered view ID, so it sounds like you should be targeting something like
OrderWizard.Module.Shipmethod
m
ok i see Ill try taht out thanks a ton!
I think that will do it thanks again!
s
netsuite halo