Skip Navigation

[Resolved] Send restaurant menu by email for next week

This support ticket is created 4 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 6 replies, has 2 voices.

Last updated by Waqar 4 years, 5 months ago.

Assisted by: Waqar.

Author
Posts
#1988675

Hi

Currently i have a projekt where i want to show the menu for a restaurant on the website. I have created it with types and views. Yes i still use views instead of blocks because i don´t like the Gutenberg editor.

To the restaurant menu i also need a way for the users who visits the website to subscribe to the menu so they get the menu for the next week every sunday afternoon.

Can this be done with toolset?

#1988759

Hi,

Thank you for contacting us and I'd be happy to assist.

Since there is no built-in feature available for subscribers and periodic newsletter management, you'll need to add a lot of complex customizations, if you'll try to build this using Toolset only.

There are a number of third-party newsletter plugins available, which can make this process, simpler for you.

Here are few articles which review some of the popular options:
hidden link
hidden link

regards,
Waqar

#1988829

Hi

Thank you for your answer.

I have tested two plugin "Newsletter" and "Email Subscribers & Newsletters". Both plugins seems to be able to send notifications when a post is published or updated.

The problem is that i want to send the same data by email that the visitors of the website see. It seems like i can´t use a shortcode in a wordpress notification email.

So my question is if the only solution is to add a link to the website instead of getting all data directly to the inbox.

#1990235

Hi

For my needs Mailpoet is the best solution. But the problem is that i can´t embed a shortcode in a newsletter mail. It just displays the shortcode instead of the content of the shortcode.

I found this topic, but it didn't helped me. The problem is still the same.
https://toolset.com/forums/topic/question-about-sending-views-output-to-newsletter-subscribers/

I also found that i can create a custom shortcode and that worked if i only display text.
hidden link

Can i send content of a shortcode in a newsletter email? That is what i want to do instead of sending a link to the website.

#1990257

Thanks for the update.

Toolset offers a number of shortcodes and Types Fields API, which can be used in your custom shortcode for the Mailpoet:
https://toolset.com/documentation/programmer-reference/views/views-shortcodes/
https://toolset.com/documentation/customizing-sites-using-php/functions/

From that guide ( ref: hidden link ), it seems that shortcodes can be used in the Mailpoet newsletter, however, they are processed differently than WordPress. You'll have to run each shortcode through the "mailpoet_newsletter_shortcode" filter.

You can try creating a custom shortcode, as shown in that guide, and call Toolset data using those shortcodes and Types API functions.

Tip: To get the output of the shortcodes in the PHP code, you can use "do_shortcode":
https://developer.wordpress.org/reference/functions/do_shortcode/

For more personalized assistance around custom code, you can also consider hiring a professional from our list of recommended contractors:
https://toolset.com/contractors/

#1991909

Thank you.

Hopefully this will work.

#1991989

You're very welcome and please let me know if you have any follow-up questions.

For a new question or concern, please start a new ticket.