PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Classifieds Support > Classifieds Bug Reports

Classifieds Bug Reports Post any problems you may be having with Classifieds here.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old May 1st, 2005, 07: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:
Quote:
You have received a payment for the classified ad:

http://www.faunaclassifieds.com/pp_c...p?product=2162


which should be in the amount of .

Please verify your transaction records to ensure that proper payment was
received for this item.
Rich Z is offline   Reply With Quote
Old August 5th, 2005, 04:39 AM   #2 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,172
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...
snoopy5 is offline   Reply With Quote
Old August 5th, 2005, 07:26 AM   #3 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,172
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...
snoopy5 is offline   Reply With Quote
Old August 5th, 2005, 07:48 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,788
That is the correct variable to use
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old August 5th, 2005, 12:35 PM   #5 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,172
mmmmhhh,

where else could be the reason?
snoopy5 is offline   Reply With Quote
Old August 6th, 2005, 09: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
tcroft2683 is offline   Reply With Quote
Old August 18th, 2005, 08:45 AM   #7 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,172
Any idea what the reason for the wrong notification could be?
snoopy5 is offline   Reply With Quote
Old August 18th, 2005, 09:56 AM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,788
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
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old August 18th, 2005, 10:14 AM   #9 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,172
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?
snoopy5 is offline   Reply With Quote
Old August 18th, 2005, 10:18 AM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,788
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
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old August 18th, 2005, 11:13 AM   #11 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,172
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...
snoopy5 is offline   Reply With Quote
Old August 18th, 2005, 11:18 AM   #12 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,172
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.
snoopy5 is offline   Reply With Quote
Old August 18th, 2005, 11:28 AM   #13 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,172
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.
snoopy5 is offline   Reply With Quote
Old August 19th, 2005, 06:42 AM   #14 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,788
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
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old August 23rd, 2005, 04:39 AM   #15 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,172
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
snoopy5 is offline   Reply With Quote
Old August 23rd, 2005, 05:32 AM   #16 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,172
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
snoopy5 is offline   Reply With Quote
Old August 23rd, 2005, 10:52 AM   #17 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,788
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.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old August 24th, 2005, 04:57 AM   #18 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,172
I tried that, but no success. To change in behaviour with that code, same as before.

in usergroups, "Moderate Ads?" was set to "no"
snoopy5 is offline   Reply With Quote
Old August 24th, 2005, 05:13 AM   #19 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,172
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...
snoopy5 is offline   Reply With Quote
Old August 24th, 2005, 08:33 PM   #20 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,788
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?
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Paypal Cancel Echeck Payment stitch Before You Buy 12 June 30th, 2008 03:23 PM
Payment Gateway(s) Shadowsuite Before You Buy 4 May 3rd, 2006 09:36 AM
Paypal payment tomshawk Before You Buy 4 August 2nd, 2005 06:56 AM
Other payment ways VampireMan Before You Buy 1 April 21st, 2005 09:43 PM
Payment for Install osariase Before You Buy 2 March 18th, 2005 04:44 PM


All times are GMT -5. The time now is 07:11 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0