Page 1 of 1

Purchase Order field.

PostPosted: Wed May 01, 2019 2:35 pm
by derekwebster@.....com
Hi Id like to add a new field at the end of the checkout for entering a purchase order No.Is this possible with OPC?

Re: Purchase Order field.

PostPosted: Thu May 16, 2019 6:44 pm
by admin
hello, yes, if this is :
- a field stored ONLY within order and not directly related to the user details
- if the field can load "empty" upon each visit of the checkout by the same customer

you may want to:
- mark it "order field only " in opc + "cart field" in Virtuemart

optinally:
- render the field in onepage.unlogged(+logged, etc.. ).tpl.php file as
<input type="text" name="myname" id="myname_field" value="" />
- and set it as "custom rendered" within OPC
---> ideally you can copy full wrappers from another field :

suppose you name it "customname" in virtuemart:
Code: Select all
<div class="field_wrapper"><div class="vr2"><div id="customname_div" class="formLabel "><label for="customname_field">Special Input<span> *</span> </label> </div>
         <div class="formField" id="customname_input">
<input type="text" id="customname_field" autocomplete="billing customname" data-lpignore="true" required="required" name="customname" size="30" value="test" class="required" > </div></div></div>


and you want it to be required.

let me know at email if you needed further assistance.

best regards, stan

Re: Purchase Order field.

PostPosted: Wed Jun 05, 2019 5:19 pm
by derekwebster@.....com
Thanks Stan Ive on ly just got this thanks

Re: Purchase Order field.

PostPosted: Tue Jun 11, 2019 6:17 pm
by admin
hello derek, np, let me know at at email if you needed further assistance.
best regards, stan