Welcome Visitor, Please Login or Register Now Thursday, April 25, 2024 07:23 AM 
Forums Index > Mewsoft Products > Auctionawy > Credit Card Payment Email Fails to populate correct information
New Topic   New Reply
Search for:
Author Message
cbitterfield cbitterfield's personal page
Registered Member
Posts: 59 Display member's posts
Joined: 12-28-05 08:25 PM
Member Offline
View Member's Profile Send private message
 
Back to top
Credit Card Payment Email Fails to populate correct information Edit Delete Reply with quote Quote
First Post Posted on: 09-17-09 03:26 PM next post first post
I having been having issues with the email coming after a credit card deposit(member payment) not having the correct information.

The default message is:
[cgi-bin/auction/data/language/English/AccountMgr.PM]

cc_payment_email_message~==~Dear <!--FName--> <!--LName-->, Thank you for your payment. For your information, your payment details as follows: Amount: [[currency]]<!--Amount-->, Your user ID is: <!--User_ID-->. Thank you

Notice the First and Last Name.

The only fields that will show up are User_ID and Password and amount.

I reloaded the Auctionawy software from scratch on a new webserver installation and the problem is persistant.

I noticed that the AccountMgr.PM file has the following information: [cgi-bin/auction/AccountMgr.PM]
        $Out =~ s/<!--User_ID-->/$User{User_ID}/;
        $Out =~ s/<!--First_Name-->/$User{FName}/;
        $Out =~ s/<!--Last_Name-->/$User{LName}/;
        $Out =~ s/<!--Street-->/$User{Street}/;
        $Out =~ s/<!--City-->/$User{City}/;
        $Out =~ s/<!--State-->/$User{State}/;
        $Out =~ s/<!--Zip-->/$User{Zip}/;
        $Out =~ s/<!--Country-->/$User{Country}/;
        $Out =~ s/<!--Phone-->/$User{Phone}/;
        $Out =~ s/<!--Email-->/$User{Email}/;
        $Out =~ s/<!--Company-->/$User{Company}/;

I have tried First_Name and every variation that I know. Has anyone solved or seen this issue?

-C
cbitterfield cbitterfield's personal page
Registered Member
Posts: 59 Display member's posts
Joined: 12-28-05 08:25 PM
Member Offline
View Member's Profile Send private message
 
Back to top
I have located the offending Module, but I need assistance. Edit Delete Reply with quote Quote
Reply #: 1 Posted on: 09-21-09 04:10 PM next post previous post
cgi-bin/auction/MoneyMgr.pm

[What I know is that if I change one of the Msg lines to <!--TEST_Code-->/"TEST MESSAGE"/g;

Then the message is replaceable with the class "<!--TEST_Code-->". Which means that $Para{FName} is not set properly.

Anybody got a clue as to why this does not populate? I have seen a similar issue one another "Area" as well. with <!--Site_Name--> not working.



=== Code Snipet ===

       &Make_Deposit($Param{User_ID}, $Param{Amount}, &Time(time), $Source, $Auth_Code, $Trans_ID);
        $Temp = $dbh->quote($Param{User_ID});

        $Msg = &Translate_Classes(&Translate($Language{cc_payment_email_message}));
        $Msg=~ s/<!--FName-->/$Param{FName}/g;
        $Msg=~ s/<!--LName-->/$Param{LName}/g;
        $Msg=~ s/<!--User_ID-->/$Param{User_ID}/g;
        $Msg=~ s/<!--Password-->/$Param{Password}/g;
        $Msg=~ s/<!--Amount-->/$Param{Amount}/g;
        $Msg=~ s/<!--Auth_Code-->/$Auth_Code/g;
        $Msg=~ s/<!--Trans_ID-->/$Trans_ID/g;
       
        $Subj = &Translate($Language{cc_payment_email_subject});

        #Email($From, $TO, $Subject,   $Message);
        &Email($Global{Billing_Email}, $User{Email}, $Subj, $Msg);

        $Plugins{Body} = &Translate($Language{cc_payment_accepted_msg});
        &Display($Global{AccountManager_Template});
}      

mewsoft mewsoft's personal page
Administrator Team Member
Posts: 5381 Display member's posts
Joined: 04-25-24 07:23 AM
Location: knxoville, TN, USA
Member Offline
View Member's Profile Visit member's website Mewsoft Corporation Send private message ICQ Messenger: ICQ AIM Messenger: AIM YIM Messenger: Yahoo MSN Messenger: MSN
 
Back to top
Re: Credit Card Payment Email Fails to populate correct information Edit Delete Reply with quote Quote
Reply #: 2 Posted on: 09-22-09 01:40 AM next post previous post

Edit the file MoneyMgr.pm change the above starting from line 204  lines to:

 $Msg=~ s/<!--FName-->/$User{FName}/g;
 $Msg=~ s/<!--LName-->/$User{LName}/g;
 $Msg=~ s/<!--User_ID-->/$User{User_ID}/g;
 $Msg=~ s/<!--Password-->/$User{Password}/g;

and use the classes shown in the code above.


Mewsoft Support
www.mewsoft.com

cbitterfield cbitterfield's personal page
Registered Member
Posts: 59 Display member's posts
Joined: 12-28-05 08:25 PM
Member Offline
View Member's Profile Send private message
 
Back to top
That fixed most of the issue - Thanks (One last issue) Edit Delete Reply with quote Quote
Reply #: 3 Posted on: 09-23-09 05:34 PM next post previous post
I change the code (Line 204) as below. And that works as expected.\ \ \ $Msg = &Translate_Classes(&Translate($Language{cc_payment_email_message}));\ $Msg=~ s//$User{FName}/g;\ $Msg=~ s//$User{LName}/g;\ $Msg=~ s//$User{User_ID}/g;\ $Msg=~ s//$User{Password}/g;\ $Msg=~ s//$Param{Amount}/g;\ $Msg=~ s//$Auth_Code/g;\ $Msg=~ s//$Trans_ID/g;\ \ The Class Site_Name does not work as part of the email. (I am using it in the Subject line). Do I need to add a $Msg =~ line for this or is it another issue?
mewsoft mewsoft's personal page
Administrator Team Member
Posts: 5381 Display member's posts
Joined: 04-25-24 07:23 AM
Location: knxoville, TN, USA
Member Offline
View Member's Profile Visit member's website Mewsoft Corporation Send private message ICQ Messenger: ICQ AIM Messenger: AIM YIM Messenger: Yahoo MSN Messenger: MSN
 
Back to top
Re: Credit Card Payment Email Fails to populate correct information Edit Delete Reply with quote Quote
Reply #: 4 Posted on: 09-23-09 06:56 PM last post previous post

Insert this line anywaye before this code:

&Read_Classes;


Mewsoft Support
www.mewsoft.com

Page 1 of 1
Go to page:

New Topic   New Reply Mark Unread
Jump to:  
Delete   Move     Lock   +Favorits   +Notify   Print