Magmi Attribute Set Importer dont set product attribute - magmi
When importing with Magmi and set Attribute Set Importer on, it does not to set the corresponding product attribute on the product itself.
I've read many posts, but no one seems to have this problem. Any clue what I'm doing wrong?
Magento: 1.9.2.4
Magmi: 0.7.22
Attribute Set Importer: 0.0.2
Content of the import files:
Products file:
sku,attribute_set,name,type,configurable_attributes,mycolor,status,weight,price,simples_skus,super_attribute_pricing
01111,"testset","product1b","simple","mycolor","red",1,0,11,,
01211,"testset","product2b","simple","mycolor","blue",1,0,22,,
01422,"testset","product3b","simple","mycolor","orange",1,0,33,,
01311,"testset","productconfigurable","configurable","mycolor",,1,0,1,"01111,01211,01422","mycolor::red:11;blue:22;orange:33"
Attributes file:
"attribute_code","frontend_label","frontend_input","backend_type","is_user_defined","is_required"
"mycolor","mycolor","select","text",1,1
Attributes Set file:
attribute_set_name,sort_order,magmi:groups
"testset","0","General:0,Prices:1,Meta Information:3,Images:4,Recurring Profile:4,Design:5,Gift Options:5,mycolor:6"
Attributes Associations file:
attribute_set_name,atttribute_code,attribute_group_name
"testset","mycolor","General"
Attribute not mapped
The solution was to set
backend_type
in attributes file to
int
Event varchar didnt work.
There was no info about this, so maybe this answer is saving someone some time.
If only I found your answer sooner, it would have saved me a few hours.
Indeed, there was no information on this subject anywhere.
If, when creating a feature via MAGMI (Attribute Set Importer / Attributes), we do not assign an appropriate backend_type parameter to it, then Magmi will set it to 'static' and then the value of such feature cannot be imported.
The feature value import worked correctly when the features had the following backend_type parameter values:
select [dropdown]: 'int'
multiselect: 'varchar'
frontend_label
attribute_code
frontend_input
is_visible
is_searchable
is_filterable
is_visible_on_front
is_used_for_price_rules
is_user_defined
backend_type
attr1
attr1_code
multiselect
1
0
0
1
1
1
varchar
attr2
attr2_code
select
1
0
0
1
1
1
int
Checked on Magento ver. 2.4.2-p1
Related
Tier price not working on Migration_Default attribute set Magento 2
I just migrated to magento 2.2.6. If I change the attribute set of product from 'Migration_Default' to 'Default', then it works fine. Also that it is just not showing on product detail page, but working fine in cart page on both attribute sets.
Got it resolved. In my case it was a qty attribute that was duplicated, i.e their were 2 qty attributes in 'Migration_Default' attribute set. So I just made the values of all products with 'Migration_Default' attribute set, to zero '0' from admin. (catalog > product > filter > {attribute_Set -> Migration_Default, status -> enabled} > select all > update attributes > quantity attribute -> 0 > save). Hurry!
Magento 2 CatalogSearch cant get category by cat=id
Magento 2 CatalogSearch cant get category by cat=id . I have 20 categories, but i can't to see it on site, just root category. It is working on demo site: http://magento2-demo.nexcess.net/catalogsearch/result/?q=blue&cat=2 PS: I have read it and try: https://magento.stackexchange.com/questions/154287/magento-2-navigation-menu-not-showing UPD: For any values of "id" except = 1, writes "default" instead of the name of the category, if 1 then "root". For any values of "id" except = 1, writes "default" What could be the problem?
Put yours categories to default category.
Can i display different static block for different products?
I want to know if we are able to select different for different products. So, i can not place for product x only the field 1 and 2 ("30 Tage.." und kostenfreie...") of static block and for product y the field 3 and 4 of static block? Please Help Me
You can add a attribute with text field & set name as product_block_identfier, Insert the static block identifier value in this field. Now call static block on view.phtml file getLayout()->createBlock('cms/block')->setBlockId($_product->getProductBlockIdentfier())->toHtml() ?> $_product->getProductBlockIdentfier() this will get the block id from the product attribute product_block_identfier Hope this will work for you!
Magmi stock status issue
Each product in magento has indiviual minimum qty for to be in stock I use magmi to update the stock from an external csv file. Issue is that on successful updation of csv , magmi does not refer to minimum qty value to set the product "in stock" or "out of stock" So all my products endup being "in Stock" and only when I edit and save the product in admin it sets it right. above scenario explained again: if Current qty= 1 & mim_qty = 05 and in csv qty= 100 after magmi run (re-indexing done) new qty= 100 and i can see at front end at list.phtml next Current qty= 100 & mim_qty = 05 and in csv qty= 3 after magmi run (re-indexing done) new qty= 3 and **i can see at front end at list.phtml** following setting is common in bot case Manage stock = 1; use_config_manage_stock = 1; min_qty = 05;
If you want min_qty to be parsed by magmi, then you need to provide it as input to magmi beside qty value. Magmi relies 95% on input data , not current existing DB data (except not to replicate select/multiselect options,or checking if a product exists, getting attributes metadata) So , min_qty is not checked against existing value but input value. if no min_qty is set on input, then magmi does not update is_in_stock based on existing value of min_qty. That's a behaviour i could enhance in next release.
In class Magmi_ProductImportEngine under function updateStock() Instead of: $mqty=(isset($item["min_qty"])?$item["min_qty"]:0); I have added: $gsql = "SELECT min_qty FROM cataloginventory_stock_item WHERE product_id=?"; $grvalue = $this->selectAll($gsql, array($pid)); foreach($grvalue as $gcalminqty) { $gfinalminqty = $gcalminqty['min_qty']; } $gfinalminqty = (isset($gfinalminqty) ? $gfinalminqty : 0); $mqty = (isset($item["min_qty"]) ? $item["min_qty"] : $gfinalminqty); This looks for min_qty in CSV, if not read from Magento, otherwhise use default.
How to get Product id using Super attribute in Magento?
I am working on ajax module for Shopping cart in Magento. Consider i have a configurable product with 2 simple products configured as its two sizes (Small an Medium). When user selects and adds the item to cart, i cannot see the specific product id (small) in the url. But instead supper_attribute is posted to my controller. Is it possible for me to get the actual product id of size "Small" with the super attribute. Below is my supper attribute array [super_attribute] => Array ( [129] => 128 ) 129 = attribute_id (Size) 128 = attribute value (Small) Please suggest me in this scenario. Please let me know if my question is not clear. Thanks
Try this: $childProduct = Mage::getModel('catalog/product_type_configurable')->getProductByAttributes($request->getData('super_attribute'), $product); Where $product is the configurable product object. For the Class Reference