[XFA] RM Marketplace/Shop - XF2

[XFA] RM Marketplace/Shop - XF2 [Paid] 5.8.5

No permission to buy (€60.00)
I get this error trying to remove an order for a resource that was removed

Code:
ErrorException: [E_WARNING] Attempt to read property "xfa_rmmp_type" on null src/addons/XFA/RMMarketplace/Service/Order/Delete.php:42
Generated by: VisEntities Sep 30, 2024 at 6:44 PM
Stack trace
#0 src/addons/XFA/RMMarketplace/Service/Order/Delete.php(42): XF::handlePhpError(2, '[E_WARNING] Att...', 's...', 42)
#1 src/addons/XFA/RMMarketplace/Pub/Controller/Order.php(116): XFA\RMMarketplace\Service\Order\Delete->delete()
#2 src/XF/Mvc/Dispatcher.php(362): XFA\RMMarketplace\Pub\Controller\Order->actionDelete(Object(XF\Mvc\ParameterBag))
#3 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('XFA\\RMMarketpla...', 'Delete', Object(XF\Mvc\RouteMatch), Object(XFA\RMMarketplace\Pub\Controller\Order), NULL)
#4 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XFA\RMMarketplace\Pub\Controller\Order), NULL)
#5 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#6 src/XF/App.php(2813): XF\Mvc\Dispatcher->run()
#7 src/XF.php(802): XF\App->run()
#8 index.php(23): XF::runApp('XF\\Pub\\App')
#9 {main}
Request state
array(4) {
  ["url"] => string(36) "/plugins/market-place-order/6/delete"
  ["referrer"] => string(64) "https://game4freak.io/plugins/market-place-dashboard/view-orders"
  ["_GET"] => array(1) {
    ["/plugins/market-place-order/6/delete"] => string(0) ""
  }
  ["_POST"] => array(5) {
    ["_xfToken"] => string(8) "********"
    ["_xfRedirect"] => string(64) "https://game4freak.io/plugins/market-place-dashboard/view-orders"
    ["_xfResponseType"] => string(4) "json"
    ["_xfWithData"] => string(1) "1"
    ["_xfRequestUri"] => string(43) "/plugins/market-place-dashboard/view-orders"
  }
}
 
I get this error trying to remove an order for a resource that was removed

Code:
ErrorException: [E_WARNING] Attempt to read property "xfa_rmmp_type" on null src/addons/XFA/RMMarketplace/Service/Order/Delete.php:42
Generated by: VisEntities Sep 30, 2024 at 6:44 PM
Stack trace
#0 src/addons/XFA/RMMarketplace/Service/Order/Delete.php(42): XF::handlePhpError(2, '[E_WARNING] Att...', 's...', 42)
#1 src/addons/XFA/RMMarketplace/Pub/Controller/Order.php(116): XFA\RMMarketplace\Service\Order\Delete->delete()
#2 src/XF/Mvc/Dispatcher.php(362): XFA\RMMarketplace\Pub\Controller\Order->actionDelete(Object(XF\Mvc\ParameterBag))
#3 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('XFA\\RMMarketpla...', 'Delete', Object(XF\Mvc\RouteMatch), Object(XFA\RMMarketplace\Pub\Controller\Order), NULL)
#4 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XFA\RMMarketplace\Pub\Controller\Order), NULL)
#5 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#6 src/XF/App.php(2813): XF\Mvc\Dispatcher->run()
#7 src/XF.php(802): XF\App->run()
#8 index.php(23): XF::runApp('XF\\Pub\\App')
#9 {main}
Request state
array(4) {
  ["url"] => string(36) "/plugins/market-place-order/6/delete"
  ["referrer"] => string(64) "https://game4freak.io/plugins/market-place-dashboard/view-orders"
  ["_GET"] => array(1) {
    ["/plugins/market-place-order/6/delete"] => string(0) ""
  }
  ["_POST"] => array(5) {
    ["_xfToken"] => string(8) "********"
    ["_xfRedirect"] => string(64) "https://game4freak.io/plugins/market-place-dashboard/view-orders"
    ["_xfResponseType"] => string(4) "json"
    ["_xfWithData"] => string(1) "1"
    ["_xfRequestUri"] => string(43) "/plugins/market-place-dashboard/view-orders"
  }
}
For more info, it shows this date as purchase date

1727789656253.webp
 
How to turn the button to the orange color same as those free resources
View attachment 311778

