yggdrasil Posted May 2, 2021 Share Posted May 2, 2021 Is there a simple way to have a domain add-on like Privacy Protection for example enabled by default in the shopping cart? Setting the field option as checked does not seem to work since it uses JavaScript to enable or disable the options in the cart on the fly. If you modify the template code to have the checkbox enabled by default it will not show in the shopping cart. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted May 3, 2021 Share Posted May 3, 2021 16 hours ago, yggdrasil said: Is there a simple way to have a domain add-on like Privacy Protection for example enabled by default in the shopping cart? using a hook ? 16 hours ago, yggdrasil said: Setting the field option as checked does not seem to work since it uses JavaScript to enable or disable the options in the cart on the fly. If you modify the template code to have the checkbox enabled by default it will not show in the shopping cart. enabling the checkbox (as a hook or even in the template itself) AND pressing continue on the order process should add it to the cart (in v7 or 8 with default templates)... enabling the checkbox on its own wouldn't add it to the cart. I suppose you could modify the cart session to enable it that way, but that seems overkill to me unless you're seeing something that i'm not... or you literally want to add it without giving the user the option to remove it. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.