New answers tagged

0

Try This $_productStock = $this->_stockItemRepository->get('product id'); $_productStockQty = $_productStock->getQty();


0

Admin Dashboard Go: System > Export > Select Entity Type > Export File Format


0

A quick workaround, maybe not the best solution. I just deleted the user and created it again and he was able to run the profile on the Mass Product Import & Update again.


0

Finally, I found a solution for this I have the override Magento/CatalogImportExport/Model/Import/Product.php file Created di.xml in the following file path app/code/StackExchange/AdditionalItems/etc/di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:...


0

Below script will help you out to directly download the wishlist details within csv for respective customer. $csvGenerate = array(); $csvGenerate[] = array("Product Name","Product ID"); $customerId = 'respective_customer_id'; //CUSTOMER_ID $wishlistCollection = $block->getWishlistByCustomerId($customerId); if(count($wishlistCollection)) { foreach ($...


0

If you got all wishlist collection, and create you CSV, you have to do similar something like this below, also I've did this to get product collection in a CSV, you have to customize this code according to your collection data: $_filename = 'WishlistCollection.csv'; $file = fopen(YOUR_FILE_PATH . '/' . $_filename, 'w'); fputcsv($file, self::HEADINGS, ",", '"...


3

Please replace your code with below content <?php use Magento\Framework\App\Bootstrap; use Magento\Framework\Filesystem\DirectoryList; require __DIR__ . '/app/bootstrap.php'; $bootstrap = Bootstrap::create(BP, $_SERVER); $objectManager = $bootstrap->getObjectManager(); $state = $objectManager->get('Magento\Framework\App\State'); $state->...


2

Please replace your code with below code and check: <?php use Magento\Framework\App\Bootstrap; use Magento\Framework\App\Filesystem\DirectoryList; require __DIR__ . '/app/bootstrap.php'; $bootstrap = Bootstrap::create(BP, $_SERVER); $objectManager = $bootstrap->getObjectManager(); $state = $objectManager->get('Magento\Framework\App\State'); $...


Top 50 recent answers are included