Guidance on Variety Pack Solution

Hello Wix Community,

I am woking on a custom solution to allow a customer select any three items for a 15% off. I have two limiting factors that’s preventing from fully implementing.

  1. First approach is to allow the customer select three items and apply a 15% discount at checkout, but I can’t programmatically apply the discount for the customer, at least I haven’t found a way.

  2. Second approach is to allow customer to select three items and then programmatically create a new product with the 15% discount already factored. This is working perfectly fine, except I am running into a permissions issue. The site visitors don’t have the access to create a new product, even though I am extending the backend modules.

Any thoughts on my approaches? Or if anyone has a recommended solution?

Thanks in advanced