I’m working on the ordering component of my app at the moment and seem to be hitting a road block, which usually means I’m thinking too much like a programmer. The ordering system needs to support Bank transfers, Credit cards (stripe, the easy bit), Purchase Orders. I’ve got all the data types setup and working if I manually create each.
I have a list of courses in a repeating group that can have multiple seats purchased at a time. This is selected with an input field for the quantity. I’m using RG Data + RG Extractor to update the UI with all the correct information and this is all working.
My issue is how do I get that information from the RG with the quantities, so I can use them in the workflow to create the order, order items, etc? If they choose to select 0 from a courses’ quantity, then I want to filter that out of the list.
From all the tutorials and I find related to ecommerce functionality, all of them seem to require to add each line item to a cart data type and then create the order. Am I missing something? Would using custom state fix this issue?
Can someone point me in the right direction, I would prefer not having to create a cart for the one page checkout flow I have currently.