New answers tagged

0

Try This Code app/code/VendoreName/CustomizeAttributeSet/Controller/Adminhtml/Index Save.php <?php namespace VendoreName\CustomizeAttributeSet\Controller\Adminhtml\Index; use Magento\Framework\App\Action\HttpPostActionInterface as HttpPostActionInterface; class Save extends \Magento\Catalog\Controller\Adminhtml\Product\Set implements ...


0

For Magento 2.3.4 you can use this: use Magento\Catalog\Model\ResourceModel\Product\CollectionFactory; class SomeClass { protected $collectionFactory; public function __construct( CollectionFactory $collectionFactory, ) { $this->collectionFactory = $collectionFactory; } public function something() { $...


0

Take the following steps to change the Attribute set's Group Go to Store > Products -> Attribute set and Select Attribute and move to "General" Group


0

Try Below Code: $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $productData = $objectManager->create('\Magento\Catalog\Api\ProductRepositoryInterface')->getById(12);// addd Product ID echo $productData->getResource()->getAttribute('shop_status')->getFrontend()->getValue($productData); OR protected $...


0

Had the same issue and in my case it was caused by a product import with a third party extension. As a completion to @Fabian the solution that I found is to find all the bundle products that are problematic and save them manually from admin panel. This is a solution when you do not have a large number of bundle products, otherwise maybe a script that will ...


1

you need to try this code. <?php if(($_product->getYourCustomattribute())) { echo $this->getLayout()->createBlock('cms/block')->setBlockID('Your_Block_Id')->tohtml(); } ?>


0

Try this code: $_helper = $this->helper('Magento\Catalog\Helper\Output'); echo $_attributeValue = $block->getProduct()->getResource()->getAttribute('your_attribute')->getFrontend()->getValue($block->getProduct());


0

You need to remove empty values manually or execute sql query in your database.You need to take DB backup.


Top 50 recent answers are included