Skip Navigation

[Closed] Use custom fields from referal URL

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)

This topic contains 3 replies, has 2 voices.

Last updated by Luo Yang 1 year, 9 months ago.

Assisted by: Luo Yang.

Author
Posts
#2562917
Frame 2834.jpg

I have a CPT "Tours" for my travel agency site. In the home page I have a filterable view of all ther tours, if you click one of them you can see the tour details, i.e. hidden link. At the bottom of every tour, the tour template shows the price and a button, "Estoy interesado / I'm interested". I need to make a new template page that, when a user clicks on the "I'm interested" button shows the tour info (name, price, duration, etc) plus a form where the user give us some info about the number and age of passengers, prefered departure date and personal data. How can I can do that? I have attached a figma mockup of the form once clicked the button.

I tried to search in the toolset support tickets database but I couldn't find anything similar.

hidden link

#2563533

Hello,

In my opinion, you can try these:
1) add a child post type, for example "Im-interested", add custom fields: age of passengers, prefered departure date and personal data
2) Setup one-to-many relationship between post types "tour" and "Im-interested"
3) In the single "Im-interested" post, display a child post form link for creating new "Im-interested" post:
https://toolset.com/course-lesson/selecting-parent-posts-when-using-forms-to-create-child-items/

#2564795

Thank you Luo, I'll try to make an implementation of what you're proposing. Please leave this ticket open, I'm pretty sure I will need assistance over this later...

#2564983

OK, I have marked this thread as "Waiting for feedback" status, you can update here if still need assistance.

The topic ‘[Closed] Use custom fields from referal URL’ is closed to new replies.