How to put categories from manufacturer csv file into already existing categories with Magmi - magento

I have a webshop with some categories in my root folder.
Root categorie
- Home
- Toys
- Accessoires
- Bricks
etc
From my manufacturer i can download every night a csv file with categoryname1/categoryname2/categoryname3/categoryname4 etc.
What i want to do is the following:
If categoryname1 equals "toys" then Magmi must make the categoryname under my already existing category "Toys". Also al the products from the csv file in the categoryname1 column must be imported and assigned to the right category in Magento.
I also want to exclude some categorys from the csv file of my manufacturer. These excluded categorys must not be imported in my shop.
Is this possible with magmi?
My csv file from the manufacturer is realy big, with lotst of products and categories.
Hope you guys can help me out. I have already worked with magmi, but i was'nt be able to fix this one.

This is doable using the ValueReplacer plugin which has interesting mapping capabilities.
You can use the ValueRemapper Helper of this plugin to use a mapping file between your input csv value & the values that are to be ingested by magmi. It can also create a composite value from several input columns (here you may use it to create a "categories" column that would aggregate the several categories from your input file)
For excluding values to import, the Import Limiter plugin can do it too by selecting rows to exclude based on any column criteria.
A Last option would be to use magmi programmatic APIs:
Datapump API would let you create a script that will wrap magmi calls letting you perform any operation on input data (but this would also mean you'll have to read the input file)
Creating a dedicated ItemProcessor plugin that would do data transformation suiting your needs in its "processItemBeforeId" method.

Related

Configure magmi to import or create categories from multiple columns in magento

Hi i have a csv in which the product categories are in 3 columns .
say column1 == parent category
column 2 = subcategory
column 3 subcategory of column 2
Now can you please tell me how can i configure magmi to import categories from multiple columns.
I am also using a csv (actually, it's a ~ delimited file).
You want to use one column for the categories and separate them by something, but let MAGMI know. I'll explain that part in a bit.
Anyway, my csv file looks like this...
categories~cost~sku
Catalog|Computer Components|DRAM DDR3|> 2GB~154~mysku
So, Catalog is the parent category, then Computer Components, then DRAM DDR3, then > 2GB
If you wanted to add another category - let's say Catalog->Computers->Upgrade Components (not that you would ever have a category for that), you'd do the following
categories~cost~sku
Catalog|Computer Components|DRAM DDR3|> 2GB,Catalog|Computers|Upgrade Components~154~mysku
The | separates the categories in their parent-child relationships.
The comma (why I don't use an actual csv) separates the two different categories you want to add.
Now, for the MAGMI configuration.
You're going to be using the "On the fly category creator/importer". I can't recall if it is installed by default. I believe it is. If not, it's easy to install plugins. Look it up.
Anyway, you'll want that checked off and then click on "configure" beside it.
Set "Assing product to" (you read that correctly) to "all categories in tree"... that is, unless you don't want your products to be added to all the categories in the tree. So, it would add the product to Catalog AND Computer Components AND ..and so on.. If you have this set differently it will only add to the last categories (> 2GB AND Upgrade Components).
Set the "Tree level separator" to |
base category tree will depend on how you have configured yours to work. I include Catalog, which is my base level tree, so I have this blank.
I would suggest keeping the url ending in html
I hope that makes sense and it what you're looking for.
I re-read your question. I think I answered it above, but in a little more detail than you need probably. You can't really have multiple categories in multiple columns and try to import them. The way I described (importing them using a different delimiter) and using the on the fly category creater/importer is the only way I have been able to efficiently gain control over category management with MAGMI. So, create your csv file using a one column method for categories and you should be good. I also suggest using ~ delimited files, rather than comma - comma is used in a lot of other places and would be more prone to issues. For example, if you want to include two stores you would do "store1, store2" and MAGMI will know how to include them. If you forgot the quotes the import might would work fine (with warnings or errors), but it would assume the comma is there to separate different columns and likely throw bad data into other columns, rather than the proper values for that column.
I hope that all makes sense.

magento export products with custom field

I'm using dataflow - profiles to export all products.
But I need more columns from the default column mapper. I need the following columns
Entity ID
Category Name (default available is Category ID)
Additional images (default is main image only)
Furthermore, i want to prepend image URL and product URL with store URL (eg. current product URL exported is product-01.html, instead of that, I want it in http://www.example.com/product-01.html)
Appreciated with everyone helps
Search for any extensions if available. Not supported in default Magento.
Also, for images you can use three columns "image", "small_image" and "thumbnail"
Repeat these on to next record if images exceed three.

Where do you store UPC codes for products?

I am working on an install of AspDotNetStoreFront (version 9.3.1.0). Currently, the company stores their own SKU's from their business system in the provided SKU field. They often use Manufacturer Part Number to store their vendors part number.
Example:
The above example is a variant of a product where we would like to store UPC information.
I searched the AspDotNetStoreFront manuals and could not find a recommended strategy for storing UPC codes. Its easy enough to add a field to the database and bulk import the data, however, an admin needs to be able to maintain them from within the stores user interface.
Is there a way to add a UPC field without modifying core ASPDNSF code and still allow users to maintain it from within the UI? Or do I have to use the SKU or MPN fields?
Update
I do see that there are 5 fields for "ExtensionData" that I could possibly use, but I don't see those fields as editable for Variants in the UI the way ExtensionData is for the Products themselves.
I don't think we have had customers who didn't use sku for their UPC code. In the event that you need to modify the table by adding another column, you can modify the admin to show this.
You should be ab able to edit entityEditProducts.aspx and entityEditProducts.aspx.cs to edit this in the admin area. You will just need to modify the sql scripts and the view.
I'm not sure if it's important enough for you to upgrade over, but version 9.4 added fields for UPC. From the 9.4 release notes (http://partners.vortx.com/t-summer2013releasenotes.aspx):
"Added new GTIN field to the product variant information for unique product identification. This new field holds up to 14 characters and can be used for EAN, UPC, ISBN, etc. This new field is included in WSI, Excel & XML Imports, and supported by DotFeed."
The GTIN field works for both variant and size/color.
you can use one of the 5 extension field given by default in the product table to store UPC code. By default it has also UI in edit product under Extension Data tab.

Magmi import doesn't remove the products

I have been using Magmi to import products by adding items to the file " export_all_products.csv" without any problems
But when I have products that need to be remove,what I did was by removing the whole row in that product line in the csv file and upload it using magmi, but the products that I want to delete is still there and sometimes duplicated, is there a way to get it done or can I empty some tables in the database in phpmyadmin before I do the import?
Thanks so much
You need to use the Product Deleter plugin to delete products with Magmi.
Use the column name magmi:delete with the value of 1 on the rows you want removed from Magento.
Example CSV:
"sku","magmi:delete"
"00001","1"
"00004","1"

Magento import multiple product images with sort order

I am trying to import products using Magento 1.7 in built import/export dataflow profile function
So far I can import products details and multiple images as per this tutorial.
But problem here is I am not able to maintain store view and image sort order together.
How I can format CSV so that I can control image sort order and store view?
in short what is magento field name for image sort order?
( options tried but failed: position, image_position, media_gallery_position, gallery_position, gallery_position )
Scenario is:
We have three images per product out of which one image should have first sort order and store view thumbnail, small, base image active ie. this image should use as primary image of product and other two are just inner images only for display purpose on product page.
Magento importing exporting are always quirky problems. as far as I know for 1.7, there aren't much options.
http://devjuhong.com/web/magento-import-products-using-csv/
Check out above page it's pointing that problem too.
Store Manager for Magento does a pretty good job at importing products. For say a 100 products it takes a minute or two which includes time for RE-INDEXING product data. Benefits include -
Nice UI to deal with attributes, attribute sets, categories and products.
Provides column mapping functionality for CSV.
XLS/XLSX files are supported which is a nice touch since a lot of developers use functions to auto fill columns.
Connection manager can handle multiple database connections.
There are many more features. Above are just a subset of what I had tried.

Resources