• Resolved McNearns

    (@smcnearney)


    When selecting ‘Other Amount’ while purchasing a gift card, if you do not enter a ‘To’ e-mail address and try to check out, a notification pops up saying ‘Please fill out this field’ – I want to edit the text of this to be more specific, eg. ‘Please fill out the ‘To E-Mail’ field’ in order to make this functionality more ADA compliant. I’ve been looking through all the code but can’t seem to find out where this message is defined. Please help!

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author pimwick

    (@pimwick)

    All strings in the plugin can be translated to any language. You can therefore “translate” the text into your store’s language to change the wording on any parts of the plugin.

    We recommend using the free Loco Translate plugin since it makes this task easy to do.

    After installing Loco Translate, follow these steps to “translate” the text for the English language:

    1. Click on the Loco Translate -> Plugins menu on the left.
    2. Click on the PW WooCommerce Gift Cards
    3. Click on the New Language button
    4. Set the following options:
    Choose a Language = English
    Choose a Location = Custom (the default selection will store the translation in your own languages folder)
    5. Click on Start Translating

    Thread Starter McNearns

    (@smcnearney)

    This is not what I was asking – everything is already in English and will stay in English. I simply want to change the text of the pop-up alert when you try to add a gift card to the cart without filling in a ‘to’ e-mail address. It currently just says ‘Please fill out this field’ – I want to make it say ‘Please fill out the to e-mail address field’ – how can this be done?

    Plugin Author pimwick

    (@pimwick)

    Thank you for the clarification.

    The web browser displays this message, it isn’t something that can be controlled by the plugin. The field has the “required” attribute and so the web browser will require there to be a value before the form can be submitted.

    In order to provide a custom message you would need to write custom validation that would fire before the web browser’s validation occurs.

    Plugin Author pimwick

    (@pimwick)

    I’m marking this thread as resolved but let us know if there is anything else we can help with.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘ADA Compliance for Gift Card Form Fields’ is closed to new replies.