 | |  | | | Classifieds Bug Reports Post any problems you may be having with Classifieds here. |
May 1st, 2005, 06:55 PM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Jul 2004
Posts: 105
| Paypal payment notification
Looks like some info is dropped in this notice I get about payments: |
| |
August 5th, 2005, 03:39 AM
|
#2 (permalink)
| | Ultimate Member Verified Customer
Join Date: Sep 2002
Posts: 1,217
| Quote: |
Originally Posted by Rich Z Looks like some info is dropped in this notice I get about payments: | classifieds 2.41
same problem with this version...
|
| |
August 5th, 2005, 06:26 AM
|
#3 (permalink)
| | Ultimate Member Verified Customer
Join Date: Sep 2002
Posts: 1,217
|
I looked into the email.php within the language folder. At the buttom you will find:
-------------
// payment.php
$Globals['pp_lang']['payltr'] = "You have received a payment for the classified ad:\n\n{$Globals['maindir']}/showproduct.php?product=$adid\n\n
which should be in the amount of $adamtf.\n\nPlease verify your transaction records to ensure that proper payment was
received for this item.";
$Globals['pp_lang']['paysub'] = "Verify payment for Classified Ad #$adid";
------------------
So I guess the "$adamtf" seems to be the problem...
|
| |
August 5th, 2005, 06:48 AM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
That is the correct variable to use
|
| |
August 5th, 2005, 11:35 AM
|
#5 (permalink)
| | Ultimate Member Verified Customer
Join Date: Sep 2002
Posts: 1,217
|
mmmmhhh,
where else could be the reason?
|
| |
August 6th, 2005, 08:43 PM
|
#6 (permalink)
| | Junior Member Verified Customer
Join Date: Apr 2005 Location: New York
Posts: 18
|
Rich Z,
I really like your layout. Did it take you long to customize your classifieds site with that dhtml drop down button and show product page?
I'm new and I really would like to learn how you created that:
1.) next feature
2.) Shipping Cost
3.) Location
4.) Will Trade For:
5.) Telephone Number / Contact info.
Wow.. Thats cool
|
| |
August 18th, 2005, 07:45 AM
|
#7 (permalink)
| | Ultimate Member Verified Customer
Join Date: Sep 2002
Posts: 1,217
|
Any idea what the reason for the wrong notification could be?
|
| |
August 18th, 2005, 08:56 AM
|
#8 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
This is right in payment.php
$adamtf = "$" . number_format( $adamount, 2 );
I get an amount in my email and it seems to be formatted right
|
| |
August 18th, 2005, 09:14 AM
|
#9 (permalink)
| | Ultimate Member Verified Customer
Join Date: Sep 2002
Posts: 1,217
| Quote: |
Originally Posted by omegatron This is right in payment.php
$adamtf = "$" . number_format( $adamount, 2 );
I get an amount in my email and it seems to be formatted right | Same code that I have...
Does it makes a difference, if in admin menu the currency is EUR? Could that cause the problem?
|
| |
August 18th, 2005, 09:18 AM
|
#10 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
Not really all this will show is the email that goes out will show your amount in dollars. This will show the email amount in the currency you select in admin
$adamtf = "{$Globals['currency']}" . number_format( $adamount, 2 );
I dont see any reason why you would not be getting an amount sent in the email
|
| |
August 18th, 2005, 10:13 AM
|
#11 (permalink)
| | Ultimate Member Verified Customer
Join Date: Sep 2002
Posts: 1,217
| Quote: |
Originally Posted by omegatron Not really all this will show is the email that goes out will show your amount in dollars. This will show the email amount in the currency you select in admin
$adamtf = "{$Globals['currency']}" . number_format( $adamount, 2 );
I dont see any reason why you would not be getting an amount sent in the email | I made that chnage and tested it. still does not work. same content of email as before...
|
| |
August 18th, 2005, 10:18 AM
|
#12 (permalink)
| | Ultimate Member Verified Customer
Join Date: Sep 2002
Posts: 1,217
|
additionally (but I think i have posted thius already in another thread) the ad/auction does NOT show up for other users.
The subscriber got guided back to his ad after successfully payed with paypal. But as soon as I log out, this new auction does neither show up in "recent ads", nor when I serach with "last day", nor in the section where it was uploaded.
|
| |
August 18th, 2005, 10:28 AM
|
#13 (permalink)
| | Ultimate Member Verified Customer
Join Date: Sep 2002
Posts: 1,217
|
addendum:
ifg I log in as adminsitrator, I acn see in admin menu in "approve/bulk..." the ad. So there is a bug in the approval settings.
I checked usergroup permissions, options and categories. This user is allolowed to upload ads.
So there seems to be something hardcoded, that an ad or an auction has to be approved by default. This should be changed.
I know that in Photopost is an option in admin menu to decide whether image uploads need approval or not. this option does not exist on classifieds 2.41.
|
| |
August 19th, 2005, 05:42 AM
|
#14 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
| Code: Content visible to verified customers only.
I dont see what could be wrong here we code it properly here and it works when I test it. In payment.tmpl is this return url so
<input type="hidden" name="return" value="{$Globals['maindir']}/payment.php?action=paid&ad=$transcode">
That is the url that the user returns upon payment to the program so it will work
If they pay you and go closing the window or using the back button etc then this is the issue and not one of the program
|
| |
August 23rd, 2005, 03:39 AM
|
#15 (permalink)
| | Ultimate Member Verified Customer
Join Date: Sep 2002
Posts: 1,217
|
Hi,
I just tested it again it does not work for sure.
The user is guided after successfull payment back to his ad. So far so good. But when he clicks on "edit ad" the thumbnail apperas with "approval pending". So there IS a problem with the program.
If the user clicks then on "home", no ad from him is visible. But this is normal, if it is not yet approved.
I am not dreaming and I spent really a lot of time over the last 2 months with all the updated installations after this security fix nightmare and after that testing again and again classifieds for a proper functionality. I would appreciate it, if it would work soon so that I finally can use it on a life site.
So which file I have to check for getting finally the bug fixed? in your last post, you did not mention which file shall contain the very long code above.
Thanks in advance
|
| |
August 23rd, 2005, 04:32 AM
|
#16 (permalink)
| | Ultimate Member Verified Customer
Join Date: Sep 2002
Posts: 1,217
| Quote: |
Originally Posted by seffern2 additionally (but I think i have posted thius already in another thread) the ad/auction does NOT show up for other users.
The subscriber got guided back to his ad after successfully payed with paypal. But as soon as I log out, this new auction does neither show up in "recent ads", nor when I serach with "last day", nor in the section where it was uploaded. |
I just found the old thread again: http://www.photopost.com/members/for...54#post1106854
Since I made the detailed explanation today here and not in the old thread, I would perfer to continue here, or the admin can move the postings over to the other thread
|
| |
August 23rd, 2005, 09:52 AM
|
#17 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
I am going to take a stab here try this
in payment.php add the code in bold
typecast($_REQUEST, array('ad' => STRING, 'action' => STRING,'transcode' => INT));
We typecast ad which is transcode so I cant think of anything else except looking at the query you have moderation set to ON for the usergroups in question.
|
| |
August 24th, 2005, 03:57 AM
|
#18 (permalink)
| | Ultimate Member Verified Customer
Join Date: Sep 2002
Posts: 1,217
|
I tried that, but no success. To change in behaviour with that code, same as before.
in usergroups, "Moderate Ads?" was set to "no"
|
| |
August 24th, 2005, 04:13 AM
|
#19 (permalink)
| | Ultimate Member Verified Customer
Join Date: Sep 2002
Posts: 1,217
|
o.k., here are some new information:
I uploaded again a new ad/auction. Procedure as always, results as always. But now, I hit the back button in my browser.
Then I clicked on "edit ad". Same image with "approval pending" appears
No I click on save (I am still logged in as tester, not as admin). I get the confirmation alert that my chnages (i did not chnage anything) are saved.
Now I click on "home" and now suddenly the ad appears !!!
Even If I completely log-out. The ad is still visible.
So the fact that I clicked on "Save changes" as seller in my own ad after paypal guided me back to my ad, seems to make it work.
Maybe this helps to find the bug...
|
| |
August 24th, 2005, 07:33 PM
|
#20 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
Well I still dont get this
The file is coded properly and I cant reproduce it
if ( $action == "paid" ) {
// First, update the status of the ad and the approved flag
if ( $User['usemod'] == 0 ) {
// Needs approval, so give them that message
$Globals['pp_lang']['thankyou'] = $Globals['pp_lang']['thankapp'];
$query = "UPDATE {$Globals['pp_db_prefix']}products SET approved=0,paid=1 WHERE id=$adid";
}
else {
$query = "UPDATE {$Globals['pp_db_prefix']}products SET approved=1,paid=1 WHERE id=$adid";
}
$resultb = ppmysql_query($query, $link);
You can see action and ad are both typecast here so if action=paid this gets executed and we use ad to get the $adid
So my number one question would be more along this line
Are you getting redirected back to the payment script with this url and a transaction code displayed?? Note the lines below that come right from the payment template
<input type="hidden" name="return" value="{$Globals['maindir']}/payment.php?action=paid&ad=$transcode">
<input type="hidden" name="cancel_return" value="{$Globals['maindir']}/payment.php?action=cancel?ad=$transcode">
So whether you cancel or go through payment you should get redirected back to the payment page. What do your links look like?
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 11:05 AM. | |