Jump to content

Add-on option on domain ordering enabled


yggdrasil

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated