• Rune Rasmussen

    (@syntaxerrorno)


    We have activated the Opt-in Checkbox on the WooCommerce Checkout Page, and it works nicely for most payment options.

    But then there are some payment plugins like Klarna Checkout and Svea Checkout who is replacing the order/payment section with their integrated checkout, and since the Opt-in Checkbox is added to the order/payment section it’s not displaying for those.

    Thus I’m wondering if it would be possible to move it (even having a setting for where to display it), so it could be moved to display t.ex. bellow the email field, or together with the checkboxes for ‘Create an account?’ and ‘Ship to a different address?’?

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter Rune Rasmussen

    (@syntaxerrorno)

    Just as an example, MailChimp have this nice and easy setting for changing the placement:

    https://snipboard.io/FgXmdQ.jpg

    Plugin Support Sean O))) a11n

    (@seanomattic)

    Hey @syntaxerrorno,

    Great question! You can customize the placement of a form on your checkout page using Blocks, please see the steps here.

    Unfortunately, this doesn’t change the position of the opt-in you are referring to. At this time MailPoet doesn’t have the type of code you are referring to.

    I do agree this is a good idea, if you’d like to submit a feature request hopefully we’ll see this in a future update.

    Hope this helps!

    Thread Starter Rune Rasmussen

    (@syntaxerrorno)

    Sorry to see we have to create or link accounts to yet another site just to submit a feature request.

    But, since you agree it’s a good idea I suggest you just add it there for us all.

    tiagosartor3

    (@tiagosartor3)

    Hello, we also would like to change the placement of the opt-in checkbox in the checkout. Can you provide us with a filter so that we can change its position with a woocommerce hook?

    Plugin Support Daniyal Ahmed (a11n)

    (@daniyalahmedk)

    Hi there,

    Thanks for getting back to us.

    We manage feedback and feature requests for MailPoet via Canny. You can always create an account there and submit your feature request: https://feedback.mailpoet.com/.

    I just created this feature request for you, so you can upvote or add any additional thoughts there:

    https://feedback.mailpoet.com/feature-requests/p/placement-of-opt-in-checkbox-on-the-woocommerce-checkout-page

    @tiagosartor3 Per the forum rules, please create your own thread, share the site URL, and let us know where exactly you would like to move the checkbox.

    Best regards,

    Thread Starter Rune Rasmussen

    (@syntaxerrorno)

    Okay, meanwhile, do you have a action hook we could override in a code snippet?

    Plugin Support Saravanan S, a11n

    (@simplysaru)

    Hey @syntaxerrorno,
    MailPoet’s list of filters and hooks are documented here.
    I’m not a developer, so I can’t point to the exact (hook/code) one you need.
    I hope the document helps you.

    Thanks for your patience & understanding.

    Thread Starter Rune Rasmussen

    (@syntaxerrorno)

    Thanks,

    I only see a list of functions though, no real documentation, and sadly I can’t locate any function(s) related to opt-in from it.

    It would be awesome if the need for this actually reached the developers, which I’m sure will agree to it being both important and an easy fix, and I’m sure you also have some way to escalate things to second line if you’re unsure about things.

    Plugin Support Feten L. a11n

    (@fetenlakhal)

    Hi there!

    Thank you for your answer.

    Can you please check this link: https://github.com/mailpoet/mailpoet/blob/trunk/mailpoet/lib/Config/Hooks.php#L137?

    I hope this helps and let us know if you’ll have any further questions!

    Thread Starter Rune Rasmussen

    (@syntaxerrorno)

    Well, for anyone else looking for it, it seems to be the setupWooCommerceSubscriptionEvents function who’s using the action hook woocommerce_checkout_before_terms_and_conditions – which also means it’s just loaded when woocommerce_checkout_show_terms filter is true.

    https://github.com/mailpoet/mailpoet/blob/trunk/mailpoet/lib/Config/Hooks.php#L263

    https://github.com/woocommerce/woocommerce/blob/trunk/plugins/woocommerce/templates/checkout/terms.php#L12

    And as I see it we can’t override this easily, so we just have to cross our fingers that some decision makers behind MailPoet sees the need for user to be able to override the placement of the opt-in.

    Plugin Support Lynn J.a11n

    (@lynnjat7)

    Hi @syntaxerrorno,

    Thanks very much for sticking with this and for doing that research for us.

    Having read through this, I do feel like this might fall more into the category of a bug than a feature request. It means that depending on your payment gateway, there’s a chance the opt-in checkbox will not be accessible at all on the checkout page, and I think as this can happen with a variety of payment options, it’s on the MailPoet side to change this.

    I’ve raised a bug report with our development team on this issue for tracking and so they can evaluate this request and determine it’s priority. There’s no fixed ETA at this time but I wanted to let you know that your work here is preserved now in our system and hopefully this issue will receive higher priority than other feature requests.

    I’d recommend continuing to watch the release notes for updates as our repository is not public at this time (although we are working on that).

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Placement of Opt-in Checkbox on the WooCommerce Checkout Page’ is closed to new replies.