The join-mailing-list shortcode adds a sign-up form to your website. People who sign up are added to your mailing list in WithWine.
Add the form
Add this shortcode to any page, for example your footer or a "Join our mailing list" page:
[withwine type='join-mailing-list' /]
Visitors who aren't logged in see a form with first name, last name and email. Logged-in customers see a Join Mailing List button. Customers already on the mailing list see a message saying so.
Choose the fields
Turn each field on with _enabled='true' and make it required with _required='true':
First name:
data_firstname_enabled,data_firstname_requiredLast name:
data_lastname_enabled,data_lastname_requiredPhone:
data_phone_enabled,data_phone_requiredCountry:
data_country_enabled,data_country_required. Set the default withdata_country_defaultvalue='AU'.State:
data_state_enabled,data_state_required. Needs the country field on, or a default country.Postcode:
data_postcode_enabled,data_postcode_required
Change a field's placeholder text with _placeholder, for example data_phone_placeholder='Mobile number'.
Change the button and confirmation message
data_mailinglistbutton='Sign me up'changes the button text.data_mailinglistconfirmation='Thanks! Keep an eye on your inbox.'changes the message shown after signing up.
Add a terms tick box
data_termsandconditions_content='I agree to receive emails from Saltbush Estate'adds a tick box above the button.data_termsandconditions_required='true'makes the tick box required.
Tag everyone who signs up
Add data_conversiontag='Website signup' to add a customer tag to everyone who signs up through this form. You can then find these customers on the Customers screen.
The tag must be listed in WithWine under Settings > Website in Allowed Customer Tags via Public API. If it isn't, the tag isn't added.
Ask preference questions
You can ask sign-ups what they're interested in, and add their answers as customer tags. For example:
[withwine type='join-mailing-list' data_preferences_taggroups='Favourite varieties||Wine or cider?' data_preferences_tags='shiraz|riesling||wine|cider' data_preferences_taglabels='Shiraz|Riesling||Wine|Cider' data_preferences_taggrouptypes='Checkbox||Radio' /]
||separates groups of questions.|separates the options within a group.data_preferences_taggrouptypescan be Checkbox (tick any), Radio or Select (choose one).data_preferences_tagdefaults='shiraz'ticks options by default.Every tag must be listed in Allowed Customer Tags via Public API.
Example
[withwine type='join-mailing-list' data_firstname_enabled='true' data_firstname_required='true' data_lastname_enabled='true' data_mailinglistbutton='Join the list' data_mailinglistconfirmation='Welcome! Watch your inbox for our next release.' data_conversiontag='Website signup' /]
Troubleshooting
Tags aren't being added: check each tag is listed exactly in Allowed Customer Tags via Public API in WithWine's Settings > Website.
