Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2014
    Posts
    12
    Plugin Contributions
    0

    Default How to add predefined text to Special Instructions or Order Comments field?

    So i want to like add predefined text inside the order Special Instructions or Order Comments structure

    So when they come to the checkout the Special Instructions or Order Comments is already filled out with pre text that they just need to add more like example


    size:
    height:
    color:


    .


    I found define('NO_COMMENTS_TEXT', 'None'); but that text is added AFTER after "continue to checkout" / Step 2 out of 2.


    Any luck with that?

  2. #2
    Join Date
    Apr 2014
    Posts
    12
    Plugin Contributions
    0

    Default Re: How to add predefined text to Special Instructions or Order Comments field?

    Edit.

    The pre text goes inside the Special Instructions or Order Comments

  3. #3
    Join Date
    Apr 2014
    Posts
    12
    Plugin Contributions
    0

    Default Re: How to add predefined text to Special Instructions or Order Comments field?

    Think i nailed it..

    Find this file
    includes/templates/YOUR_TEMPLATE/templates/tpl_checkout_shipping_default.php


    change text from
    Code:
    <?php echo zen_draw_textarea_field('comments', '45', '3'); ?>
    To
    Code:
    <?php echo zen_draw_textarea_field('comments', '45', '10', 'size: height: color:'); ?>
    Now how would i put the text up in structure? as for now it goes into 1 straight line, i cant use html tags inside it without showing?

    like

    Code:
    size:
    height:
    color:
    and not

    Code:
    size: height: color:

  4. #4
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: How to add predefined text to Special Instructions or Order Comments field?

    Far as I know, you can't use markup there, so you may have to add spaces between the words.

  5. #5
    Join Date
    Apr 2014
    Posts
    12
    Plugin Contributions
    0

    Default Re: How to add predefined text to Special Instructions or Order Comments field?

    Quote Originally Posted by stevesh View Post
    Far as I know, you can't use markup there, so you may have to add spaces between the words.

    I just tested with
    PHP Code:
     
    and it works beautiful

    so
    PHP Code:
    message&#10;ANOTHER_MESSAGE 
    It might be missing the & infront of #10;

    gives

    HTML Code:
    message
    ANOTHER_MESSAGE
    Last edited by wazer; 15 Apr 2014 at 04:20 PM.

 

 

Similar Threads

  1. Replies: 6
    Last Post: 24 Nov 2022, 08:51 PM
  2. Special Instructions or Order Comments
    By southshorepizza in forum General Questions
    Replies: 12
    Last Post: 11 Jan 2014, 10:06 PM
  3. Special Instructions or Order Comments
    By Randa in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 14 Oct 2009, 03:57 PM
  4. Special Instructions or Order Comments
    By kminnich in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 22 Oct 2008, 05:48 AM
  5. Special Instructions/Order Comments Error
    By kenaniah in forum General Questions
    Replies: 4
    Last Post: 12 Dec 2006, 06:19 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