Skip to Content
1
Former Member
Jun 25, 2015 at 03:54 PM

B2B order form flow

195 Views

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.