Default number in search combo (Attributs)

  • This topic has 3 replies, 3 voices, and was last updated 3 years ago by J. Davis.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #796278
    Jawhar Ben Fredj
    Blocked

    Hello!

    I’ve create two attributs : Adult and Child, and i would like to put in the search form default number adult: 1 and child: 0; (not like now adult:- and child: -)

    Thanks

    #796577
    Stacy Lind
    Keymaster

    Hi Jawhar,

    Could you give a link to the form where you need the pre-set?

    #796582
    Jawhar Ben Fredj
    Blocked
    #797468
    J. Davis
    Keymaster

    Hello Jawhar,

    Thank you for clarification. You may try to override the following file

    \wp-content\plugins\motopress-hotel-booking\templates\shortcodes\search\search-form.php

    to apply the first terms of attributes in the form by default. In order to make it properly and safe for updates of the plugin you need to copy the file and move its copy to the destination below:

    \wp-content\themes\alpenhouse\hotel-booking\shortcodes\search\

    So you will need to add the folders hotel-booking\shortcodes\search\ inside of your active theme directory.
    Once the file search-form.php is moved properly you will need to open it with file editor, find the following line and remove it:

    <option value=""><?php _ex( '&mdash;', 'Not selected value in the search form.', 'motopress-hotel-booking' ); ?></option>

    Save the changes and go to preview your site.

    best regards,
    J. Davis

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.