Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

i just need to change a product name
 
joshua4
Member
 
Total Posts:  43
Joined:  2009-07-12
 

$product Mage::getModel('catalog/product')->load($id);

Now what? How would I use $product object to change the name?

$product->setName("New Name");
$product->save();

Why can’t it just be easy like that?

 
Magento Community Magento Community
Magento Community
Magento Community
 
tjonnyc
Sr. Member
 
Total Posts:  111
Joined:  2009-04-07
 

I may be missing something… but why can’t you change the product name through the Admin interface?

Admin -> Catalog -> Manage Products -> select product -> change name.

?

Or are you asking about renaming the attribute itself?

 
Magento Community Magento Community
Magento Community
Magento Community
 
joshua4
Member
 
Total Posts:  43
Joined:  2009-07-12
 

It needs to be done from the frontend by a customer. The site allows customers to customize their own products. I have it so it can load the product name and description in a form. Now I need to know how to save the product when they submit the form.

 
Magento Community Magento Community
Magento Community
Magento Community
 
joshua4
Member
 
Total Posts:  43
Joined:  2009-07-12
 

this is similar to my problem but the solution doesn’t work
http://www.magentocommerce.com/boards/viewthread/48924/

 
Magento Community Magento Community
Magento Community
Magento Community
 
joshua4
Member
 
Total Posts:  43
Joined:  2009-07-12
 

nevermind this does what i need, one line of code so simple

$product->addAttributeUpdate('attribute_code''attribute_value'$storeId);

i was trying to save() afterward but apparently you dont need to

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top