Code:
$(document).ready(function()
{
$('billing_to_show').click(function()
{
$('Customer_CCF_OM').val($('Customer_CCF_OM_B').val());
});
});
This is the on the ship-to coding
Code:
<mvt:item name="custedit" param="OM" />
<mvt:if expr="g.error_messages AND ISNULL l.settings:custedit:current:value">
<div class="&mvte:global:BillFirstName_Row; invalid">
<label class="required" for="Customer_&mvt:custedit:current:name;"><strong><span style="color:#FF0000;">&mvt:custedit:current:name;:</span></strong></label>
<mvt:else>
<div class="&mvte:global:BillFirstName_Row;">
<label class="required" for="Customer_CCF_OM"><strong>&mvt:custedit:current:name;:</strong></label>
</mvt:if>
<input type="hidden" name="CFM_required[&mvte:custedit:current:id;]" value="1">
<select name="CFM_value[&mvte:custedit:current:id;]" id="Customer_CCF_OM" class="input">
<option value="">Select</option>
<option value="Owner">Owner</option>
<option value="BuyerManager">Buyer/Manager</option>
</select>
<input type="hidden" name="CFM_field[&mvte:custedit:current:id;]" value="1">
</div>
This is on the bill-to side (I had to remove the required because it was preventing customers from proceeding):
Code:
<mvt:item name="custedit" param="OM_B" />
<div class="&mvte:global:BillFirstName_Row;">
<label class="required" for="Customer_CCF_OM_B"><strong>&mvt:custedit:current:name;:</strong></label>
<!-- <input type="hidden" name="CFM_required[&mvte:custedit:current:id;]" value="1"> -->
<select name="CFM_value[&mvte:custedit:current:id;]" id="Customer_CCF_OM_B" class="input">
<option value="">Select</option>
<option value="Owner">Owner</option>
<option value="BuyerManager">Buyer/Manager</option>
</select>
<input type="hidden" name="CFM_field[&mvte:custedit:current:id;]" value="1">
</div>
Leave a comment: