Author |
Message |
handeye
Newbie - One Blade
Joined: 25 Sep 2009
Posts: 18
|
 Agoracart not passing totals or invoice # to Paypal
Hi it's me again.
http://www.halfacrehome.com/market/agora.cgi
I customized the Ordering and Order Confirmation pages the other day. Today I attempted to process a sale but found when the cart transfers the user to Paypal it requires the user to enter the total price and there is no invoice number. All of the shop manager sales information in "View New Orders" is blank as well. I'm afraid I broke my agora.pl and/or paypal.pl files, but I just wanted to check before I started banging my head on something hard.  I use Filezilla religiously to transfer files to my server so I'm hoping I just have a setting I failed to notice improperly set.
I am using only the Paypal gateway and using Agoracart v 5.2. If you need any more information to properly diagnose the situation, I will happily provide it. Thanks again for any insight.
|
Wed Mar 03, 10 6:26 pm |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
Private message or email me your login credentials for the store manager and FTP.
It is hard to tell what is getting included in the passing of data to PayPal.
My email is agora at scottcrewwebservices.com
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Thu Mar 04, 10 7:39 am |
 |
 |
handeye
Newbie - One Blade
Joined: 25 Sep 2009
Posts: 18
|
Sent. Thank you.
I am surprised this isn't a common issue.
|
Thu Mar 04, 10 10:14 am |
|
 |
handeye
Newbie - One Blade
Joined: 25 Sep 2009
Posts: 18
|
So can I just download and replace those files in the Library with fresh files and expect it to work if that's where the problem is? I was experiencing better connectivity prior to my changing them, so if I can just change those out without having to roll back further, that might be the quickest resolution.
|
Sun Mar 07, 10 7:20 am |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
If you have made ANY edits to those files, that would be a problem...
You MUST always maintain a backup of the file *before* you do any editing so that is a problem does occur, you can restore the store.
If at all possible, we do not recommend editing those files directly.
The use of codehooks and free form logic generally can be used to handle edits that you may need to do to the library files.
Why did you edit the library files and exactly which files did you edit?
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Sun Mar 07, 10 3:53 pm |
 |
 |
handeye
Newbie - One Blade
Joined: 25 Sep 2009
Posts: 18
|
I edited the agora_order_lib and the PayPal_order_lib files to change out buttons and change the text from "You forgot to fill in..." to "Please fill in...". I later found the "Make Changes" button field in the payment gateway (can you do rollover buttons in those fields?), but I never found another place to change the incomplete form text. I was directed to those files to make those changes via forum entries. The changes were easy and went very well...aside from breaking the store. I think I only had the presence of mind to backup one of those files before I started tinkering.
If I have to reinstall, so be it. What can be salvaged? Catastrophic errors make me stronger.
|
Sun Mar 07, 10 5:52 pm |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
You should be able to download a zip file of the store files from the download link (that would be the .tgz file).
You should not needed to make any changes to the agora_order_lib.pl file...
As for the buttons, you should have just changed the images in the 'protected/images' directory to have the image you wanted, not editing the file.
You can do mouseovers and it can be tricky to code properly.
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Sun Mar 07, 10 6:08 pm |
 |
 |
handeye
Newbie - One Blade
Joined: 25 Sep 2009
Posts: 18
|
How far back do I have to go? I reinstalled the two files and I can see my changes are gone but the link to Paypal isn't fixed (ie it isn't passing the totals or invoice number over). Do I have to start over with an entirely new clean install? or are there components I can salvage and just replace certain files and directories? or is it just that some setting isn't properly set?
The "Secure URL to your Gateway's server" is set to "https://www.paypal.com/xclick/business"
"The name you want for the order on the PayPal site:" is set to "PayPal Halfacre Home Purchase, INV#"
"The order number/identification you want to list/display at the PayPal site:" is set to "$sc_verify_inv_no"
Are any of these the culprit?
Thanks for your help
|
Mon Mar 08, 10 9:46 am |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
At this point, you could try just doing a reinstall to a different location.
Then set up the default cart, do not customize except to just get the cart all working through the checkout. Make sure that in the Shipping Settings manager the "Use Alternate Origins?" & "Enable Dimensions in Product Database?" are set to "NO". Also, in the sales tax manager the "Enable Non-Taxable Products?" is set "NO".
First get it all working using the offline gateway, then set up the PayPal gateway and make it primary. Then test.
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Mon Mar 08, 10 10:33 am |
 |
 |
handeye
Newbie - One Blade
Joined: 25 Sep 2009
Posts: 18
|
OK, I tore up the store for an improperly coded submit button at the bottom of the Paypal order form.
Is there a directory or set of files I can import to get back the product entries?
|
Mon Mar 08, 10 3:19 pm |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
Try the reinstall first...
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Mon Mar 08, 10 4:09 pm |
 |
 |
handeye
Newbie - One Blade
Joined: 25 Sep 2009
Posts: 18
|
I did. I got it working. Found the problem. Now I'm putting the pieces back together, and when I get close to the end I'll proceed more carefully with my changes and review the effects before I continue so I don't have to resort to wholesale destruction to determine what went wrong. Having the product database available would reduce the amount of work I have to repeat significantly.
Learning a lot though
|
Mon Mar 08, 10 4:25 pm |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
You can always transfer in the data.file back in...
Especially if you installed to another location for the time being...
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Mon Mar 08, 10 5:26 pm |
 |
 |
|