
Hello there,
I am trying to add a optional "Company Name" field under shipping information of an Agora a store. The store uses offline processing. I understand that both Offline-orderform.html and Offline-order_lib.pl need to be edited. I am competent with HTML, so Offline-orderform.html should not be a problem, but my perl skills are nonexistent. I am familiar with safely editing perl scrips, but even so I am having trouble figuring out how to edit the Offline-order_lib.pl file properly, or that is to say I have no idea what to add. That said, I have tried this much (following guidelines at http://www.agoraguide.com/faq/viewtopic.php?t=2113) :
1) I have added the following code to Offline-orderform.html :
<TR>
<TD>Company</TD>
<TD><INPUT TYPE="text"
NAME="Ecom_ShipTo_Company_Name"
VALUE="$eform_Ecom_ShipTo_Company_Name"
SIZE="30" MAXLENGTH="30"></TD>
</TR>
2) In Offline-order_lib.pl I have added the following line under 'sc_order_form_array' :
'Ecom_ShipTo_Company_Name', 'Ship To Company Name',
3) And under 'sub print_Offline_SubmitPage' :
<INPUT TYPE=HIDDEN NAME=SHIPTOCOMPANYNAME VALUE=\$eform_data{'Ecom_ShipTo_Company_Name'}\">
For the last two steps listed in topic 2113, I have NO idea what to do.
Here they are :
e. Add the field to the proper places in the following subroutine (this subroutine is not present in the gateways mentioned above. The subroutine mentioned above replaces this subroutine in the remaining gateways available):
sub get_<gateway>_confirm_middle
f. Add the field where you see other fields that have: "$text_of_confirm_email"
Can some one give me some step by steps here? OR alternativley, is there a more detailed online tutorial for this or perhaps a modified Offline-order_lib.pl available somewhere for this pretty standard addition to the orderform?
I thank you in advance for your help.
-Mars