XR Product Manager

XR Product Manager [Paid] 2.1.0

No permission to buy (£15.00)
can version strings be disabled?
It’s primarily designed for selling digital products but theoretically, yes.

I suppose the easiest thing to do is allow products to be created and put any value in the version string field, but then remove or hide that so that people don’t see them when they view the product.

Is it possible to sell VIP or corporate memberships?
I’m not sure what that would mean exactly in the context of selling digital products. It sounds like user upgrades would be the most appropriate thing or maybe a paid registrations add-on.
 
For some reason there is some permission issues with the add-on as my customers aren't seeing any products. All I did was upgrade the add-on. I'm also getting this error with latest version:
Code:
InvalidArgumentException: Phrase rendering error: Phrase group An unexpected error occurred is not a valid format src/XF/Language.php:298
Generated by: Geiri Sep 16, 2024 at 1:09 PM
Stack trace
#0 src/XF/Language.php(267): XF\Language->loadPhraseGroup('An unexpected e...')
#1 src/XF/Language.php(136): XF\Language->getPhraseText('An unexpected e...')
#2 src/XF/Phrase.php(54): XF\Language->renderPhrase('An unexpected e...', Array, 'html', Array)
#3 src/XF/Phrase.php(61): XF\Phrase->render()
#4 internal_data/code_cache/templates/l1/s76/public/error.php(30): XF\Phrase->__toString()
#5 src/XF/Template/Templater.php(1792): XF\Template\Templater->{closure}(Object(MaZ\AUN\XF\Template\Templater), Array, NULL)
#6 src/addons/MaZ/AUN/XF/Template/Templater.php(39): XF\Template\Templater->renderTemplate('error', Array, true, NULL)
#7 src/XF/Template/Template.php(24): MaZ\AUN\XF\Template\Templater->renderTemplate('public:error', Array)
#8 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#9 src/XF/Mvc/Renderer/Html.php(39): XF\Mvc\Renderer\Html->renderView('XF:Error', 'public:error', Array)
#10 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Renderer\Html->renderErrors(Array)
#11 src/XF/Mvc/Dispatcher.php(412): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\Error))
#12 src/XF/Mvc/Dispatcher.php(66): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\Error), 'html')
#13 src/XF/App.php(2826): XF\Mvc\Dispatcher->run()
#14 src/XF.php(806): XF\App->run()
#15 index.php(23): XF::runApp('XF\\Pub\\App')
#16 {main}
Request state
array(4) {
  ["url"] => string(37) "/products/joyfreak-open-graph-image.1"
  ["referrer"] => string(20) "https://xenforo.com/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
Code:
Server error log
ErrorException: Template error: [E_USER_WARNING] Method canViewProducts is not callable on the given object (XF\Entity\User) src/XF/Template/Templater.php:1278
Generated by: Unknown account Sep 17, 2024 at 4:10 PM
Stack trace
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, '[E_USER_WARNING...', '/home/1187995.c...', 1278)
#1 src/XF/Template/Templater.php(1278): trigger_error('Method canViewP...', 512)
#2 internal_data/code_cache/navigation_cache.php(453): XF\Template\Templater->method(Object(XF\Entity\User), 'canViewProducts', Array)
#3 src/XF/Template/Templater.php(8137): XF\Pub\App->{closure}(Object(XF\Template\Templater), 'forums', Array)
#4 src/XF/Pub/App.php(624): XF\Template\Templater->renderNavigationClosure(Object(Closure), 'forums', Array)
#5 src/XF/Pub/App.php(575): XF\Pub\App->getNavigation(Array, 'forums')
#6 src/XF/App.php(2573): XF\Pub\App->renderPageHtml('














...', Array, Object(XF\Mvc\Reply\View), Object(XF\Mvc\Renderer\Html))
#7 src/XF/Mvc/Dispatcher.php(414): XF\App->renderPage('














...', Object(XF\Mvc\Reply\View), Object(XF\Mvc\Renderer\Html))
#8 src/XF/Mvc/Dispatcher.php(66): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#9 src/XF/App.php(2826): XF\Mvc\Dispatcher->run()
#10 src/XF.php(806): XF\App->run()
#11 index.php(23): XF::runApp('XF\\Pub\\App')
#12 {main}
Request state
array(4) {
  ["url"] => string(68) "/threads/promote-your-video-game-streaming-channel-videos-here.1700/"
  ["referrer"] => bool(false)
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
That would usually only happen if the add-on is disabled. But good point. I’ll work around that for the next version.

As for the products not showing, all I can suggest is checking permissions. No one else has reported similar and I cannot reproduce that.
 
That would usually only happen if the add-on is disabled. But good point. I’ll work around that for the next version.

As for the products not showing, all I can suggest is checking permissions. No one else has reported similar and I cannot reproduce that.
Since I upgraded and enabled the add-on, I had like over 200+ pages of errors, all of which were different. The above I reported were only a couple from the list. I disabled it and cleared the log and no errors have been produced. I truly believe something is wrong with the permission as nothing has been changed other than I had to disable it as it was incompatible with the latest version. I have checked permissions as well and nothing appears out of the ordinary.
 
When trying to upload an image for my product, on my test server, I keep getting met with the following error:

The uploaded file does not have an allowed extension. The following extensions are allowed: .jpg, .jpeg, .jpe, .png, .gif

I've tried multiple different images, all different formats, and none of them are working. I am able to upload these same images to posts and into another add-on I have built.

Also, nothing is showing up in the error log or browser console.
 
Oops. This is likely to do with image optimization uploading a webp image instead of the original format. I missed this when updating for 2.3 compatibility.

Of course one solution could be to turn off image optimization. But assuming you don't want to do that, until the next update you will have to make a code change.

Edit the file src/addons/XR/PM/Attachment/ProductImage.php
Find:

PHP:
$constraints['extensions'] = ['jpg', 'jpeg', 'jpe', 'png', 'gif'];

Change to:

PHP:
$constraints['extensions'] = ['jpg', 'jpeg', 'jpe', 'png', 'gif', 'webp'];
 
Oops. This is likely to do with image optimization uploading a webp image instead of the original format. I missed this when updating for 2.3 compatibility.

Of course one solution could be to turn off image optimization. But assuming you don't want to do that, until the next update you will have to make a code change.

Edit the file src/addons/XR/PM/Attachment/ProductImage.php
Find:

PHP:
$constraints['extensions'] = ['jpg', 'jpeg', 'jpe', 'png', 'gif'];

Change to:

PHP:
$constraints['extensions'] = ['jpg', 'jpeg', 'jpe', 'png', 'gif', 'webp'];

Yep, that worked. Thank you!
 
Does this add-on keep track on whether the purchaser has downloaded the add-on? This may come into play when an user would like a refund.
 
Back
Top Bottom