Okay
  Public Ticket #2254651
customize
Closed

Comments

  • Kleber started the conversation

    Hello,
    enjoy knowing how to inactivate the DDI (Default Country Code) field.
    For he is totally unconfigured.
    We will only work with the code +55, but I would like to hide this form field.
    I would like to customize the information label
    Follows print with images mentioned above
  • [deleted] replied

    Hello Kleber, 

    For changing strings you need to use the translation technique, you will just change the strings in your language you will not translate them to other language. So, for this you can use any translation program like POEDIT or Loco Translate .

    If you want to use POEDIT then this is an instruction:

    1. Download the Amelia plugin and save the .zip file on your computer.

    2. Unzip downloaded .zip file.

    3. Download and install POEDIT

    4. After that open the program and open the file from the extracted folder on your computer ameliabooking/languages/fr_FR/wpamelia-fr_FR.po.

    5. Change the string that you want 

    6. Save the translation.

    7. Go to ameliabooking/languages/fr_FR/ folder and copy these two files called wpamelia-fr_FR.po and wpamelia-fr_FR.mo back to your website in the location ../wp-content/plugins/ameliabooking/languages/fr_FR/.

    This is an example for French, you will choose your language files.


    For hiding the country code field, please add this custom HTML to the page where you have your Amelia shortcode: 

    <style>#am-confirm-booking > div:nth-child(1) > form > div.am-confirm-booking-data.el-row > div:nth-child(5) > div > div > div > div {display: none;} </style>

    Please note that even though you hide this field in the front-end, it will still save the phone country code (which you set in Amelia -> Settings -> General) for the number that the customer fill in. So, I am not sure if this would help in your case. You can choose your country code in Amelia -> Settings and that country code will be always displayed in the booking form. 

    7616431317.png