Hey, I just realise how easy is to add attributes to the form products in ADMIN, and its working perfectly.
So similarly to setting attributes for General, Prices, Meta Information, Images, Recurring Profiles, Design and More Information, how can I add an attribute to Inventory form?
Thanks in advance for any help.
Unfortunately, the Inventory form is not dynamic like others, and you can't just add an attribute to this form.
If you are good with Magento programming, than you can play with it's block:
app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Inventory.php
and with it's template:
app/design/adminhtml/default/default/template/catalog/product/tab/inventory.phtml
For me (in Magento v 1.3.2.4) creating attributes the usual way (Catalog>Attributes>Manage Attributes) didn’t work in this case, as the value for that attribute didn’t get saved. In order to be able to save it I had to create this attribute in database table ”cataloginventory_stock_item”.
Only then the value is saved for each product.
Related
how can I list only porducts with some attribute on CMS page?
For example I want to list only all the products across the categories with attribute color=red
How can I achive this?
So far I was able to achive listing products with Special prices based on this
http://phpmysqltalk.com/937-magento-how-to-create-a-special-price-page-with-new-products-first.html
HoweverI am unable to modify it to any other attribute. Any help, how can I achieve displaying only products which have specific value of some attribute /from the Root category for the store or also from specific categories/
Thanks a lot.
check out this tutorial for creating a simple custom module which should do exactly what you need:
https://www.atwix.com/magento/products-list-cms/
I am trying to create a grouped product in Magento where the customer must choose the product and fill out a text field before adding the item to the cart. I know I can do this by simply creating one product and adding custom options, but the problem with that is that I need to be able to control the stock of each product configuration. I read that I can just use the custom options field for every individual item in the grouped product and as long as it isn't a required field it will work, but that does not work for me. Anyone have any ideas?
Thanks in advance!
I have been searching for this also, and the quickest solution appears to be this 3rd party module:
http://ecommerce.brimllc.com/catalog-enhancements/grouped-options.html
the module author provides background on how they did it here:
http://www.brimllc.com/2010/07/magento-associating-simple-products-with-required-options-to-a-grouped-product/
We have a SOAP connection to magento that is working great - we're able to pull product info, skus, descriptions, etc. using the magento API. We've been able to successfully add products to the cart programmatically with custom options, and that works great. The problem is this:
When you create a custom option for a product, it is assigned a unique ID that has to be called in order to pass that option value to the cart. For example:
www.mysite.com/magento/checkout/cart/add?product=7&qty=1&options[OPTION ID]=robots
Assuming I have my custom option ID correct, this will add 1 product with the option "robots." Which is nice.
However, we have hundreds of products, and while they all use similar custom options, each option is given a unique ID. That means I need to be able to call the magento API and get custom options details (specifically the option ID) so that we can add them to the cart properly. I have been back and forth with Varien Support (Magento), but they are less than helpful, as usual. Now, I know I can find these options by using firebug in Firefox or Chrome, which I've done to test the "add to cart" script. However, that's not a proper solution. I need to be able to grab this data from magento based on product id.
Can this really be that hard? Shouldn't this be tied to the data for the product somehow? I've done a var_dump on the catalog_product.info and i see where it asks if there are options but doesn't provide any details on them. Thoughts?
Thanks in advance.
Do you need to get all options ids for specific products or just some particular? For the latter you can use this code:
$productEntity = Mage_Catalog_Model_Product::ENTITY;
$colorAttribute = Mage::getModel('eav/config')->getAttribute($productEntity, 'color');
$colorAttribute->getId();
For the first option code in this question might be useful How to get all super attribute options for a configurable item in Magento
I'm very new to Magento.I am having product with some variants like "size" with values "large XX,small XX,medium XX".I want the feature to make any one of this values as default in admin.
my screenshot explanation here
How can i do this
please help me!
When you say you want them to be defaults, you are being a little vague. Are you talking about using configurable products for this? Custom product options? When you say "default in admin", what do you mean? Which page are you referring to? More detail will help us answer the question.
Thanks,
Joe
As far as I know, what you are asking for is not a default functionality of Magento, but it shouldn't be difficult to add some javascript to allow you to force selections at page load time. Ultimately, it's just code, so it's definitely possible to do.
my suggestion would be to add a attribute to all you products called for instance "defaultselect" then you can enter your value easily from the backend to your configurable product.
so now you have a configurable product say a hat which comes in 3 sizes, and has 3 assigned simple products. set the defaultselect value to one of the size values
now some layout xml and javascript is required to get you product attribute to work with the magento selects.
first you want to actually include you js. this is done through the layout xml. you can include update using add js method for PRODUCT_TYPE_configurable handle
now the js. store the js in the skin js folder.
to make this work you would need to know the configurable product defaultselect attribute value we're testing against. this could be retrieved with your own ajax function to a method which checks if the current product has a defaultselect attribute and returns it's value or false.
if you have a value from your ajax function you can work with that ie you have both the returned attributes from the configurable product and magento will return the rest.
however after that it seems to get complicated your going to have to do something with the js magento aready uses to render product options
I need to add an attribute to an existing set of products which are already within an attribute set. When I go into the product after adding the neww attribute to the attribute set I can't see it in the product edit page?
Is there any way to do this? maybe at database level? or an I missing something?
Any help would be greatly appreciated,
Dave
edit - sorry forgot to mention these are configurable products that the new attribute isn't working on
This should work fine. What you might want to try is changing the group that the attribute is in, from prices to description and then see if it shows up on the description pane.
Did you reindex your Data?
System -> Index Management