Skip Navigation

[Resolved] Create Offers and responses

This support ticket is created 6 years, 10 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/Hong_Kong (GMT+08:00)

Author
Posts
#604119

Is this possible to create some kind of offers from fronend (like calssieifieds) which would be directed to specific user group and make some kind of tickets (ex using custom commets) or some related posts, so one side could answer the other and the other way round - like support ticketing but with custom fields?

#604242

Dear Kasper,

Please elaborate the questions with more details?
What kind of "offers" do you need? is it a custom post type?
How and where do you want it to be directed?
How do you setup the "specific user group"?

I need more details to test it, thanks

#604291

So i want to create some king of classified (custom post type) a example user belonging to one group can add classiefied to given category1.
Fees will be based on category1 access and for example number of classifieds in this category.

Then "different" user group will see this classified - the same they have given access to for example that category1 but they can not change this classified but only add some kind of comment which will notify again the user who created the classified that he has new comment (offer)

Live example:

user one sells product so he gives ad with product price and description another user which is looking for that product comments that he will buy it for a smaller amount of money - some kind of quote system with notifications and i would add custom php code to make for example "final quote and no more commments possible"

#604613

I assume the "offers" is a custom post type, if it is, you can setup it with Types plugin:
https://toolset.com/documentation/user-guides/create-a-custom-post-type/

And if each products can have multiple "offer" posts, then you can also setup it as a child post type of "product":
https://toolset.com/documentation/user-guides/creating-post-type-relationships/

And you can setup a CRED form for creating the "offers" posts:
https://toolset.com/documentation/user-guides/creating-cred-forms/

When user submit the CRED form you can send the email notifications:
https://toolset.com/documentation/user-guides/automated-email-notifications-with-cred/

If you need custom PHP codes to achieve the "final quote and no more commments possible", I suggest you try with CRED action hook "cred_save_data"
https://toolset.com/documentation/programmer-reference/cred-api/#cred_save_data

When user submit the CRED form for creating "offer" post, use action hook "cred_save_data" to trigger a PHP function, in this PHP function, check if the "offer" post satisfies condition, then update it as a final "offers" post, you might need to update it's parent "Product" to "no more commments"