I know this topic has been covered in different threads but I can’t seem to find one with a solution that works for what I’m trying to do so I apologize if I’m inadvertently beating the proverbial dead horse.
As the title states, I need help pulling correct quantity data from a repeating group.
I’m brand new to making apps so please excuse my ignorance if the solution is painfully simple.
So far, I’ve been able to use custom states to pull data from a repeating group and put it into another. However, I can’t seem to put one quantity into one cell. I have a Modifier Option RG where users can choose what and how many of each MO. They then hit a Confirm button in each cell which triggers the custom state that adds those choices to another repeating group that is set up so users can see their choices before adding everything to the cart. I can pull everything into this RG from the MO RG except for the correct quantity. When a user selects the quantity from two or more Modifier Options, the quantity from each choice is displayed in each cell of the “display” RG. Meaning, if someone selects a quantity of 3 for one MO and 6 for another, it shows as "3,6’ in each cell of the “display” group. Unfortunately, I haven’t been able to figure out how to pull all the data with one custom state so I have one for the data and another for the quantity.
here’s a screenshot of what I’m working with
And here’s one of the RG I’m pulling data from
Additionally, I want the quantity and price data to be reflected in the specific “product” RG so when “add to cart” is clicked, it sends everything to the cart and resets the data in case the customer wants to order another of the same product but with different modifications. So far, I can send everything except quantities to the cart and I can reset the data by having “refresh the page” in the “add to cart” WF since I’m using custom states.
The pricing of the modifier options is just for testing but as many of us know, business sometimes charge extra depending on the quantity of modifier options added like extra salad dressing and whatnot
You might ask, " But CheddaBrat, why are you making it so convoluted and not using option sets?"
Good question. The answer is, this will be a website for my community that’s like *ber Eats but for any business that sells products and not just food. As such, the menus need to be customizable by the business and they need to have the ability to set menus, products, modifiers, and modifier options and not just products with no ability to adjust the available options for those products. The only option sets I’m using are Categories and Sub-Categories for searching out businesses based on these two categories. The rest needs to be done by the business.
I’m sure the answer is plain as day but I can’t for the life of me figure out what it is. I’ve tried using the Orchestra plugin, I’ve tried sending the data to a group outside the RG then referencing the data in that group, I’ve tried setting custom states on just the input element which displays the quantity within each cell of the MO RG. I’m at a loss.
Thank you to anyone who can lend a helping hand getting this figured out. Especially since I’ve been working on this every day for about two months now and have almost reached the end.
And Lastly,