Fatal error: Uncaught Error: Call to undefined method Magento\Catalog\Model\Product\Type\Simple::getUsedProducts() in /usr/share/nginx/html/crocs/app/code/Apparel/Oos/view/frontend/templates/product/pdp-stock-detail.phtml:7
Stack trace:
#0 /usr/share/nginx/html/crocs/vendor/magento/framework/View/TemplateEngine/Php.php(59): include()
#1 /usr/share/nginx/html/crocs/vendor/magento/framework/View/Element/Template.php(271): Magento\Framework\View\TemplateEngine\Php->render(Object(Apparel\Oos\Block\Data), '/usr/share/ngin...', Array)
#2 /usr/share/nginx/html/crocs/vendor/magento/framework/View/Element/Template.php(301): Magento\Framework\View\Element\Template->fetchView('/usr/share/ngin...')
#3 /usr/share/nginx/html/crocs/vendor/magento/framework/View/Element/AbstractBlock.php(668): Magento\Framework\View\Element\Template->_toHtml()
#4 /usr/share/nginx/html/crocs/vendor/magento/framework/View/Layout.php(557): Magento\Framework\View\Element\AbstractBlock->toHtml()
#5 /usr/share/nginx/html/crocs/vendor/magento/framework/View/Layout.php(533): Magento\Framework\View\Layout->_renderBlock('product.stock.d...')
#6 /usr/share/nginx/html/crocs/vendor/magento/framework/View/Layout.php(488): Magento\Framework\View\Layout->renderNonCachedElement('product.stock.d...')
#7 /usr/share/nginx/html/crocs/vendor/magento/framework/View/Layout.php(585): Magento\Framework\View\Layout->renderElement('product.stock.d...', false)
#8 /usr/share/nginx/html/crocs/vendor/magento/framework/View/Layout.php(535): Magento\Framework\View\Layout->_renderContainer('product.stock.d...', false)
#9 /usr/share/nginx/html/crocs/vendor/magento/framework/View/Layout.php(488): Magento\Framework\View\Layout->renderNonCachedElement('product.stock.d...')
#10 /usr/share/nginx/html/crocs/vendor/magento/framework/View/Layout.php(585): Magento\Framework\View\Layout->renderElement('product.stock.d...', false)
#11 /usr/share/nginx/html/crocs/vendor/magento/framework/View/Layout.php(535): Magento\Framework\View\Layout->_renderContainer('product.info.ri...', false)
#12 /usr/share/nginx/html/crocs/vendor/magento/framework/View/Layout.php(488): Magento\Framework\View\Layout->renderNonCachedElement('product.info.ri...')
#13 /usr/share/nginx/html/crocs/vendor/magento/framework/View/Layout.php(585): Magento\Framework\View\Layout->renderElement('product.info.ri...', false)
#14 /usr/share/nginx/html/crocs/vendor/magento/framework/View/Layout.php(535): Magento\Framework\View\Layout->_renderContainer('product.info.ma...', false)
#15 /usr/share/nginx/html/crocs/vendor/magento/framework/View/Layout.php(488): Magento\Framework\View\Layout->renderNonCachedElement('product.info.ma...')
#16 /usr/share/nginx/html/crocs/vendor/magento/framework/View/Layout.php(585): Magento\Framework\View\Layout->renderElement('product.info.ma...', false)
#17 /usr/share/nginx/html/crocs/vendor/magento/framework/View/Layout.php(535): Magento\Framework\View\Layout->_renderContainer('content', false)
#18 /usr/share/nginx/html/crocs/vendor/magento/framework/View/Layout.php(488): Magento\Framework\View\Layout->renderNonCachedElement('content')
#19 /usr/share/nginx/html/crocs/vendor/magento/framework/View/Layout.php(585): Magento\Framework\View\Layout->renderElement('content', false)
#20 /usr/share/nginx/html/crocs/vendor/magento/framework/View/Layout.php(535): Magento\Framework\View\Layout->_renderContainer('main', false)
#21 /usr/share/nginx/html/crocs/vendor/magento/framework/View/Layout.php(488): Magento\Framework\View\Layout->renderNonCachedElement('main')
#22 /usr/share/nginx/html/crocs/vendor/magento/framework/View/Layout.php(585): Magento\Framework\View\Layout->renderElement('main', false)
#23 /usr/share/nginx/html/crocs/vendor/magento/framework/View/Layout.php(535): Magento\Framework\View\Layout->_renderContainer('columns', false)
#24 /usr/share/nginx/html/crocs/vendor/magento/framework/View/Layout.php(488): Magento\Framework\View\Layout->renderNonCachedElement('columns')
#25 /usr/share/nginx/html/crocs/vendor/magento/framework/View/Layout.php(585): Magento\Framework\View\Layout->renderElement('columns', false)
#26 /usr/share/nginx/html/crocs/vendor/magento/framework/View/Layout.php(535): Magento\Framework\View\Layout->_renderContainer('main.content', false)
#27 /usr/share/nginx/html/crocs/vendor/magento/framework/View/Layout.php(488): Magento\Framework\View\Layout->renderNonCachedElement('main.content')
#28 /usr/share/nginx/html/crocs/vendor/magento/framework/View/Layout.php(585): Magento\Framework\View\Layout->renderElement('main.content', false)
#29 /usr/share/nginx/html/crocs/vendor/magento/framework/View/Layout.php(535): Magento\Framework\View\Layout->_renderContainer('page.wrapper', false)
#30 /usr/share/nginx/html/crocs/vendor/magento/framework/View/Layout.php(488): Magento\Framework\View\Layout->renderNonCachedElement('page.wrapper')
#31 /usr/share/nginx/html/crocs/vendor/magento/framework/View/Layout.php(585): Magento\Framework\View\Layout->renderElement('page.wrapper', false)
#32 /usr/share/nginx/html/crocs/vendor/magento/framework/View/Layout.php(535): Magento\Framework\View\Layout->_renderContainer('root', false)
#33 /usr/share/nginx/html/crocs/vendor/magento/framework/View/Layout.php(488): Magento\Framework\View\Layout->renderNonCachedElement('root')
#34 /usr/share/nginx/html/crocs/vendor/magento/framework/View/Layout.php(954): Magento\Framework\View\Layout->renderElement('root')
#35 /usr/share/nginx/html/crocs/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\View\Layout->getOutput()
#36 /usr/share/nginx/html/crocs/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\View\Layout\Interceptor->___callParent('getOutput', Array)
#37 /usr/share/nginx/html/crocs/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}()
#38 /usr/share/nginx/html/crocs/generated/code/Magento/Framework/View/Layout/Interceptor.php(52): Magento\Framework\View\Layout\Interceptor->___callPlugins('getOutput', Array, Array)
#39 /usr/share/nginx/html/crocs/vendor/magento/framework/View/Result/Page.php(258): Magento\Framework\View\Layout\Interceptor->getOutput()
#40 /usr/share/nginx/html/crocs/vendor/magento/framework/View/Result/Layout.php(171): Magento\Framework\View\Result\Page->render(Object(Magento\Framework\App\Response\Http\Interceptor))
#41 /usr/share/nginx/html/crocs/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\View\Result\Layout->renderResult(Object(Magento\Framework\App\Response\Http\Interceptor))
#42 /usr/share/nginx/html/crocs/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\View\Result\Page\Interceptor->___callParent('renderResult', Array)
#43 /usr/share/nginx/html/crocs/app/code/Amasty/PageSpeedOptimizer/Plugin/ProcessPageResult.php(40): Magento\Framework\View\Result\Page\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Response\Http\Interceptor))
#44 /usr/share/nginx/html/crocs/vendor/magento/framework/Interception/Interceptor.php(135): Amasty\PageSpeedOptimizer\Plugin\ProcessPageResult->aroundRenderResult(Object(Magento\Framework\View\Result\Page\Interceptor), Object(Closure), Object(Magento\Framework\App\Response\Http\Interceptor))
#45 /usr/share/nginx/html/crocs/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\View\Result\Page\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Response\Http\Interceptor))
#46 /usr/share/nginx/html/crocs/generated/code/Magento/Framework/View/Result/Page/Interceptor.php(26): Magento\Framework\View\Result\Page\Interceptor->___callPlugins('renderResult', Array, NULL)
#47 /usr/share/nginx/html/crocs/vendor/magento/framework/App/Http.php(140): Magento\Framework\View\Result\Page\Interceptor->renderResult(Object(Magento\Framework\App\Response\Http\Interceptor))
#48 /usr/share/nginx/html/crocs/vendor/magento/framework/App/Bootstrap.php(258): Magento\Framework\App\Http->launch()
#49 /usr/share/nginx/html/crocs/pub/index.php(40): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor))
#50 {main}
thrown in /usr/share/nginx/html/crocs/app/code/Apparel/Oos/view/frontend/templates/product/pdp-stock-detail.phtml on line 7