Hi there,
I’m glad you like it.
Can you explain a little better of what you need? perhaps an example somewhere.
Thread Starter
Suiram
(@suiram)
Hi,
Yes of course, I’ll explain what I’d like to do:
I’m developing a restaurant web, I have included a plugin to show the different menus available.
Additionally to show those menus, I want to include a budget option, so I need to query the existing custom type posts, and output them grouped by categories, adding a textbox for every dish to input the quantity (as at the moment there’s no a better option).
This is the basic idea.
It’s like a cart without needing an ecommerce install, that’s why I told you that perhaps It’d be better to use an ecommerce plugin, but
I’ll need several options (checkboxes) that are “per person” price, instead of dishes (I cannot achieve this functionallity through ecommerce plugin, which would need to introduce the customer quantity for every option).
As well as multipage with questions to the customer, which neither can be done through ecommerce plugin.
That’s why I think your plugin would be a better option.
I can make any query needed through WP_Query, but I don’t know how to use that information, to present the form I need.
So, the point is: make a template to create a form programmatically.
Thank you in advance!
Are you wanting to have all “search results” on a single page with the QTY input next to them?
Thread Starter
Suiram
(@suiram)
Yep π
You could explain it that way.
At least that’s what I need, grouped by categories.
ok. when a user sets a qty, is the form submitted? or added to a kind of “cart” with multiple items to submit later?
Thread Starter
Suiram
(@suiram)
Just remains there, and he can change it.
The submit button only email it to the customer, and to the restaurant.
It could be more complicated or more beatyfull… as the selected dished could go to the top of the form (with java??) but the basic functionality is to create a budget, and perhaps request a time of the day to pick it up at the restaurant (registered users).
One “advanced” feature would be the quantity textbox, to input numbers with a “+” and “-” buttons, to increase/decrease quantity.
But I need to implement the basic; if it’s not possible to do it, I’ll keep looking for other ways to do it.
Thanks again! π
It’s a bit tricky to do.
You’ll need to write a function to add the form to every post of a type.
Then use a magic tag like {embed_post:ID} to capture the post id.
While it’s doable, I think you’re right in that you may need something more geared to listing products as you mentioned.
Thread Starter
Suiram
(@suiram)
thanks for your reply! π