I need to associate my products with "complex attribute".
By complex attribute I mean not only "attribute = value".
I need to store a couple of values for each attributes.
Let's say I've an attribute "manufacturer"
I need to store possible values as "id: 1 - name: Nike" and "id: 2 - name: Reebok".
Is it possible to do that? Note that I need to be able to filter that then...
The id is important to me because it is generated by another application and then synchronized with Magento.
Thanks in advance.
I'm not sure i understand your question. But i think what you need is to choose a new attribute and select Dropdown on the input type.
You can use position as your ID.
http://www.magentocommerce.com/knowledge-base/entry/tutorial-creating-attributes-custom-fields and go to Creating an attribute with controlled options - Manufacturer
Related
I am creating a new Joomla Component. I am able to create custom fields for the component backend forms - but I am not able to create Dynamic Custom Fields.
What I would like to do is have a field that is dynamical populated based on the value of a previous field. The easiest way to explain this is the simple country,state,city breakdown.
Field 1 = Country
Field 2 = State (Based on what the user selected as as Country in Field 1)
Field 3 = City (Based on what the user selected as State in Field 2)
The fields would of course need to be refreshed, reset as the user picks a different country etc.
The data to populate the fields would also all need to come from a database based on the previous fields value.
I am guessing this needs to be done via ajax or javascript or something? But wondering if there is an official way? Especially since there are database calls involved.
Please let me know if there is anything I can explain better..
David
I ended up just creating text fields but then validating the input to make sure the values added are correct.
How can i change programmatically for all configurable products 'Attribute Name' use default ? I need to checked options. The place where I want to checked is marked in red
http://i.imgur.com/LFxR8mj.png
I know this is a old post, but as it is still seems to be unsolved I thought I would add this for the next person that comes looking.
The table you need to update is catalog_product_super_attribute_label you will see a value for all products. If you update this table to 'use_default' as 1 this will check the box and use the default attribute label.
I hope this helps somebody.
It seems like what you're trying to do is remove an attribute value for certain products at a certain store scope (in which case it will fall back to 'use default' mode and acquire the next attribute value available , whether that be defined at the website level or global level). You need to remove the value entries from the entity value table (e.g. catalog_product_entity_varchar) where the attribute ID and store ID match the ones you're trying to remove. You could do it with raw SQL fairly easily:
DELETE from your_entity_valuetype WHERE attribute_id=X and store_id=Y;
Plug in your attribute ID (you can grab that from the eav_attribute table) and store ID, and the table for the attribute value.
I want to assign the attribute value to the product page in the catalog->manage products without assigning into attribute set in magento.
Is it possible to do like this in magento 1.8? If yes,how to do?
Thanks in advance
You question is not really clear, but I hope I understood correctly.
You cannot assign attributes directly to the product.
There is direct relation between a product and an attribute entities.
A product can have a certain attribute value. That's it.
Even if you insert the value for that attribute manually in the correct table it will be useless.
That value will be a zombie value. It will be ignored by the application and it will only take up space in your db.
The design of the app is like this.
An attribute set contains attributes (in a many to many relation).
A product has an attribute set as a parent entity (so one to many relation).
A product can have values for the attributes in the attribute set it is assigned to.
In Magento's category list page, it is possible to sort products by Attribute Set?
Thanks a lot.
Whether it be in the front-end or for the Admin section, your requirement of sorting products based on Attribute Set List will go for custom development, as Magento does not provide this sort of thing by default.
You need to understand that the Attribute Set concept was provided for only the creation of Catalog Products, so that the Administrator can segregate / group the attribute(s), as needed for its store.
So if you understand the basic logic here, then you will find that for grouping each products, the concept of category is useful & not the Attribute Set List.
Hope it helps.
Hai
In my magneto project, When I add a product some times it shows part number fields, some times it not shown, What is this?? I want to give part number in my entire product, what can I do to show the part number permanently
Thanks in advance
I think the only way that can happen is if you have created different attribute sets, and you aren't assigning every product the same attribute set.
You may have created a new set that has the part number field, and sometimes when you create a new product, you select the new attribute set, and other times perhaps you are leaving it on the default attribute set which doesn't have the part number field.
Dont worry dont forgent to see the reffernce:
http://targetphp.coolpage.biz/index.php/more-about-magento/50-how-to-add-new-product-in-magento-.html