Hello, I have customized the checkout and success...
# suitecommerce
s
Hello, I have customized the checkout and successfully added a line using the cart component. However, the view seems frozen now. I am unable to go to the Review section when I clicked on the Continue button.
k
Have you added a module to the step, or what context is your code executing?
s
@Kearobi yes I have added a module to the step
@Kearobi I am able to continue if I refresh the page. I am thinking to re-render the parent or main-view but I just don't know the code and not sure if it will work.
k
@suiteExperimenter, so your custom module that was added as a step. Try this.. Add 'Wizard.Module' as a dependency. The view needs to extend WizardModule, as opposed to Backbone.View. Also, in your initialize add this reference.
Copy code
WizardModule.prototype.initialize.apply(this, arguments);
s
@Kearobi thank you! I will try this
k
nice let me know
s
Hi @Kearobi I reviewed my code. I was actually added the Wizard.Module as a dependency. I was actually extending it already just like the sample in https://developers.suitecommerce.com/add-a-new-module-to-the-checkout-with-the-extensibility-api.html. I also tried reverting it to Backbone.View.Extend and added an initialize and pasted your code there. I am still unable to continue and got a console error: jQuery.Deferred exception: e.isActive is not a function TypeError: e.isActive is not a function
k
did you add the code to your initialize while extending WizardModule?
s
oh! I think that worked! Thanks so much! I tried to console log your code but I see nothing. Can you tell me a bit more about it so I have a better understanding so I can maybe do the same in other possible scenarios? Or maybe point me to a documentation that I can read. I am a bit frustrated understanding some SCA concepts.
k
I don't think that snippet is documented anywhere. If you look at the OrderWizard in core code, a lot of the views that have that reference. If you search the OrderWizard module for 'WizardModule.prototype.initialize', there's a lot of examples what this does.
s
I see. Thanks! I'll download the core and check there as well.
👍 1