• Hi,

    I hope you’re doing well. On the checkout page, I don’t want the date field. I want to completely disable it. If not possible then I want ‘Today’ to be default value for both delivery and pickup.

    I have another request, I want to replace the string ‘Pickup’ with ‘Collection’ across the plugin. If not possible only on checkout page would be great.

    How to achieve both these things?

    Thanks

Viewing 1 replies (of 1 total)
  • Plugin Support kennethbryanlim

    (@kennethbryanlim)

    Hi @layek143

    To disable the Orderable date and time slots, please insert the following code snippet into your child theme’s functions.php file. If you’re unsure about editing theme files directly, we recommend using the Code Snippets plugin as an alternative to safely add the code.

    add_filter( 'orderable_location_service_dates', '__return_true' );

    Then to replace “Pickup” with “Collection”, please insert this code.

    function translate_strings ( $translated_text, $text, $domain ) {
    switch ( $translated_text ) {
    case 'Pickup' : // this is the text to change
    $translated_text = __( 'Collection', 'woocommerce' ); // this is the new text
    break;
    }
    return $translated_text;
    }
    add_filter( 'gettext', 'translate_strings', 20, 3 );

    Thank you!

Viewing 1 replies (of 1 total)

The topic ‘Date Selector’ is closed to new replies.