Adriano Faria Posted May 1, 2017 Posted May 1, 2017 About This File Based visually in the My Paid Files page from IPS Marketplace, this plugin will add the ability to file submitters to add manual purchases for their files. Requirements: Commerce Downloads, with the Commerce integration enabled. Settings: Files per page on index listing Purchases per page on file view Display purchasers If disabled, file submitter will not be able to view who bought their files Groups allowed to use this feature Note: made by request. BomAle 1
SJ77 Posted May 6, 2017 Posted May 6, 2017 (edited) I am just going to post here because I can't update my review. I feel like people don't understand what this does. Trust me you NEED this you just don't know it yet. (read on) This mod allows your contributors to downloads who contribute PAID files the ability the manually generate an invoice for a user. This gives your contributors the ability to have more control over their business on your site. for example, your contributors can offer 1 free download to anyone who makes the most posts in a specific thread. or they can offer a free download as a customer service measure to make one of your customers happy. They can also BETTER see who downloaded their files and how many times. (this works better than built in system) Really, it will be the best $10 you spend all week. TRY IT!! This mod SAVED MY A$$: As many of you know I was recently hacked. I had to go to a backup made several days prior to the hacking. What about customers who purchased after the backup? Do they have to re-buy the video? It's easy enough to have contributors re-upload the files but without this mod there would have been no way for contributors to manually add purchases for customers who already paid. I would have to do all of it myself in the ACP. Edited May 6, 2017 by superj707 Joel R and Adriano Faria 1 1
SJ77 Posted August 6, 2017 Posted August 6, 2017 PLease get this working for 4.2,, .. this is one of those MUST have plugin's
Adriano Faria Posted August 6, 2017 Author Posted August 6, 2017 What's New in Version 1.0.1: IPS 4.2 compatibility. Do not use it on a 4.1 board. SJ77 1
TheJackal84 Posted November 9, 2017 Posted November 9, 2017 (edited) EDIT The button is fine on live site but still have the problem with the table when changing pages the tables in my paid files purchasers when you go to page 2 say it gives a error the url it gives is this mypaidfiles/file/0-%257B%3F%257D/&page=2 and this code Error code: MY PAID FILES/3 Edited November 9, 2017 by TheJackal84
TheJackal84 Posted November 11, 2017 Posted November 11, 2017 Not answering me? very professional, I will edit it myself to fix the mistakes and make it work while adding all the missing divisions to the templates
SJ77 Posted November 11, 2017 Posted November 11, 2017 3 hours ago, TheJackal84 said: Not answering me? very professional, I will edit it myself to fix the mistakes and make it work while adding all the missing divisions to the templates could you get me the fix for this too?
newbie LAC Posted November 11, 2017 Posted November 11, 2017 5 hours ago, TheJackal84 said: Not answering me? very professional, I will edit it myself to fix the mistakes and make it work while adding all the missing divisions to the templates BomAle, Adriano Faria, Meddysong and 1 other 3 1
TheJackal84 Posted November 11, 2017 Posted November 11, 2017 23 minutes ago, newbie LAC said: don't remember seeing that when I posted, but if it was there I apologize, I fixed most of it so far anyway, its just the server error from the cron jobs renewals to do
TheJackal84 Posted November 11, 2017 Posted November 11, 2017 (edited) OK so I fixed everything needed fixing but if anyone has already generated purchases then they need to edit their database (read at the bottom for that ) First is the simple it's just adding the <li> </li> class to the purchases button so it don't kiss the renew button Is for the tables in the mypaidfilesFiles.php in line 97 $table = new \IPS\Helpers\Table\Db( 'nexus_purchases', \IPS\Http\Url::internal( 'app=downloads&module=downloads&controller=browse&do=contributorsviewfile&id={$id}', 'front', 'downloads_contributors_file' ), $where ); Needs to be $table = new \IPS\Helpers\Table\Db( 'nexus_purchases', \IPS\Http\Url::internal( "app=downloads&module=downloads&controller=browse&do=contributorsviewfile&id={$id}", 'front', 'downloads_contributors_file', $file->name_furl ), $where ) Its just the ' ' at the start and end of the url needs to be " " as it don't read the {$id} and the furl is not reading the $file->name_furl as it's not added In the generate purchase controller we need to change the 'ps_renewals' => $expire > 0 ? 1 : 0, on line 215 to 'ps_renewals' => $file->renewal_term, all its doing is trying to add the expire time to the db where it should be like 1 or 6 for 1 year or 6 months and add 'ps_renewal_unit' => $file->renewal_units, to it as it don't know the period of the renewal, but if there is no renewal set for a file, it will throw another error that renewal_units cants be null so I used if ( $file->renewal_units ) { $save = array( 'ps_member' => $values['mypaidfiles_member']->member_id, 'ps_name' => $file->name, 'ps_active' => 1, 'ps_start' => $values['mypaidfiles_purchased']->getTimestamp(), 'ps_expire' => $expire, 'ps_app' => "downloads", 'ps_type' => "file", 'ps_item_id' => $file->id, 'ps_renewals' => $file->renewal_term, 'ps_renewal_price' => $price, 'ps_renewal_unit' => $file->renewal_units, 'ps_renewal_currency' => \IPS\nexus\Customer::loggedIn()->defaultCurrency() ); } else { $save = array( 'ps_member' => $values['mypaidfiles_member']->member_id, 'ps_name' => $file->name, 'ps_active' => 1, 'ps_start' => $values['mypaidfiles_purchased']->getTimestamp(), 'ps_expire' => $expire, 'ps_app' => "downloads", 'ps_type' => "file", 'ps_item_id' => $file->id, 'ps_renewals' => $file->renewal_term, 'ps_renewal_price' => $price, 'ps_renewal_currency' => \IPS\nexus\Customer::loggedIn()->defaultCurrency() ); } another little edit will be in the purchasersRows.phtml to edit from line 24 replacing <div class="ipsDataItem_generic ipsDataItem_size8"> {{if $row['ps_expire']}} {lang="mypaidfiles_expires"} {datetime="$row['ps_expire']"} {{else}} {lang="mypaidfiles_noexpire"} {{endif}} </div> with <div class="ipsDataItem_generic ipsDataItem_size8"> {{if $row['ps_expire'] AND $row['ps_expire'] < $time}} {lang="Expired"} {{elseif $row['ps_expire']}} {lang="mypaidfiles_expires"} {datetime="$row['ps_expire']"} {{else}} {lang="mypaidfiles_noexpire"} {{endif}} </div> Adding whatever lang string you want, that way if the file is expired it will show expired instead of the expire date. then anyone who has generated their purchases will need to edit their database adding the proper renewals terms and the renewal units otherwise it cant generate any renewal invoices and will throw a server error, Unless you make a little plugin to do it that way by pulling the file id and stuff then updating the columns Don't mean to be rude by this post just hoping it will help / be easier with fixing the errors Edited November 14, 2017 by TheJackal84 Adriano Faria and SJ77 2
TheJackal84 Posted November 11, 2017 Posted November 11, 2017 (edited) 4 hours ago, superj707 said: could you get me the fix for this too? It will be better to wait for @Adriano Faria to update it then to take let's say a hack of it ( I call it hack because it is not my work and I would be annoyed if someone edited mine and gave it to my customers ), I have put everything in a post above to what needs doing so hopefully he won't need to search through it all etc to find the errors etc, I have tested it already on my live site with them edits and its fine, and the tasks for the renewals no longer through a error they now send the mails Edited November 11, 2017 by TheJackal84 SJ77 1
Adriano Faria Posted November 15, 2017 Author Posted November 15, 2017 What's New in Version 1.0.2: Fix issues pointed in the post. Tks to @TheJackal84 Let me know if anyone else needs some assistence to "fix" the manually gerenerated purchases. TheJackal84 1
Adriano Faria Posted July 6, 2018 Author Posted July 6, 2018 What's New in Version 1.0.3: GDPR compliance: removes purchaser email address from file submitters; they will see the user group intead. Email address keeps appearing to admin users.
SJ77 Posted January 7, 2019 Posted January 7, 2019 (edited) My folks are seeing the add manual purchase button twice. Can you help? @Adriano Faria Edited January 7, 2019 by SJ77
Adriano Faria Posted January 7, 2019 Author Posted January 7, 2019 @sj77,l I already saw your post when you posted. You don't need to bump. I will test and fix when I'm able to, today or tomorrow, etc. I'm sure one button showing twice isn't crashing your board so you can wait a litte bit.
Adriano Faria Posted January 7, 2019 Author Posted January 7, 2019 3 hours ago, SJ77 said: My folks are seeing the add manual purchase button twice. Can you help? @Adriano Faria That's not what shows to me: It should display the PURCHASERS button and when you click on it, it will have an option to add a manual purchase. Make sure you are using latest version and if you are, disable the app/plugin that adds this 2 other buttons there to see how it goes.
SJ77 Posted January 7, 2019 Posted January 7, 2019 2 hours ago, Adriano Faria said: That's not what shows to me: It should display the PURCHASERS button and when you click on it, it will have an option to add a manual purchase. Make sure you are using latest version and if you are, disable the app/plugin that adds this 2 other buttons there to see how it goes. I am using the latest version 😞 I don't know why it's not working right
SJ77 Posted February 18, 2019 Posted February 18, 2019 still not working I see add manual purchase twice
Adriano Faria Posted February 18, 2019 Author Posted February 18, 2019 9 hours ago, SJ77 said: still not working I see add manual purchase twice And I still can't reproduce. I can't even see the button that shows up in your screenshot: Shows up to me PURCHASERS... for you, ADD PURCHASE. I wouldn't waste more time and would uninstall it and reinstall it. Also, disable all other plugins related to Downloads and test this alone to determine if it's a conflict with something else. ---------------------------------------------------------------- The screenshots above is from IPS 4.4, so it is compatible with IPS 4.4.
Adriano Faria Posted February 18, 2019 Author Posted February 18, 2019 I download the file from the marketplace today earlier to make the test I did in the last post I did. Try it.
Adriano Faria Posted April 30, 2019 Author Posted April 30, 2019 What's New in Version 1.1.0: New features: Adds a widget with a button linking to My Paid Files page, so you can use it anywhere you want, not only in a couple of Downloads pages Adds a setting to allow/disallow file submitter to generate purchases Compatible with IPS 4.4 only! Maxxius 1
SJ77 Posted June 3, 2019 Posted June 3, 2019 Just found out this allows files submitter to rate and review their own files. Not good. Being used by some of my file contributors to cheat and fake up ratings. Please help
TheJackal84 Posted June 3, 2019 Posted June 3, 2019 1 hour ago, SJ77 said: Just found out this allows files submitter to rate and review their own files. Not good. Being used by some of my file contributors to cheat and fake up ratings. Please help Don't think that is anything to do with this file, I can review any of my files here and also on my own site, always been able to as long as I have downloaded it, it will let me review ( settings are set to download before review on downloads settings ) SJ77 1
Adriano Faria Posted June 3, 2019 Author Posted June 3, 2019 (edited) 2 hours ago, TheJackal84 said: Don't think that is anything to do with this file Yes, it’s a default behavior from reviews model and it happens in any app, not only in Downloads. Edited June 3, 2019 by Adriano Faria SJ77 1
Recommended Posts