When I add a “discount” to the database I want to specify which products the discount is associated with.
I have created a field in discounts called “list of products” and it allows me to add multiple products to the field.
However, in the admin interface, I’ve been trying to build a repeating group and I’ve added a checkbox to the group. When I add the discount to the discounts list I want it to just add the products that have the checkbox selected. Later if I edit the discount and uncheck some of them, I need it to remove them.
So far all I have been able to do is add the entire list of products to a new discount.
It’s important to note that when someone is checking out and they have added a product, I will need to check if the product is associated with that discount.
There must be a simple way to do this, can anyone please assist?
Pictured below is where I am at with it.