New answers tagged

0 votes

How can I set zero price for simple product programmatically?

Create a PHP script in the root directory of your Magento installation (e.g., set_zero_price.php). <?php use Magento\Framework\App\Bootstrap; require __DIR__ . '../../app/bootstrap.php'; $...
Mohit Patel's user avatar
  • 3,750
1 vote

How can I set zero price for simple product programmatically?

Try to load product by SKU & Factory class: <?php use Magento\Framework\App\Bootstrap; require __DIR__ . '/app/bootstrap.php'; $bootstrap = Bootstrap::create(BP, $_SERVER); $objectManager = $...
Deepak MageDivine's user avatar
0 votes

Multiple filtering by SKUS for products in categories

<?php declare(strict_types=1); namespace vendor\module\Block\Adminhtml\; use Magento\Backend\Block\Widget\Grid\Extended; class classname extends \Magento\Catalog\Block\Adminhtml\Category\Tab\...
ketan Prajapati's user avatar
1 vote
Accepted

Multiple filtering by SKUS for products in categories

We need to rewrite tab Magento\Catalog\Block\Adminhtml\Category\Tab\Product class and use the _prepareColumns() method. First, create preference in etc/adminhtml/di.xml <?xml version="1.0"...
Ann's user avatar
  • 51
0 votes

Magento 2.4.4 upgrade after credit memo grid gives requested store wasn't found error?

Comment these line if ($store->getId() === null) { throw new NoSuchEntityException( __("The store that was requested wasn't found. Verify the store and try again.") ...
Official Testing's user avatar
0 votes

Exporting Categories Data from Magento 2.4.2 and importing to Magento 2.4.6

I could do the needful via direct database table data importing, I didnt not observer any structural differences between two versions. I copied data of following tables.
Indunil Ramadasa's user avatar

Top 50 recent answers are included