Configure magmi to import or create categories from multiple columns in magento - 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.

Related

Automatically create configurable products from list of simple products in csv file

I am using magmi to import products into Magento.
I have a long list of simple products in a spreadsheet and it is a right pain going through it and adding a configurable product row for each set of products manually. It is of course also error prone.
I wonder if there is a way of processing this sheet automatically to add in the configurable product rows. It's fairly easy to see when one set of products changes to another.
I've browsed lots of forums and tried to do it through excel but can't seem to find a way of doing it. Has anyone any suggestions please?
Check if this helps!
http://huztechbuzz.wordpress.com/2014/06/03/magento-add-configurable-products-dynamically/
Let me know if you anything else.
Auto creating configurables as a 'feature' may have several pitfalls:
Which sku to use for the configurable ?
What if a similar configurable sku exists:
do you want to "append" associated product list with simples listed
or replace the associated product list with ?
what if the file has :
simples with configurable product to create
AND
"real" simples that should not be associated to any configurable but share the same attribute_set
So, in a "generic" way, many questions may be left without answers and ,as such, couldn't be mass automated that easily.
However, you have a specific need , for a specific workflow, implying specific data. Then in YOUR case, you (or someone you can hire) can write a magmi plugin that would create the configurable according to YOUR specifications.
I hadn't appreciated the capabilities of the magmi configurable product plugin until I saw this: https://www.blinkdata.com/magmi-configurable-item-processor/.
This showed me it's possible to import all the simple products in one file, and then import the configurable products from another file. The "trick" is to have SKUs with two components, along the lines cccc-ssss, with each group of simple products linked together by a common prefix cccc to the SKU. The configurable product has the SKU cccc.
Creating the configurable products file is not easy (for me at least), excel doesn't seem to have the best facilities for this but I found the following helpful: Getting unique values in Excel by using formulas only. I used the macro by totymedli. [I use this as the list of simple products I have are grouped by an attribute that has the same value for all products that can be within a configurable product.]
No doubt there are better ways but the main thing is the amount of manual work I have to do, and which is error prone, is reduced.

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

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.

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.

Problem with importing Quote Products in CRM 2011

Hi I am having a problem with importing Quote products in CRM 2011.
When I downloaded the template for import, the columns require that I state whether the product is a 'Write-in' or an 'Existing' product. Then there are an additional 2 columns: Write In, Existing.
On filling in the template with sample data for import, I wrote something like this:
Write-in | | New product |......
Existing | Existing Product 1 | |.......
(The | is a new column )
I am assuming that when the product is a write-in product, you must enter a new product and when the product is an existing product, you write the name of an existing product in the system. The other columns are then left blank.
However, I am getting errors on import and I have no clue why :/ I am giving it the wrong data?
Also... the company does not make use of a Product List. Is there a way in which I can bypass its use since every time I enter a new product, I am asked to give the price list and this is not viable for the company since there are hundreds of products and the items and their prices change constantly so we cannot make use of a Product List especially when I am asked to enter a New Product List every time :/
Does anyone have a clue of what can be done? Thanks :)
IMHO, I can suggest the following.
Have a default price list, Onload of such forms, autofill that field with that PriceList.
Also, when quote is created, use JScript to say there is always going to be a write In product. (Then, you dont require the Product Lookup filled in).
Also, I dont know what kind of errors you get here, but when you specify an existing product, you also have to specify the UniOfMeasure or something. Make sure you have one supplied in your CSV.

How to allow duplicate SKU in Magento

I have a customer who retails third party batteries, and some batteries can replace several OEM models.
For instance, 3rd party SKU 12345 may replace Toshiba N23 and HP 53214, thus my customer would like to create two products with the same SKU in front end (they are essentially the same product). However, Magento by default does not allow duplicated SKU.
My current solution is to set SKU to not required from the backend, and add another attribute called Model that allows duplicated values, and display the Model in front end.
Is there a better way to do this? Or is it possible to allow duplicated SKU?
Tian Bo
Noble Technologies
It sounds to me like you've found a good solution. I'm not so sure you should try to have duplicate values for SKU for two reasons.
First the whole point of SKU is that it is a unique identifier. That's its only reason for existing. If you're going to have duplicate values, then it's not a unique identifier; it's just another attribute. But of course Magento still needs a unique identifier to work, which means that this is an extra field, which takes us exactly where you are now.
That said we come to my second point which is this... I'm not exactly a Magento guru, but I've built my share of e-commerce sites and one thing I've learned is that they depend on certain unbreakable rules to work properly. One of them is that unique identifiers are unique, both on the database and application level. As such, a large part of the website depends on this to function correctly. Which I'm pretty sure goes for Magento too.
So trying to change such a basic premise in something so complicated will only lead to horrors and a slow descent into madness.
This sounds like a good solution that I extended a bit further, however what I did with multiple store was to create a visible attribute ITEM_SKU (Item SKU) - make it visible and searchable and then concatenate the store_id to Magneto SKU to make it unique.
So SKU becomes (Store_id "-" SKU).
It surprises me how often people are willing to break who-knows-what parts of Magento, just to get a specific piece working how they expect.
The proper way to allow for duplicate skus is NOT to (unless you'd like to re-write large parts of the framework). You CAN, however, add a custom attribute to products that shares all the same settings as "sku" minus the setting that requires values to be unique.
Changing product pages, emails, etc to show this value instead will require a little extra work but will save you headaches later.
Why don't you create 1 product (SKU 12345) and list this product in multiple categories. So your multiple categories will be Toshiba and HP. The same product (SKU 12345) will be listed in Toshiba and HP.

Resources