HomePage Forums Traveler Location to be mandatory / Mandatory options

Topic Resolution: Resolved

This topic contains 10 replies, has 2 voices, and was last updated by  Bryan 3 years, 7 months ago.

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #14455

    Hi,

    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 ?

    Thanks,
    Arnaud

    Attachments:
    You must be logged in to view attached files.
    #14497

    Hello

    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.

    Thanks

    #14756

    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 ?

    Thanks

    #14860

    Hello

    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.

    Thanks

    #14866

    Hello,

    Sorry bu I am not sure.

    Can you tell me which file I should amend and where ?

    Thanks,
    Arnaud

    #14903

    Also which line I must add or modify exactly and with which code ?

    I am not a developper 🙂

    Thanks

    #14935

    Hello

    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.

    Thanks

    #15083

    OK but can you give me the code to add Location as mandatory ?

    Thanks

    #15116

    Hello

    My image will show you the place to customize it

    $validator->set_rules('multi_location', __("Location", ST_TEXTDOMAIN), 'required');

    Thanks

    Attachments:
    You must be logged in to view attached files.
    #15179

    Great thanks.

    And can you give me the code to display a red star close to “Location” please ?

    #15220

    My image will show you place to do it

    <label for="multi_location"><?php _e('Location', ST_TEXTDOMAIN); ?><span
                                            class="text-small text-danger">*</span>:</label>

    Thanks

    Attachments:
    You must be logged in to view attached files.
Viewing 11 posts - 1 through 11 (of 11 total)

The forum ‘Traveler’ is closed to new topics and replies.