Importing Product Images on Magento

Multiple product images of each type can be imported into Magento, and associated with a specific product. The path and file name of each product image is entered in the CSV file, and the image files to be imported are uploaded to the corresponding path on the Magento server or external server.

Magento creates its own directory structure for product images that is organized alphabetically. When you export product data with existing images to a CSV file, you can see the alphabetized path before the file name of each image. However, when you import new images, you don’t need to specify a path, because Magento manages the directory structure automatically. Just make sure to enter the relative path to the import directory before the file name of each image to be imported.

To upload images, you must have login credentials and correct permissions to access to the Magento folder on the server. With the correct credentials, you can use any SFTP utility to upload the files from your desktop computer to the server.

Before you try to import a large amount of images, review the steps in the import method that you want to use, and run through the process with a few products. After you understand how it works, you’ll feel confident importing large quantities of images.

Important! We recommend that you use a program that supports UTF-8 encoding to edit CSV files, such as Notepad++or OpenOffice Calc. Microsoft Excel inserts additional characters into the column header of the CSV file, which can prevent the data from being imported back into Magento.

Method 1: Import Images from the Local Server

  1. On the Magento server, upload the image files to the pub/media/import folder. This is the default folder for importing product images.
  • [magento installation folder]/pub/media/import 

You can use a different folder on the Magento server, as long as the path to the folder is specified during the import process.

  2. In the CSV data, enter the name of each image file to be imported on the correct row, by sku, and in the correct column according to image type (base_imagesmall_imagethumbnail_image, or additional_images).

For images in the default import folder(/pub/media/import), do not include the path before the filename in the CSV data.

The CSV file must include only the sku column and the related image columns.

 
CSV Import Image from Default Location

  3. Follow the instructions to import the data.

After selecting the file to import, enter the relative path following Images File Directory:

  • /pub/media/import

 
Images File Directory

If importing multiple images for a single sku, insert a blank row below the sku, and enter the additional image file names in the appropriate columns. The additional rows are understood to belong to the parent sku.

时间: 2024-08-15 18:12:21

Importing Product Images on Magento的相关文章

Magento 2开发教程 - 如何添加新产品属性

添加产品属性是一种在Magento 1 和 Magento 2最受欢迎的业务. 属性是解决许多与产品相关的实际任务的有力方法. 这是一个相当广泛的话题,但在这个视频中,我们将讨论添加一个下拉类型属性到产品的简单过程. 对于这个练习,假定安装了示例数据集. 我们将添加一个属性叫做clothing_material与可能的值:Cotton, Leather, Silk, Denim, Fur, 和 Wool. 我们将在"产品视图"页面上以粗体文本显示此属性. 我们将它分配给默认属性集,并添

Magento 属性与属性集

Use In Layered Navigation: 控制前台筛选的选项 ·        Use in Layered Navigation (can be used only with catalog input typeDropdown, Multiple Select and Price). Since we selected  "Dropdown", thisoption is active  and we can select e.g. Filterable (with r

麦进斗Magento2添加新的产品搜索引擎

Magento的2社区版配备了支持,仅在MySQL的搜索引擎,但有些项目需要,以增加销售或转化率更好或更可调整的搜索引擎.在这种情况下,我们正在实施的Solr或Elasticsearch搜索引擎. 在这篇文章中,我们将创建一个框架代码或粗糙的例子介绍,使我们能够实现像Solr的或额外的Elasticsearch搜索引擎主要的类和方法.如果你把在Magento 2管理员一起来看看,你可以找到一个位置的搜索引擎配置:商店- >配置- >目录- >目录搜索和下拉"搜索引擎"

magento related/upsell product 及产品/分类调用

catalog/product调用 $product_model = Mage::getModel('catalog/product'); $product = $product_model->load($product_id); //可通过product_id 获取 product_name$product->getName(); $product_url = $product->getUrlModel()->getUrl($product, array('_ignore_cat

How to change a product dropdown attribute to a multiselect in Magento

First, update the attribute input type to multiselect: UPDATE eav_attribute SET entity_type_id = '4', attribute_model = NULL, backend_model = 'eav/entity_attribute_backend_array', backend_type = 'varchar', backend_table = NULL, frontend_model = NULL,

magento sort array product IDs

$attributes = Mage::getSingleton('catalog/config')->getProductAttributes(); $collection = Mage::getModel('catalog/product') ->getCollection() ->addAttributeToFilter('entity_id', array('in' => $productIds)) ->addAttributeToSelect($attributes

magento 修改产品类型的方法 change product type

很多时候,要把之前录入的单一产品转换成可配置的产品类型,在管理后台是不能直接修改的,只能修改数据库.其方法是: 进入数据库,找到catalog_product_entity这个表,在 type_id 字段,把 simple 改成 configurable. 改成其它类型也可以,MAGENTO总共有以下类型: simple grouped configurable virtual bundle downloadable 如果大批量的产品需要类型转换,可以在数据库里面使用命令操作.

magento结构解析

Magento 模块 模块( module )是 Magento 的核心.站点上的任何一个动作( action ),无论是在前台和还是在后台的每一个操作都是通过模块来实现的.模块是可以视为一个容器,它可包含下面这几项:设置 (settings) ,数据库模式 (database schema) ,呈现对象 (rendering object) ,辅助工具类 (utility helpers) ,数据模型 (data models) 或动作控制器 (action controller) .一个模块

Magento开发经验总结(一、 初初见你——产品属性集搜索模块)

一. 初初见你——产品属性集搜索模块 产品属性搜索模块作为我第一个开发的定制功能模块,对于我个人理解magento系统内部规则与机制.二次开发规则等具有极其重要的意义.可以这么说,通过此模块的开发,我轻轻叩开了magento系统开发的大门,第一次看到了门内复杂.深邃.丰富及灵活的运行机制. 在门外徘徊的我感触良多,magento上手难这件事情我真真切切得感受到了,但是一旦入了门,我们可以从过程中学到非常多的东西,如深入理解设计模式.构建软件理论.模式设计.领域驱动设计等等. 1. 功能需求:新创