I'm already creating Magento products in php. Now I want to add the product's weight and dimensions (length, width, height), so that it can be used by a shipping plugin.
For settings the weight, I found this method: $product->setWeight(1.0); But I can't find any similar method for the dimensions.
Now my questions is: How can I set the product dimensions?
This is the code I'm using for adding a product:
umask(0);
Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);
Mage::getSingleton('core/session', array('name'=>'adminhtml'));
$product = Mage::getModel('catalog/product');
$product->setSku("SKU");
$product->setName("name");
$product->setDescription("description");
$product->setShortDescription("short description");
$product->setPrice(9.99);
$product->setTypeId('simple');
$product->setAttributeSetId(9);
$product->setCategoryIds("0");
$product->setWeight(1.0);
[...] // setting stock and tax information
$product->save();
Thanks in advance