I am trying to add products, reading from xml file and save the products to Magento database, but I could not figure out how to add related products to the product I am adding. Any Idea about how to add related products?
this this the code
$current_Product = Mage :: getModel ( 'catalog/product' ) -> setSku ( $sku ) -> setDeliverystatus ( $deliverystatus ) -> setDeliveryStatusMessage ( $deliverystatusmessage ) -> setStatus ( $enabled ) -> setWeight ( $weight ) -> setTaxClassId ( 'Taxable Goods' ) -> setSoldQuantity ( $soldquantity ) -> setReleaseDate ( $releasedate ) -> setName ( $title ) -> setSubtitle ( $subtitle ) -> setPublisherId ( $publisherid ) -> setProductUrl ( $url ) -> setProductType ( $producttype ) -> setNewSku ( $newsku ) -> setPrice ( 15.49 ) -> setCategoryIds ( $categories_array ) -> setAttributeSetId ( 4 ) -> setStoreId ( 2 ) -> setDescription ( $longdescription ) -> setShortDescription ( $shortdescription ) -> setDeliverystatusmessage ( $deliverystatusmessage ) -> setProductType ( $producttype ) -> save ();
->setRelatedProductIds($related_product_array_Ids) does not work? Any idea?
Thanks
Signature
The Greatest of These Is Love