• Resolved rabiancone

    (@rabiancone)


    Hello,

    I’ve added “Pre-Order” as my default no date message in the general settings. When the confirmation email is sent to the customer it says “Pre-Order No Date”.

    Can you provide a php snippet that would remove the “No Date” portion of the message so it simply displays “Pre-Order”?

    Thanks,
    Ryan

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support angelagrey

    (@angelagrey)

    Hi Ryan,

    Thank you for reaching out to us.
    We have added a filter hook for you. Now you can use this code below to change the text:

    add_filter('wpro_filter_no_date_label',function(){
    return 'Your text label';
    });

    Edited: please update the plugin to the latest version.

    Best regards.

    • This reply was modified 2 years, 2 months ago by angelagrey.
    Thread Starter rabiancone

    (@rabiancone)

    Hi Angela,

    This works wonderfully.

    Thank you!

    Ryan

    Good afternoon! And please tell me the function so that everywhere in the letters and on the checkout page the text that was specified in the settings field (No date message) is displayed. Thanks

    And please tell me how it is possible in the settings field (No date message) to display text with automatic information depending on the current date (for example, if today is December 13, then the text should be displayed “delivery from December 25 to December 31”, that is, a week from the current dates starting from Sunday). Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change default no date message’ is closed to new replies.