I have an issue when I order/add to card on one catalog service item . In fact, I am using a custom 'Catalog Client Script' on the onSubmit action to control if the customer added or not a attachment. Please find below my client script:
The error when I order/add to card:
I already targeted the cause, it's when I check the 'Applies on a Catalog Item view' (second image), but i need this to trigger the order and execute my script.
Do you know how to solve this?
Thank you.