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
Everything's working except for user defined email fields
Author Message
Reply with quote
Post Everything's working except for user defined email fields 
OK, my store is up and running and it's gangbusters, hotcakes, etc.

(not really, but it will be soon :wink: )

The last piece of this that has me scratchin' me 'ed is the user fields that one customizes on the Payment Gateway page.

About half way down that page there are a series of multi-line text boxes starting with "Enter the text that you'd like displayed at the top of your order form" and ending with a single-liner "What description you want to use for the order".

<Don't you just love questions like this where the background information takes up lines and lines? Reminds me of the VB cert exam).>

OK, finally, the question. I have put a phrase in each box describing what the box is... e.g., for the bottom of the orderform box I put in "bottom of the order form". The two exceptions to this were the boxes that had script in them after the install. I left those alone.

I have found the file that gets edited by this page, 2checkout-user_lib.pl. All the stuff I entered into the boxes on the Payment Gateway form are there and assigned to variables.

However, when the email gets sent, none of the custom text is displayed; only the quantity, product, options, cost, Item subtotal, wt. each, total wt., Product ID, product name, CustID, invoice, shipping, total, and the last field ORDER NOTES ---------------

Just for kicks, here's the 2checkout-user_lib.pl file>>>>>>>>>>>>

$sc_gateway_username = '1234567';
$sc_order_script_url = "https://www.2checkout.com/cgi-bin/Abuyers/purchase.2c";
$x_Logo_URL = "";
$x_Color_Background = "#FFFFFF";
$x_Color_Link = "#0000FF";
$x_Color_Text = "#000000";
$x_Description = "Online Order at www.mysite.biz";
$x_Header_Html_Payment_Form = "<!--agorascript-pre
return \$anet_cart_table;
-->
";
$x_Footer_Html_Payment_Form = "this is the bottom of the order form";
$x_Header_Html_Receipt = "this is the top of the receipt page";
$x_Footer_Html_Receipt = "this is the bottom of the receipt page";
$x_Header_Email_Receipt = "this is the top of the customer email receipt";
$x_Footer_Email_Receipt = "<!--agorascript-pre
return \$anet_prod_in_cart;
-->

";
$merchant_live_mode = "yes";
1;

<<<<<<<<<<<<<>>>>>>>>>>>>>>>>

Any ideas why this is not populating the email properly?

As usual....

Thanks in advance to anyone who can help.

Bill

View user's profile Send private message
Reply with quote
Post RE: Everything's working except for user defined email field 
hell-o
you'll find that all of the user inputs from the manager are written to the store/admin_files/user files. this is a repository for customized variables and where sub routiens get there instructions from when one of the variables is encountered.
the email parameters concerning what content actually composes the emails are not included in the 2co user file. you would have to look in the store/library/2checkout-order_lib.pl and 2checkout-mgr_lib.pl as these files formulate the email and the content.
this situation maybe the result of an old gateway that functioned. but when 2co changed the parameters a fix was made which omitted these forms. i don't know. there are a lot of little things like this that need to be brought up to current but the priority is low on the dev side with all that's going on. many of these details are repaired by contributers then the fix posted.
so i would surmize that the user lib file is just fine. the other two in the library directory will be the ones to address to get this stuff added to the emails.
regards,
dan

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