|Josh||# Posted on May 15, 2018 at 1:31 pm|
You can add the following code to a site specific plugin:
and that will clear the radio button that’s selected after adding to the cart, and avoid the error you saw.
Here’s a link to the documentation on how to add a site specific plugin:
The reason we recommend the site specific plugin instead of adding code directly in the functions.php of your theme is because this way you’ll keep better track of where your customizations are. This avoids having to go hunting for them later when they need to be updated.