March 6, 2018 at 11:00 pm #144550
Location field is not mandatory but if it is not ticked the service is not visible…
How can I make it mandatory ?
Also Can I choose some fields to be mandatory and some not to be mandatory ?
ArnaudMarch 7, 2018 at 11:26 am #144970
The location list is not required field but the Address field is required field. You can create new tour without select location list.
Please check it again.
ThanksMarch 11, 2018 at 5:02 am #147560
But the issue is that if location is not chosen, tour is not visible.
Check Tour “TesT33” : Adress is set up but not location and tour is not visible in Home page even if Paris is selected as a destination.
Also, How can I have all tours visible on homepage whatever the location ?
ThanksMarch 12, 2018 at 2:48 pm #148600
Of course, theme display service by location so if you service does not have location, theme can not search it to display on front end.
You can make the location list to be required by following the validator file that i send to you in other topic.
Please check again.
ThanksMarch 12, 2018 at 3:53 pm #148660
Sorry bu I am not sure.
Can you tell me which file I should amend and where ?
ArnaudMarch 13, 2018 at 5:23 am #149030
Also which line I must add or modify exactly and with which code ?
I am not a developper 🙂
ThanksMarch 13, 2018 at 11:20 am #149350
In my image, i show you the place to change required field.
If you do not want any field to be required, just remove it form validator section.
ThanksMarch 14, 2018 at 8:23 pm #150830
OK but can you give me the code to add Location as mandatory ?
ThanksMarch 15, 2018 at 9:38 am #151160
My image will show you the place to customize it
$validator->set_rules('multi_location', __("Location", ST_TEXTDOMAIN), 'required');
ThanksMarch 15, 2018 at 9:18 pm #151790
And can you give me the code to display a red star close to “Location” please ?March 16, 2018 at 8:48 am #152200
The forum ‘Traveler’ is closed to new topics and replies.