The Official Website of AgoraCart and Agora.cgi
AgoraCart.com Demos Download AgoraCart User Manuals & Wiki Gold Members Forum Go Gold Now! Gold Version Memberships

AgoraCart.com

About
Features
Download
Payment Gateways
Send a Donation
Founders Club
BLOG: News & Updates

Showcases & Demos

AgoraCart Demos
Shop Live Stores

Downloads & Add-ons

Gold Version Downloads
DBwizz Database Mgr.
AgoraCart.com Store

Help & Support

User Manuals
Gold Version Users Forum
Gold Version Chat
Tech Support
Certified Agora Pros
Certified Designers
Hire a Freelancer

Gold Version Members

Member Benefits
Join Today!
Gold Members Home
Gold Version Users Forum
Gold Version Chat Rooms
Gold Version Downloads

For Store Owners

Merchant Accounts
Cool Resources
Advertise Here
"Powered by" Logos
Web Hosting Search

Misc.

Contact Us
MEET's Talking Guide
The Ancient Greek Agora






AgoraCart Free User Forums

This is the official FAQ and Cool Tips guide For the AgoraCart shopping Cart software


Official Sponsors of the AgoraCart Project:

       


RegisterSearchFAQLog in
Reply to topic Page 1 of 1
help - adding vlaue to Agora offline orderform
Author Message
Reply with quote
Post help - adding vlaue to Agora offline orderform 
Question

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

View user's profile Send private message
Reply with quote
Post Re: help - adding vlaue to Agora offline orderform 
marsserve wrote:
Question
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

In the "sub get_Offline_confirm_middle" area of the Offline-order_lib.pl file look for the following:
Code:

<TR>
<TD WIDTH=150>
<FONT FACE=ARIAL SIZE=-1 COLOR=BLACK>
Name
</FONT>
</TD>
<TD WIDTH=350>
<FONT FACE=ARIAL SIZE=-1 COLOR=BLACK>
$form_data{'Ecom_ShipTo_Postal_Name_First'} $form_data{'Ecom_ShipTo_Postal_Name_Last'}
&nbsp;</FONT>
</TD>
</TR>

Right after that, put in something like:
Code:

<TR>
<TD WIDTH=150>
<FONT FACE=ARIAL SIZE=-1 COLOR=BLACK>
Company Name
</FONT>
</TD>
<TD WIDTH=350>
<FONT FACE=ARIAL SIZE=-1 COLOR=BLACK>
$form_data{'Ecom_ShipTo_Company_Name'}
&nbsp;</FONT>
</TD>
</TR>



marsserve wrote:

f. Add the field where you see other fields that have: "$text_of_confirm_email"

I thank you in advance for your help.

-Mars

Look for:
Code:

$text_of_cart .= "NAME:          $form_data{'SHIPNAME'}\n";
$text_of_admin_email .= "NAME:          $form_data{'SHIPNAME'}\n";

After it, put something like:
Code:

$text_of_cart .= "COMPANY NAME:          $form_data{'SHIPTOCOMPANYNAME'}\n";
$text_of_admin_email .= "COMPANY NAME:          $form_data{'SHIPTOCOMPANYNAME'}\n";


HTH!


_________________
God Bless!
Bonnie - AgoraCart Moderator

Get a Gold Membership
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
Reply with quote
Post  
Very Happy

Thank you very much for talking the time and sending me those instructions. That was super great of you. You'll be happy to know I know have a working order form with "Company name"

Please keep up the good work.

-Mars

View user's profile Send private message
Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum