In the admin you can do this:
which is pretty easy to copy a product from one website to another, with the values of another website.
Is there a way to do this programmatically?
I've tried this:
$product = Mage::getModel('catalog/product')->load($productId); $websiteIds = $product->getWebsiteIds(); //fetch product current websiteIds array_push($websiteIds, 5); $product->setWebsiteIds($websiteIds); //assigning website IDs $product->save();
And yes, add the product to the other website but with the Default Values. And I don't want that.