• Resolved wlakin

    (@wlakin)


    Is it possible to setup Delivery date as required option? Now, it is possible to make order without date or asap.. But I dont want reminder email, I need set date, asap ideal, right with order.

    Thanks.


    • This topic was modified 1 month, 2 weeks ago by wlakin.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Orderable

    (@orderable)

    Hello!

    We’re currently investigating this for you, and we’ll be back in touch shortly with an update!

    Plugin Author Orderable

    (@orderable)

    Hello again,

    To default to Delivery, please ensure that Pickup is disabled as a service option in the Location settings, and ensure Delivery is selected; the checkout will default to Delivery as the only option, and use the Delivery zones you have created to match against the customer’s address.

    However, you must ensure that there are no other zones configured in the WooCommerce > Settings > Shipping screen that could interfere with the zones you have created in Orderable. If you have any other zones not created through Orderable, either delete them, or move them to the *bottom* of the list of shipping zones, below the Orderable zones.

    We don’t currently have a setting to make “ASAP” the default date, however this can be achieved by using a code snippet which can be added directly to your functions.php file in your theme (preferably a child theme), or alternatively you can use a plugin such as Code Snippets to achieve this by adding this as a PHP snippet and activating.

    function orderable_set_asap_as_default() {
    ?>
    <script>
    (function($) {
    $( document.body ).on( 'updated_checkout', function () {
    $( '#orderable-date' ).val( 'asap' );
    } );
    })(jQuery);
    </script>
    <?php
    }
    add_action( 'wp_footer', 'orderable_set_asap_as_default' );

    The snippet listens for when the checkout is updated, and sets the date accordingly.

    Please let us know how you get on and if you need any further assistance!

    Thread Starter wlakin

    (@wlakin)

    Wow, thanks for answer ??

    Script works perfectly! With no changes in zones, with delivery and pickup. You are the best!

    Thanks again.

    Plugin Author Orderable

    (@orderable)

    No problem, happy to help out! We’ll mark this as resolved, but if you have any further issues please do reach out ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.