View attachment 311779
You would need to edit the xfa_rmmp_resource_header template.
Search for button--link and replace it by button--cta.
Also how to hide the Purchases from showing, which template to edit
View attachment 311780
You would need to disable this template modification:
Capture d’écran 2024-10-02 à 17.49.53.webp
What does this permission mean? Does it mean that if it's set No, then they can buy but can't download?


View attachment 311792
No, people with the permission set to yes can download anything without paying.
I get this error trying to remove an order for a resource that was removed

Code:
ErrorException: [E_WARNING] Attempt to read property "xfa_rmmp_type" on null src/addons/XFA/RMMarketplace/Service/Order/Delete.php:42
Generated by: VisEntities Sep 30, 2024 at 6:44 PM
Stack trace
#0 src/addons/XFA/RMMarketplace/Service/Order/Delete.php(42): XF::handlePhpError(2, '[E_WARNING] Att...', 's...', 42)
#1 src/addons/XFA/RMMarketplace/Pub/Controller/Order.php(116): XFA\RMMarketplace\Service\Order\Delete->delete()
#2 src/XF/Mvc/Dispatcher.php(362): XFA\RMMarketplace\Pub\Controller\Order->actionDelete(Object(XF\Mvc\ParameterBag))
#3 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('XFA\\RMMarketpla...', 'Delete', Object(XF\Mvc\RouteMatch), Object(XFA\RMMarketplace\Pub\Controller\Order), NULL)
#4 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XFA\RMMarketplace\Pub\Controller\Order), NULL)
#5 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#6 src/XF/App.php(2813): XF\Mvc\Dispatcher->run()
#7 src/XF.php(802): XF\App->run()
#8 index.php(23): XF::runApp('XF\\Pub\\App')
#9 {main}
Request state
array(4) {
  ["url"] => string(36) "/plugins/market-place-order/6/delete"
  ["referrer"] => string(64) "https://game4freak.io/plugins/market-place-dashboard/view-orders"
  ["_GET"] => array(1) {
    ["/plugins/market-place-order/6/delete"] => string(0) ""
  }
  ["_POST"] => array(5) {
    ["_xfToken"] => string(8) "********"
    ["_xfRedirect"] => string(64) "https://game4freak.io/plugins/market-place-dashboard/view-orders"
    ["_xfResponseType"] => string(4) "json"
    ["_xfWithData"] => string(1) "1"
    ["_xfRequestUri"] => string(43) "/plugins/market-place-dashboard/view-orders"
  }
}
That is a bug, please report it on our website in the dedicated section.
For more info, it shows this date as purchase date

View attachment 311829
For orders from delete resources ?
How can I customize the item name and item id?

View attachment 311864
What view is that ?
 
I am bit surprised with those orders with an incorrect purchase date.
Can you show me the content of your xf_xfa_rmmp_purchase table ?
 
I am bit surprised with those orders with an incorrect purchase date.
Can you show me the content of your xf_xfa_rmmp_purchase table ?
It happens when same user makes double purchase, one paid other unpaid. and I delete the unpaid, and it turns like this:
1728404050197.webp
 
You don't need to delete the unpaid it should be automatically deleted.
What are the exact steps you did to delete and get there ?
 
You don't need to delete the unpaid it should be automatically deleted.
What are the exact steps you did to delete and get there ?
I go to market-place-dashboard/view-orders then click the delete icon.

The thing why it's happening a lot that users are making double payments is that because after the firs tpurchase they make, they get redirecte d to the purchases tab, but their order doesn't appear there instantly but after a few minutes, that's why they think it didn't work and they make a second payment. So maybe if it showed instantly their order it would reduce from these double purchases
 
@XFA Can we add a bbcode that will hide contents in a particular resource description unless the user pays? Kind of like how discussions are hidden until user pays for that resource.

Or can we use the custom bbcode page to make one and how?
 
No you can't and I think such a feature could be quite extensive in terms of queries to implement.

You are aware that you can limit the resource thread access to purchasers ?
 
No you can't and I think such a feature could be quite extensive in terms of queries to implement.

You are aware that you can limit the resource thread access to purchasers ?
Yes, I guess that would be the only way. Thank you for clarifying.
 
  • Like
Reactions: XFA
I think I found a bug, when we choose "service offer" as product type, it doesn't show the purchase button in xfrm_resource_wrapper_macros
When I link directly to the url to purchase it works so the button is just missing.

Also $resource.isDownloadable() $resource.canDownload() doesn't work with a resource using "service offer"
 
Last edited:
Thanks for reporting it, I'll check out.

Did you open a bug thread on our forum ?
 
I have just tried service offer and it does display.
However, it does not display to the seller that might be what mistaken you ?
 
Back
Top Bottom