Announcement

Collapse
No announcement yet.

'Special Instructions' text area in checkout

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Re: 'Special Instructions' text area in checkout

    Jim, yes, create a custom ORDER field to keep the comment with the order, not a customer field. There is a dropdown menu to select the field type when you create a new custom field...
    Last edited by allenfreeman; 02-07-15, 09:10 AM.
    Allen Freeman
    http://ClevelandCreative.com
    http://www.StandardLegal.com

    Comment


      #17
      Re: 'Special Instructions' text area in checkout

      Brennan, you are money. Worked perfectly.

      So for all you Mivites looking at this thread hoping to create a Special Instructions text area at checkout to allow customers to provide specific order detail requests without having to use the Addendum module, check out the video at
      http://www.miva.com/videos/web_devel...-order-fields1 .

      From that video: create a custom ORDER field under Utilities (I named my custom field 'SpecialInstructions') and select Type = Order Field and Field Type = Text-Area. Then the code is:

      //OCST Page
      <input type="textarea" name="SpecialInstructions" value= "" />


      //OSEL Page
      <mvt:item name="customfields" param="Write_Basket( 'SpecialInstructions', g.SpecialInstructions )" />
      <mvt:item name="customfields" param="Read_Basket( 'SpecialInstructions', g.my_SpecialInstructions )" />
      SPECIAL INSTRUCTIONS: &mvte:global:my_SpecialInstructions;

      Then if you want to pass along the info collected to the other checkout pages and to the customer and merchant confirmation emails, use:

      <mvt:item name="customfields" param="Read_Basket( 'SpecialInstructions', g.my_SpecialInstructions )" />
      SPECIAL INSTRUCTIONS: &mvte:global:my_SpecialInstructions;


      Thanks Brennan!
      Last edited by allenfreeman; 02-07-15, 10:07 AM.
      Allen Freeman
      http://ClevelandCreative.com
      http://www.StandardLegal.com

      Comment


        #18
        Re: 'Special Instructions' text area in checkout

        We read our custom order field in the customer confirmation email template with this:
        <mvt:item name="customfields" param="Read_Order(l.settings:order:id,'customfield name')" />
        Notice that the field is on the order at this point.
        Should work on INVC also.
        Larry
        Last edited by wajake41; 02-07-15, 12:48 PM.
        Larry
        Luce Kanun Web Design
        www.facebook.com/wajake41
        www.plus.google.com/116415026668025242914/posts?hl=en


        Comment


          #19
          Re: 'Special Instructions' text area in checkout

          Nice tip guys, works perfect for me!
          Highly caffeinated
          http://www.coffeehouseexpress.com

          Comment


            #20
            Here is a solution to using the Order Instruction field on the OSEL page in levels readytheme. First create a custom order field coded "order_instructions".

            Next paste this at the bottom of the Printable Invoice batch report template right underneath the shipping section:

            <div class="sub-box-right">
            <h2>Order Instruction</h2>
            <hr />
            <mvt:item name="customfields" param="Read_Order( l.settings:order:id, '' )" />
            <mvt:foreach iterator="field" array="customfields">
            &mvte:field:value;<br/>
            </mvt:foreach>
            </div>

            I don't think this is documented anywhere, just sayin. Hope this helps.

            Comment

            Working...
            X