• Resolved Tom M

    (@tominthephilippines)


    I like this plugin a lot, it’s a great addon… especially in times like this.
    Maybe a silly question though; would it be possible for me to change the text from ‘Leave at door’ to ‘Leave at neighbors’? Or if you guys could add this extra option maybe?

    I assume if I wanna change it, I need to edit the language file?

    Thank in advance.
    Cheers,
    Tom

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Scott DeLuzio

    (@scottdeluzio)

    Hey @tominthephilippines thanks for the suggestion!

    In the plugin, once the “Leave At Door” checkbox is checked, it opens an “Instructions for delivery driver” box, where customers can type in additional instructions.

    Alternatively, you can edit the “Leave At Door” text shown on the checkout page with the following filter:

    add_filter( 'leave_at_door_text', 'custom_leave_at_door_text' );
    function custom_leave_at_door_text( $leave_at_door ) {
     return 'Leave at neighbors';
    }

    This will change the label next to the checkbox shown on the checkout page.

    I hope this helps.

    Thread Starter Tom M

    (@tominthephilippines)

    Hi Scott,

    Thank you very much for this solution! I added the filter, because although leaving instructions for the driver would be an option, my client doesn’t want to leave the deliveries at the door. He doesn’t want to risk the delivery getting stolen or people just saying the didn’t receive the delivery ??

    Oh, just one small question… I translated the original ‘Leave at door’ text to Dutch, but now because of the filter I also get to see the ‘Leave at neighbors’ text of course. Is there any way to fix this?

    When I update the plugin in the future, will the added filter be erased?

    Cheers!
    Tom

    • This reply was modified 4 years, 7 months ago by Tom M.
    Thread Starter Tom M

    (@tominthephilippines)

    Hi Scott,

    Sorry for being impatient, but maybe you overlooked my small request regarding the translation.

    I’d love to implement it in the live website, that’s why ??

    Cheers,
    Tom

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Great addon!’ is closed to new replies.