[Resolved] Sending email to members that fit a user field when a post is created via CRED
This support ticket is created 8 years, 3 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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
Hi, I want to make a lead generation site and I would like to know if those features are possible with Toolset :
- Is it possible to make a post type visible only to a specefic user type ? I think it is with Acess.
- Is it possible that when a visitor create a new post, all the users of a specefic user type are notified via email with a link to the post ?
- Is it possible on this post to hide some custom field, and make the user pay to show the fields ?
For example, visitor will create a custom post type named "project" and they will fill a custom field name "phone-number" and the user type "contractor" will have to pay to see the phone number if he finds the project interesting by clicking on a "buy now" button that will redirect to a woocommerce checkout and than to the project with all visible fields.
Hello. Thank you for contacting the Toolset support.
- Is it possible to make a post type visible only to a specefic user type ? I think it is with Acess.
=> I think yes. you should create custom role and assign role. After you set up your Users with WordPress, you can set up each user to be a certain WordPress dealt role.
=> https://toolset.com/documentation/user-guides/managing-wordpress-admin-capabilities-access/
- Is it possible that when a visitor create a new post, all the users of a specefic user type are notified via email with a link to the post ?
=> To send notification to specific user types, I think you should use CRED filter "cred_notification_recipients". You should just write code that fetch the email ids of all users and then add it to recipients list.
However, to fulfill all requirements of your project, this may need custom programming with your project. Please feel free to contact our certified partners: https://toolset.com/consultant/
Is it possible to display a list of items bought by the current user. If so, I think 'ill be able to make my project.
I would need to create a single view for a woocommerce product that do not display the secret fields.
Than, on a separate page, I would need to querry all the woocommerce products bought by the current logged in user in a list with a content template that display the secret fields.
All I need is a way to query only the products that have been purchased by the user.
Now, I only need to modify this shortcode to display a view template instead of WooCommerce default template.
I know that I'll have to change this line : woocommerce_get_template_part( 'content', 'product' );
to display instead a custom view that I'll create with Views, but I'm not sure how.
Sorry - but this is a custom code and as per our support policy we do not support custom programming as it's beyond the scope of our support policy.
=> https://toolset.com/toolset-support-policy/
But - if you need custom programming for your site, please feel free to contact our certified partners.
=> https://toolset.com/consultant/
Thank you for understanding.
This ticket is now closed. If you're a Toolset client and need related help, please open a new support ticket.