I’m trying to build a multi-vendor bilingual webiste, using different subscription level to limit number of products a vendor can have, whose product are reservations (Service X Monday 13 feb 11a.m.). Also, the website will be a One product / multi-vendor type, as the vendors will have to choose among a specific list of products.
If the vendor enters a date in a date type CF, is it possible to automatically auto-populate other custom fields as per say date-year, date-month, date-day while “extracting” data from the date CF?
Can a date type CF be dealt as a text field and so we pick up the “4 first digts” as the Year, or we need to access the configuration YY/MM/DD?
And could this be done if the case of date-year, date-month, date-day were taxonomies instead of custom fields?
Thanks,
Catherine 🙂
N.B. I have many questions that I’ve separated in different posts to make it easier to answer 🙂
What is the link to your site?
Still on planning mode, so no dev link yet.
Hello. Thank you for contacting the Toolset support.
You will require - three different taxonomy one for each Year, Month and Days and Hours if you require and add it terms accordingly to these taxonomies.
For instance:
- Years ( will include terms like 2022, 2023, and so on )
- Months ( will include terms like Jan, Feb, Mar, and so on )
- Day ( will include terms like 01 to 31st )
- Day Name ( will include terms like Sat, Sun, Mon, and so on )
- Hours ( will include terms like 01:00 - 02:00, 02:00 - 03:00, 03:00 - 04:00, and so )
I've read the tread you shared. But my question is, that within a product submission, can I set up hiden rules that auto-link the corresponding Year / Month / Day taxonomies regarding the date the vendor entered, (no time needed), or the vendor needs to manually add theses taxonomies?
Do you have product submissiuon form using Toolset post form?
If you have a custom date field on the post add/edit form - then yes based on the date value available with the custom date field we can extract the year/month/day and based on that value we can assign those terms to Year/Month/Days taxonomy.
If we have real world example setup I can better guide you but as you are just still on planning stage its really hard to tell what you can able to do and what not.
Ok, perfect, thanks.
I though of creating a Toolset new product form allowing the vendor to create a new product for each availability and link it to the "real" Product taxonomy, but then, I realized that would prevent me to limit the number of products with the subscription because with only 1 "product" with 3 availabilities, the vendor would reaches it's maximum. So I'm not sure this will be the plan, but it's good to know that it can be done 🙂