Page 1 of 1

Custom button and popup input (modal?)

Posted: Sat Mar 18, 2023 8:55 am
by craigbert

Hi All,

I have a list of items and on each row it lists the cost and quantity on hand.
I would like a button on the end of each row that a customer can click on, get a pop up asking for how many of the items they want to buy. On that pop up there would be an OK and CANCEL button.
If they click CANCEL button is clicked they go back to the item list.
If they click the OK button then it records the item and desired quantity in their shopping cart (i.e. it inserts a record into the table shopping_cart_item)

Does anyone have any idea how I might go about this or if there is an example I can look at that would point me in the right direction?

Thanks,

Craig


Re: Custom button and popup input (modal?)

Posted: Sat Mar 18, 2023 9:27 am
by mobhar

The closest approach for this is by using Multi-Update feature.