I am using the following script change (inserting uc before lines) to capitalise whatever the user types into the checkout pages. All works perfectly except for the postcode field within the delivery address which is not affected (if you select ship to seperate address, works fine if you are shipping to invoice address)
Would anyone have any suggestions? Script is OrderScript.pl and the code is below:-
$::g_ShipContact{'SALUTATION'} = uc $::g_InputHash{'DELIVERSALUTATION'};
$::g_ShipContact{'NAME'} = uc $::g_InputHash{'DELIVERNAME'};
$::g_ShipContact{'JOBTITLE'} = uc $::g_InputHash{'DELIVERJOBTITLE'};
$::g_ShipContact{'COMPANY'} = uc $::g_InputHash{'DELIVERCOMPANY'};
$::g_ShipContact{'ADDRESS1'} = uc $::g_InputHash{'DELIVERADDRESS1'};
$::g_ShipContact{'ADDRESS2'} = uc $::g_InputHash{'DELIVERADDRESS2'};
$::g_ShipContact{'ADDRESS3'} = uc $::g_InputHash{'DELIVERADDRESS3'};
$::g_ShipContact{'ADDRESS4'} = uc $::g_InputHash{'DELIVERADDRESS4'};
$::g_ShipContact{'POSTALCODE'} = uc $::g_InputHash{'DELIVERPOSTALCODE'};
$::g_ShipContact{'COUNTRY'} = uc $::g_InputHash{'DELIVERCOUNTRY'};
$::g_ShipContact{'PHONE'} = $::g_InputHash{'DELIVERPHONE'};
$::g_ShipContact{'FAX'} = $::g_InputHash{'DELIVERFAX'};
$::g_ShipContact{'EMAIL'} = $::g_InputHash{'DELIVEREMAIL'};
$::g_ShipContact{'USERDEFINED'} = uc $::g_InputHash{'DELIVERUSERDEFINED'};
Dave
Would anyone have any suggestions? Script is OrderScript.pl and the code is below:-
$::g_ShipContact{'SALUTATION'} = uc $::g_InputHash{'DELIVERSALUTATION'};
$::g_ShipContact{'NAME'} = uc $::g_InputHash{'DELIVERNAME'};
$::g_ShipContact{'JOBTITLE'} = uc $::g_InputHash{'DELIVERJOBTITLE'};
$::g_ShipContact{'COMPANY'} = uc $::g_InputHash{'DELIVERCOMPANY'};
$::g_ShipContact{'ADDRESS1'} = uc $::g_InputHash{'DELIVERADDRESS1'};
$::g_ShipContact{'ADDRESS2'} = uc $::g_InputHash{'DELIVERADDRESS2'};
$::g_ShipContact{'ADDRESS3'} = uc $::g_InputHash{'DELIVERADDRESS3'};
$::g_ShipContact{'ADDRESS4'} = uc $::g_InputHash{'DELIVERADDRESS4'};
$::g_ShipContact{'POSTALCODE'} = uc $::g_InputHash{'DELIVERPOSTALCODE'};
$::g_ShipContact{'COUNTRY'} = uc $::g_InputHash{'DELIVERCOUNTRY'};
$::g_ShipContact{'PHONE'} = $::g_InputHash{'DELIVERPHONE'};
$::g_ShipContact{'FAX'} = $::g_InputHash{'DELIVERFAX'};
$::g_ShipContact{'EMAIL'} = $::g_InputHash{'DELIVEREMAIL'};
$::g_ShipContact{'USERDEFINED'} = uc $::g_InputHash{'DELIVERUSERDEFINED'};
Dave
Comment