How do I use a custom checkout field (checkbox) as the condition for a function?

I am hoping to follow the instructions here: Wix Functions: Adding Additional Fees at Checkout | Help Center | Wix.com to add a fee to the cart when a custom added checkbox is checked (so customers can opt-in to an additional fee). The property selector for the the criteria do not include the custom field I added–any ideas for a non-coder?

Thanks!

It would be great if Wix made it easier to link custom checkout fields directly with backend functions like additional fees. For now, you might need to handle it through a bit of custom code or an automation workaround. Hopefully Wix adds a built-in option for this soon it’s a really practical feature request!

Any idea what automation workaround I should use?

You can try using Wix Automations with a condition based on form submissions or a checkbox field value for example, when the checkbox is checked, you can trigger a specific action like sending data to a backend function or applying a tag that links to a pricing rule.

If you need more control (like calculating additional fees), you can combine Automations with a little Velo custom code to detect the checkbox state and trigger the logic you want. It’s a bit of a workaround, but it works until Wix gives us a direct link between checkout fields and backend functions.

Shared this feedback with the team, and it’s something they’re exploring - but no ETA for it.

As @jeffreyreed mentioned, it might require using the eCommerce Additional Fees Service plugin - Ecom Additional Fees Introduction | Velo - to achieve what you need

1 Like

Thank you! I’ll check this out.