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