Fatal error: Uncaught Error: Call to undefined method Magento\Catalog\Model\Product\Type\Simple::getUsedProducts() in /home/devremybattery/public_html/app/code/Bss/Simpledetailconfigurable/Observer/SetChildCustomOption.php:72 Stack trace: #0 /home/devremybattery/public_html/vendor/magento/framework/Event/Invoker/InvokerDefault.php(88): Bss\Simpledetailconfigurable\Observer\SetChildCustomOption->execute(Object(Magento\Framework\Event\Observer)) #1 /home/devremybattery/public_html/vendor/magento/framework/Event/Invoker/InvokerDefault.php(74): Magento\Framework\Event\Invoker\InvokerDefault->_callObserverMethod(Object(Bss\Simpledetailconfigurable\Observer\SetChildCustomOption), Object(Magento\Framework\Event\Observer)) #2 /home/devremybattery/public_html/vendor/magento/framework/Event/Manager.php(66): Magento\Framework\Event\Invoker\InvokerDefault->dispatch(Array, Object(Magento\Framework\Event\Observer)) #3 /home/devremybattery/public_html/generated/code/Magento/Framework/Event/Manager/Proxy.php(95): Magento\Framework\Event\ in /home/devremybattery/public_html/app/code/Bss/Simpledetailconfigurable/Observer/SetChildCustomOption.php on line 72