Adriano Faria Posted June 3, 2020 Share Posted June 3, 2020 About This File This resource will allow members to purchase files to other members. A new option to choose the member will show up in the checkout screen for those who can buy for anothers. Link to comment
GTAPoliceMods Posted June 4, 2020 Share Posted June 4, 2020 Does this work for subscriptions too? We have been looking for something that allows users to purchase a subscription as a gift for someone else. Thanks! Link to comment
Adriano Faria Posted June 4, 2020 Author Share Posted June 4, 2020 File is the content item from Downloads. It was designed to work only with it. David.. and GTAPoliceMods 2 Link to comment
Daddy Posted June 6, 2020 Share Posted June 6, 2020 (edited) I don't seem to have the Can Purchase File to Other Member option in Downloads -> Paid File Settings. Also, as @GTAPoliceMods mentioned, this would make a nice commerce plugin as well 🙂 Edited June 6, 2020 by Deathicated GTAPoliceMods 1 Link to comment
Adriano Faria Posted June 6, 2020 Author Share Posted June 6, 2020 2 hours ago, Deathicated said: I don't seem to have the Can Purchase File to Other Member option in Downloads -> Paid File Settings. Just re tested on my online board and seems fine: Run the support tool to rebuild cache. If it insists, send a PM with ACP credentials. I'll take a look tomorrow. Link to comment
Daddy Posted June 6, 2020 Share Posted June 6, 2020 (edited) @Adriano Faria I've figured it out. The option for Gift Files does not show when Downloads Plus application is enabled. Disabling that application let me configure the field. Seems to be working fine even after re-enabling Downloads Plus. Edited June 6, 2020 by Deathicated Link to comment
ahc Posted June 14, 2020 Share Posted June 14, 2020 Oooo, I really like this. Going to bookmark this for the future. (I also want to add a +1 for a version that also works for commerce because my members have been asking for this since 2017 and Invision has ignored my suggestions for it because of stupid gift cards haha.) Link to comment
Adriano Faria Posted November 1, 2022 Author Share Posted November 1, 2022 FROM NOVEMBER 1ST TO NOVEMBER 30TH. Link to comment
Daddy Posted August 9, 2023 Share Posted August 9, 2023 Needs update: BadMethodCallException: (0) #0 /home/-----/public_html/applications/nexus/sources/Invoice/Invoice.php(2016): IPS\nexus\_Purchase->__call('onPurchaseGener...', Array) #1 /home/-----/public_html/init.php(932) : eval()'d code(23): IPS\nexus\_Invoice->markPaid(Object(IPS\Member)) #2 /home/-----/public_html/applications/nexus/modules/admin/payments/invoices.php(284): IPS\nexus\hook2653->markPaid(Object(IPS\Member)) #3 /home/-----/public_html/system/Dispatcher/Controller.php(107): IPS\nexus\modules\admin\payments\_invoices->paid() #4 /home/-----/public_html/applications/nexus/modules/admin/payments/invoices.php(40): IPS\Dispatcher\_Controller->execute() #5 /home/-----/public_html/system/Dispatcher/Dispatcher.php(153): IPS\nexus\modules\admin\payments\_invoices->execute() #6 /home/-----/public_html/cfapp/index.php(13): IPS\_Dispatcher->run() #7 {main} Adriano Faria 1 Link to comment
Adriano Faria Posted August 10, 2023 Author Share Posted August 10, 2023 14 hours ago, Daddy said: Needs update: BadMethodCallException: (0) #0 /home/-----/public_html/applications/nexus/sources/Invoice/Invoice.php(2016): IPS\nexus\_Purchase->__call('onPurchaseGener...', Array) #1 /home/-----/public_html/init.php(932) : eval()'d code(23): IPS\nexus\_Invoice->markPaid(Object(IPS\Member)) #2 /home/-----/public_html/applications/nexus/modules/admin/payments/invoices.php(284): IPS\nexus\hook2653->markPaid(Object(IPS\Member)) #3 /home/-----/public_html/system/Dispatcher/Controller.php(107): IPS\nexus\modules\admin\payments\_invoices->paid() #4 /home/-----/public_html/applications/nexus/modules/admin/payments/invoices.php(40): IPS\Dispatcher\_Controller->execute() #5 /home/-----/public_html/system/Dispatcher/Dispatcher.php(153): IPS\nexus\modules\admin\payments\_invoices->execute() #6 /home/-----/public_html/cfapp/index.php(13): IPS\_Dispatcher->run() #7 {main} Just tested and works fine: I see this in the error you provided: Quote #2 /home/-----/public_html/applications/nexus/modules/admin/payments/invoices.php(284): IPS\nexus\hook2653->markPaid(Object(IPS\Member)) My resources haven't a hook in the markPaid method so it probably isn't coming from my resource. Send a message with ACP account so I can see to whom the hook 2653 belongs. Link to comment
Daddy Posted August 10, 2023 Share Posted August 10, 2023 2 hours ago, Adriano Faria said: My resources haven't a hook in the markPaid method so it probably isn't coming from my resource. The invoice was never marked paid, despite payment being accepted. The mark paid is me trying to mark it paid in the ACP but it errors out. Link to comment
Daddy Posted August 11, 2023 Share Posted August 11, 2023 I dug a bit deeper, and it seems the issue is users being able to type in an incorrect name while gifting a file. If the user does not exist, this error occurs where the invoice does not get marked paid. Trying to mark it manually paid produces the above error. Link to comment
Adriano Faria Posted August 14, 2023 Author Share Posted August 14, 2023 On 8/10/2023 at 11:22 PM, Daddy said: it seems the issue is users being able to type in an incorrect name while gifting a file I’ll check it out. Link to comment
Adriano Faria Posted August 14, 2023 Author Share Posted August 14, 2023 On 8/10/2023 at 11:22 PM, Daddy said: I dug a bit deeper, and it seems the issue is users being able to type in an incorrect name while gifting a file. If the user does not exist, this error occurs where the invoice does not get marked paid. Trying to mark it manually paid produces the above error. That's not the case; it has a validation, as expected: - Field is required: - A valid member is required: Link to comment
Recommended Posts