Okay
  Public Ticket #2926438
Booking Form - Step 4 - Translating "On-Site"
Closed

Comments

  •  1
    Eduardo started the conversation

    Booking Form (step 4) has a frame with payment options: "On-Site", "Stripe", "PayPal" etc. How can I translate these strings? I edited wpamelia-pt_BR.po but only backend strings have been translated.

  • [deleted] replied

    Hi Eduardo

    Thank you for reaching out to us.

    The images for payments on the front-end can be changed in /wp-content/plugins/ameliabooking/public/img/payments/icons/ and /wp-content/plugins/ameliabooking/public/img/payments/ folders. Keep in mind that the size of images need to stay the same, along with the name of the image file. Also, until we include this as a customization option in Amelia/Customize, you will need to do this every time the plugin updates.

    As for the text below icons, it is possible to change this now, but it's not a perfect solution.

    You need to go to ameliabooking/public/js/chunks/ folder and open the file that looks like this:

    amelia-booking-booking-e699bcfa2244b52e0818.js

    The hash may be different, so if it's not "e699bcfa2244b52e0818" it is something else, it's important to look for amelia-booking-booking-hash.js

    When you edit this file, look for "On-Site", "Paypal", "Stripe", "Online" (case sensitive), and you'll see this:

    case"paypal":return"Paypal";case"stripe":return"Stripe";case"onsite":return"On-Site";case"mollie":return"Online"
    

    You can change all values in quotations, after "return" and it will change on the front-end, so for example, change:

    return"On-Site"

    To:

    return"Invoice"

    And so on. Our developers are working on a more elegant solution, but at this time, it's the best one we can offer.

    The file I told you to modify is the step-by-step [ameliabooking] form, so if you're using [ameliacatalog], you'd need to change a different file (same folder, only amelia-booking-catalog-hash.js).

  •  1
    Eduardo replied

    It works perfectly. Thank you!

  •  1,604
    Marko replied

    Hello Eduardo,

    We are glad that we're able to help you. If you have any more questions please feel to open another ticket.

    Kind Regards, 

    Marko Davidovic [email protected]

    Rate my support

    Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, floor plans, choropleth maps, and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/

    wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables