You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
UPDATE: I saw now that I only need to call it in fetch('/api/newsletter/subscribe')
but I only have the email field, so how can I add the other fields like firstName and lastName so that they will be included in the post data to MailChimp?
the composable is auto imported (with TS) so it should be accessible for you anywhere. You can also just call the endpoint newsletter subscribe from you app instead of using the composable.
You also dont need other things as email is the only property actually needed to be able to subscriber users to newsletter.
I did manage to successfully add a subscriber using your module but as I am being requested for a more personalised subscriber list I will need to create an API endpoint to include the other fields. Thank you, anyway!
UPDATE: I saw now that I only need to call it in fetch('/api/newsletter/subscribe')
but I only have the email field, so how can I add the other fields like firstName and lastName so that they will be included in the post data to MailChimp?
Hello, I can't find where the useNewsLetterSubscibe composable is or where to implement it in your docs.
I have completed the setup with MailChimp without the component option. I just have no idea how to actually use it.
Where is the composable coming from or how/where do I add it as it doesn't seem to be auto-imported?
I get an error when trying to submit the form because useNewsletterSubscribe is not defined.
TIA!
The text was updated successfully, but these errors were encountered: