cancel
Showing results for 
Search instead for 
Did you mean: 

B2B order form flow

Former Member
0 Kudos

Hi,

In B2B can some one explain how form.getCartEntries() is getting the values in "/cart/addGrid" in the add tocartcontroller. Where actually the form.setcatentries() is used.I am trying to add multiple products to ct once. I understood that the on change of qty in the Grid, the functions from focusin, focusout were invoked to enable or disable the Add to cart button from acc.productorderform.js.I saw this toJSON: function(gridForm, skipZeroQuantity) {}, which is responsible for having the values in cartEntries but not able to understand the complete flow.I have multiple text boxes for productId and qty. with the code available for orderform ,guide me how can I retrieve form.getCartEntries() values in my custom controller.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

This is handled by the spring framework for you.

Read through this and it becomes clear: http://viralpatel.net/blogs/spring-3-mvc-handling-forms/