• Resolved thebonnebijouterie

    (@thebonnebijouterie)


    Hi there,

    I saw that it was possible to add an email opt-in checkbox at checkout, I was just wondering if it was also possible to do the same on the account creation page please?

    Thank you,
    Bonnie

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support omnisendsupport

    (@omnisendsupport)

    Hello Bonnie, and thank you for your interest in the Omnisend for WooCommerce plugin!

    We do not currently offer an out-of-the-box solution, unfortunately. However, achieving your goal is still possible!

    We recommend utilizing our API to push the subscription status through a custom form (specifically, your registration form on the account creation page). To accomplish this, you would need to use our API to push your new registrations to Omnisend with the relevant subscription status. You can find detailed information in our API documentation [link].

    In this case, the POST contact API call would need to be implemented. We advise seeking assistance from a developer to create a solution tailored to your store. Below, you can find an example payload in Shell script for reference:

    checkboxValue=true
    if [ "$checkboxValue" = true ]
    then
    status_value="subscribed"
    else
    status_value="nonSubscribed"
    fi
    email="[email protected]"
    firstName="John"
    lastName="Doe"
    curl --request POST \
         --url https://api.omnisend.com/v3/contacts \
         --header 'X-API-KEY: YOUR OMNISEND STORE API KEY' \
         --header 'accept: application/json' \
         --header 'content-type: application/json' \
         --data '
    {
    "identifiers": [
        {
          "type": "email",
          "channels":{
            "email":{
              "status": "'"$status_value"'"
            }
          },
          "id": "'"$email"'"
        }
      ],
      "firstName": "'"$firstName"'",
      "lastName": "'"$lastName"'"
    }
    '

    Let us know if it helps!

    Plugin Author Omnisend

    (@omnisend)

    Hello!

    Since we haven’t heard from you, we’ll resolve this thread for now. Please feel free to reopen it anytime you need!

    If you have any questions or need any assistance, do not hesitate to create another support thread, we’ll be happy to help you.

    Have a good one!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add an email opt-in checkbox at account registration’ is closed to new replies.