HomePage › Forums › Themes Support › Triply – Tour Booking WordPress Theme › Transfers Section
Tagged: new categorie
- This topic has 8 replies, 2 voices, and was last updated 8 months, 1 week ago by Billy Nguyen.
-
AuthorPosts
-
August 24, 2023 at 4:11 am #37392gntnikosSupport Expired
Hey, i want to create a transfers section for my website and i dont want to create them in the tours section. Do i need to create some different categories(like the booking locations) or something like that?
August 24, 2023 at 3:33 pm #37422I don’t understand what you mean, please take a screenshot and explain this better.
August 25, 2023 at 1:08 am #37437gntnikosSupport ExpiredSo, in my website i have a section for tours in Greece.
Now, i want to add a transfer section (for example airport-hotel, port-hotel).
Is that helpfull?
Let me show you a different website(they have a section for the tours, and they they have a different section for transfers, that is what i am trying to do)
https://www.myathenstransfers.com/transfers/August 25, 2023 at 4:11 pm #37454Oh, I see it shows the same as a tour booking, no difference so you can use the booking object for the transfer section
August 25, 2023 at 6:26 pm #37460gntnikosSupport Expiredyes but if i create them in the same category they get mixed with the tours
August 25, 2023 at 6:53 pm #37461gntnikosSupport Expiredi am going to need to add some special fields on the checkout like the airort flight number etc, how can i do that too?
Exactly like the other siteAugust 26, 2023 at 11:15 am #374831. You will have to create another category booking object to categorize with the current tour category.
2. You can customize this information to the checkout form.
If you need custom assistance with issues.
August 26, 2023 at 10:52 pm #37499gntnikosSupport Expiredok so i created a different category for the transfer section.
Now, for the checkout i am going to need to create a custom one when they proceed that will include sections like time of arrival, flight number, names etc.
How can i do that only for the category of transfer?August 28, 2023 at 2:58 pm #375171. You need to override this file in child-theme:
themes/triply/template-parts/booking/checkout/information.php
=> themes/triply-child/template-parts/booking/checkout/information.phpThen add your custom field here.
2. Use add_filter to Add custom field checkout:
add_filter('babe_checkout_field_label', 'triply_babe_checkout_field_label', 10, 2); function triply_babe_checkout_field_label($output, $field_name){ //check code } add_filter('babe_sanitize_checkout_vars', 'triply_babe_sanitize_checkout_vars', 10, 2); function triply_babe_sanitize_checkout_vars($output, $arr){ //check code }
-
AuthorPosts
You must be logged in to reply to this topic.