Announcement

Collapse
No announcement yet.

Order Notes

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

    Order Notes

    I am trying to add a textarea for notes and carry the entered data from OSEL, to OPAY to INVC and also send it with the notification emails.

    I put this code on OSEL

    Code:
    Order Notes (optional): <textarea style="width: 500px" type="text" name="order_notes" value="" /></textarea>
    and then on OPAY

    Code:
    <div style="width: 500px; padding:10px; margin-right: auto; margin-left:auto;">
    <mvt:item name="customfields" param="Write_Basket( 'order_notes', g.order_notes )" />
    <mvt:item name="customfields" param="Read_Basket( 'order_notes', g.my_order_notes )" />
    <i>Order Notes:  &mvte:global:my_order_notes;</i>
    </div>
    and indeed it does get passed as in the example but I am not sure how to pass the code the rest of the way through - do I need a hidden field? I tried just duplicating the code from OPAY but it doesn't get passed any further.

    Thanks for any assistance.
    Last edited by habreu; 05-21-15, 03:22 PM.

    #2
    Re: Order Notes

    When the basket is converted to an order at INVC, the basket notes have been converted to order notes. You can read the order notes with the Read_Order function: <mvt:item name="customfields" param="Read_Order( 1000, 'custom_field_code', l.settings:customfields )" /> (Use the order # in place of 1000 in the example)
    See this document for more: http://www.miva.com/videos/articles/...-documentation
    Larry
    Last edited by wajake41; 05-21-15, 06:13 PM.
    Larry
    Luce Kanun Web Design
    www.facebook.com/wajake41
    www.plus.google.com/116415026668025242914/posts?hl=en


    Comment


      #3
      Re: Order Notes

      As long as you have a custom order field setup with the same code you used above for your custom basket field (order_notes) then when the order is placed, Miva will automatically convert the custom basket field to a custom order field.

      This video should help too: http://www.miva.com/videos/web_devel...er-fields1/125
      Brennan Heyde
      VP Product
      Miva, Inc.
      [email protected]
      https://www.miva.com

      Comment


        #4
        Re: Order Notes

        Thank you both. After having a bit of a wrestle I remembered Addendum and did it with that.

        Comment

        Working...
        X