Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13
  1. #11
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: Can I make "comments" a "required field" when making a purchase?

    Quote Originally Posted by pixel1987 View Post
    thank for the reply mc12345678 and stevesh; stevesh I have the version 1.53 that is a module and then lets me add a option value?
    pd: products database with this module are removed?

    mc12345678 I did not understand your answer
    Quote Originally Posted by stevesh View Post
    If a dropdown of options would work (and it looks like it would) re-working this mod might be easier: http://www.zen-cart.com/downloads.php?do=file&id=90
    Quote Originally Posted by stevesh View Post
    It appeared from your image that you want the customer to choose from a number of companies the order would be shipped from. If that isn't correct, post again.
    Quote Originally Posted by pixel1987 View Post
    that is correct as you say
    Maybe stevesh is in the process of responding, but as a sort of summary of the current discussion:
    ZC 1.5.3 is installed, a plugin that offers a way to select from options and work with the result is available through the plugin identified. This feature appears to be what is most desired. The fact that the plugin though indicates that ZC 1.5.1 is the highest compatible version appears to be an issue of "concern". It could be that the plugin is still functional with ZC 1.5.3, might need some minor modification, or (and doubtful) some major modification to be compatible with ZC 1.5.3... One doesn't "know" until the installation is attempted or the plugin is identified as being 1.5.3 compatible...
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  2. #12
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: Can I make "comments" a "required field" when making a purchase?

    Quote Originally Posted by Ajeh View Post
    You could also customize the file:
    /includes/modules/pages/checkout_configuration/header_php.php

    and add the code in RED:
    Code:
    if (isset($_POST['payment'])) $_SESSION['payment'] = $_POST['payment'];
    $_SESSION['comments'] = $_POST['comments'];
    
    // bof: force comment
    if (trim($_SESSION['comments']) == '') {
      $messageStack->add_session('checkout_payment', 'Please enter order comments before proceeding.', 'error');
      zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
    }
    // eof: force comment
    
    //'checkout_payment_discounts'
    //zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
    Now, if they try to submit the order on the checkout_confirmation page without a comment, they will be returned to the checkout_payment and they will see a red message telling them to include a comment ...
    Thanks ajeh, that was what I was trying to consider although I didn't have the code available/in memory. :)
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #13
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Can I make "comments" a "required field" when making a purchase?

    You are welcome ... I searched a few old threads and put something together that worked easily with v153/v154, and problem can be adapted for older, though upgrading is a good idea ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Making a "Address Line 2" registration field a required
    By vladimir_vulic in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 31 Jan 2019, 02:27 AM
  2. can i have products of types "Purchase" and "View only"...need both
    By aniketanyee in forum Customization from the Admin
    Replies: 2
    Last Post: 24 Nov 2012, 11:06 AM
  3. How to make "Company Name" a required field?
    By hllight in forum General Questions
    Replies: 4
    Last Post: 15 Feb 2009, 04:26 PM
  4. I need to make the "company" field a required field
    By semaxd in forum Managing Customers and Orders
    Replies: 2
    Last Post: 30 Jun 2008, 09:09 PM
  5. Replies: 3
    Last Post: 31 Aug 2007, 07:29 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