New answers tagged

3

customize the code according to your requirement i have written it for one my work where i needed to export products from magento 1. i this code am just taking the sku, id , and price you can take other things as well if you want. <?php // output headers so that the file is downloaded rather than displayed header('Content-Type: text/csv; charset=utf-8'...


1

I understood your concern, that you want to add new products, update existing products price and product attribute value without mess up with old data. I recommended you to create a patch command to import-products, In this patch include below conditions Check Website code and Store view condition Whether the product has existing or not To update any data, ...


0

You can create a CRON workflow and reuse the module-import-export model to import any entity. This is an example class to define the Magento import model. <?php use Magento\Framework\App\Filesystem\DirectoryList; use Magento\ImportExport\Model\Import\Adapter as ImportAdapter; use Magento\ImportExport\Model\Import\ErrorProcessing\...


0

I think you are looking for this program example, which might be best option. There is also a note about images in comments. I would consider, having some sort of rollback strategy along with cron module, something like (pseudo code) take product data dump run cron import if Import successful delete dump log something else if import fail ...


0

According to: You also can create different columns with the attribute_code of your custom attributes & fill the data into it & upload the file. It will works with it as well. I have create my csv file like this: sku;My_First_multichoice_attribute_code;My_Second_multichoice_attribute_code product_sku;value-A|value-B;value-X|value-Y|value-Z ; - is a ...


0

Yes, sure. You can use a third-party tool called Skyvia for this purpose. It connects to Magento via its API and allows exporting all major Magento tables in CSV files. It has a free account, too, so you can test it. Saves a lot of time as requires little to no configuration and coding


1

follow my steps:- create your controller and add below code in to it ExportCsv.php <?php namespace Yourpackage\Yourmodule\Controller\Adminhtml\Sample; class ExportCsv extends \Magento\Backend\App\Action { protected $_fileFactory; protected $_response; protected $_view; protected $directory; protected $converter; protected $resultPageFactory ; ...


1

You can add exportButton to your custom grid. https://devdocs.magento.com/guides/v2.3/ui_comp_guide/components/ui-exportbutton.html https://stackoverflow.com/questions/35644662/magento2-export-button-csv-in-custom-grid


0

Please change the URL of the existing product temporarily and import. Once imported successfully, change the URL as it was previously. Thank you.


Top 50 recent answers are included