How to use function from block into model file. I have use

$instanceBlock = $this->_objectManager->get('Magento\Catalog\Block\Product\View\Attributes')

i have try to use the code above but doesn't work to call functions from block to a model

  • On which model class?
    – Amit Bera
    Aug 2 at 5:45
  • class IsSalableWithReservationsCondition extends \Magento\InventorySales\Model\IsProductSalableForRequestedQtyCondition\IsSalableWithReservationsCondition i'm extending that class @AmitBera
    – Bayzel
    Aug 2 at 5:52


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.