2

By default magento 2 provide that option. During configuration product , on the third step u can choose "Apply unique prices by attribute to each SKU" and assign unique price for your super attribute Update: Added more SC for your clarification


1

If you are on a product page then if ($_product->isSaleable()) or if ($_product->isAvailable()) should do the job If you are handling the product collection in your block code, I would look into adding \Magento\CatalogInventory\Helper\Stock $stockHelper $stockHelper->AddIsInStockFieldToCollection($productCollection) for 2.3.3 or $...


1

You might be looking for something this. <?php $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $Stock = $objectManager->get('\Magento\CatalogInventory\Api\StockStateInterface'); echo $Stock->getStockQty($product->getId(), $product->getStore()->getWebsiteId()); ?>


1

As of Magento 2.2 the admin System Configuration Panel "Advanced" has been removed. The following gives reference on how to disable a module's output. https://devdocs.magento.com/guides/v2.3/config-guide/config/disable-module-output.html


Only top voted, non community-wiki answers of a minimum length are eligible