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

ability to add SKU codes to product view pages upon product selection
 
shopsafety
Jr. Member
 
Total Posts:  3
Joined:  2011-08-28
 

need some help finding where and how I can add the ability to edit/add/delete SKU (item) codes on the product pages.

step by step instructions for this newbie to Magento V 1.7 would be appreciated.

URGENT

thanks
shopsafety

 
Magento Community Magento Community
Magento Community
Magento Community
 
Anshu Mishra
Sr. Member
 
Total Posts:  101
Joined:  2012-04-23
India
 

Login to the admin end
Go to Catalog->Manage Products
Click on the edit action for the product you want to change the SKU.
Here you can find and modify the mandatory SKU field for your product.

Below code will help you to change the sku programmatically

$product Mage::getModel('catalog/product')->load('product-id');
$product->getSku(); // Will give you the current sku valu of the product.
$product->setSku('your-new-sku-value');
$product->save();

Hoping this will help you.

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