 | |  | | | Classifieds How do I...? Wondering how to do something in Classifieds? |
October 8th, 2006, 01:49 PM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Dec 2004
Posts: 230
| charging for highlight, bold, italics
I know I have something screwed up...
I have paypal set up in "Payment Options".
I have prices in my "Edit Categories" for options "highlight, bold, italics"
When I ad a charge to the basic cost of the ad, it does not show up.
They do not show up when uploading ads, no (for an additional $2.00)
I have probably changed a file/files somewhere which is interfereing with the process. Which files should I check?
Most of my problems have been solved by going back to the originals...
Last edited by rcull; October 8th, 2006 at 02:02 PM.
|
| |
October 8th, 2006, 02:02 PM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,940
|
Use Payment is that set to yes in edit usergroups?
|
| |
October 8th, 2006, 03:25 PM
|
#3 (permalink)
| | Member Verified Customer
Join Date: Dec 2004
Posts: 230
|
Allow Payment is set to "yes"
Last edited by rcull; October 8th, 2006 at 03:30 PM.
|
| |
October 8th, 2006, 03:45 PM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,940
|
I suggest you run unmodified files as I see no issues with this functionality in the default code
|
| |
March 15th, 2008, 05:18 PM
|
#5 (permalink)
| | Member Verified Customer
Join Date: Oct 2007
Posts: 66
|
Hi Chuck,
I've just upgraded to version 3.0 and have the same problem as above:
- I've added all new files.
- 'Registered Users' Usergroup has 'Allow Payment?' set to 'Yes'.
- Classified Category has 'Cost of highlighting' set to 1.00
But still no cost appears next to 'Check here to highlight your ad:' when a 'Registered User' is creating an Ad with uploadproduct.php,
Any ideas?
Many thanks
Ron
|
| |
March 15th, 2008, 07:52 PM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,940
|
I would have to see how you have it setup.
|
| |
March 15th, 2008, 07:57 PM
|
#7 (permalink)
| | Member Verified Customer
Join Date: Oct 2007
Posts: 66
|
I haven't changed any of the settings from version 2.6 Chuck, all I've done is upload the new files. What settings have you in mind?
|
| |
March 15th, 2008, 08:17 PM
|
#8 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,940
|
None of that was changed since 2.6 either either.
The code is quite simple we look to see a user requires payment and then setup the costs if there are costs. Code: Content visible to verified customers only.
|
| |
March 16th, 2008, 01:34 AM
|
#9 (permalink)
| | Member Verified Customer
Join Date: Oct 2007
Posts: 66
|
Hi Chuck,
The uploadproduct.php is unchanged from the 'pp-classifieds30' install files I uploaded yesterday. 'payment' and 'Highlight' in the 'usergroups' table are both set to 1 for 'Registered Users', and 'adhigh' is set to '2.00' in the 'categories' table for the specified category.
Everything appears perfectly in place any other ideas?
----------------------------- STOP -----------------------------
Just found out the difference!
In your code above the second line reads:
if ( $User['payment'] == 1 )
But in the new download it reads:
if ( $User['payment'] == 1 && $freecheck == "yes" )
I've just removed '&& $freecheck == "yes" ' and it works.
So what's this little extra piece of code for?
|
| |
March 16th, 2008, 11:00 AM
|
#10 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,940
|
No use the correct code freecheck is correct.
Make sure free ads is set to 0 in admin. See if your query fails to add payment then that tells me you have free ads set to something other than 0.
|
| |
March 16th, 2008, 11:06 AM
|
#11 (permalink)
| | Member Verified Customer
Join Date: Oct 2007
Posts: 66
|
In the 'PhotoPost Classifieds UserGroup Editor' every usergroup has 'Free Ads?' set to '0' and it always has been.
And in he database all group in the 'usergroups' table has 'free' set to '0'
I'll go and add the above code back as you've requested.
Last edited by Ronseal; March 16th, 2008 at 11:15 AM.
|
| |
March 16th, 2008, 11:21 AM
|
#12 (permalink)
| | Member Verified Customer
Join Date: Oct 2007
Posts: 66
|
Just re-introduced the 3.0 version of uploadproduct.php and I'm back to square one. I can't run a live 'Classifieds' section like this so got to remove it again... |
| |
March 16th, 2008, 12:36 PM
|
#13 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,940
|
You can redownload the build and upload the uploadproduct.php file. You need to have a base charge for an ad but the free stuff I added an extra conditional on for freecheck.
|
| |
March 16th, 2008, 12:41 PM
|
#14 (permalink)
| | Junior Member Verified Customer
Join Date: Aug 2007
Posts: 13
| Payment for Ads knocked out
Hi Chuck,
I posted the question last time in the incorrect place.
I have tried the removal of the $freecheck in uploadproduct.php and you can see the amounts alongside the check boxes. BUT the ad still gets uploaded and bypasses the PayPal routine.
Thus no ads are being paid for - if there is no solution in the short term can I back out the upgrade by overwriting with the full classifieds backup made just prior to the version 3.0 upgrade?
cheers
Roy
|
| |
March 16th, 2008, 12:46 PM
|
#15 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,940
|
I already answered in your thread and this one
redownload the code and upload uploadproduct.php
|
| |
March 16th, 2008, 01:19 PM
|
#16 (permalink)
| | Member Verified Customer
Join Date: Oct 2007
Posts: 66
|
Thanks Chuck,
I've just downloaded the new 3.0 install (Build: 3/16/08) and uploaded the new 'uploadproduct.php' file and on first glance all appears to be working fine.
Great support as always and I'll get back to you if I spot any problems.
Many thanks. |
| |
March 16th, 2008, 01:43 PM
|
#17 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,940
|
Not a problem have a good weekend.
Change I made made no sense as before I simply used yes or no and it did not work but I changed freecheck to 0 and 1 and it works fine go figure
|
| | |
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 10:37 PM. | |