Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2010
    Posts
    106
    Plugin Contributions
    0

    Default How to Make The Order Delivery Date A Required Field?

    I have the order delivery date contribution installed,it works fine but some customers are checking out without specifying a date,I would like to make it a required field during checkout-how would i do this?

    thanks in advance

  2. #2

    Default Re: How to Make The Order Delivery Date A Required Field?

    Just did it.
    includes/modules/pages/checkout_shipping/header_php.php

    edit as follows (black is existing and red is to be added)
    Code:
    //BEGIN Order Delivery Date
        if (zen_not_null($_POST['order_delivery_date'])) {
          $_SESSION['order_delivery_date'] = zen_db_prepare_input($_POST['order_delivery_date']);
        }
        $order_delivery_date = $_SESSION['order_delivery_date'];
    
    
    if (trim($order_delivery_date) == '') {
        $messageStack->add_session('checkout_shipping', 'Please select a delivery day from 
    
    the calendar', 'error');
        zen_redirect(zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
    }
    History does not repeat itself but it [FONT="Century Gothic"][/FONT]does rhyme - Mark Twain

 

 

Similar Threads

  1. Replies: 6
    Last Post: 24 Nov 2022, 08:51 PM
  2. v154 How to make an account signup field required
    By textileinnovations in forum General Questions
    Replies: 4
    Last Post: 20 Jul 2015, 12:37 PM
  3. Make order comments a required field?
    By straitline in forum Basic Configuration
    Replies: 3
    Last Post: 29 Dec 2008, 02:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR