News:

Support the VirtueMart project and become a member

Main Menu

add new product with virtuemart 2

Started by kaking, July 10, 2012, 18:58:10 PM

Previous topic - Next topic

kaking

hye guys,

i would like to know how add new products with virtuemart 2 in joomla 2.5

with virtuemart1 i used

$ps_product = new ps_product( ) ;
               
               $d=array('vendor_id'=>1,'product_price'=>$product_price,'product_publish' =>1,'product_available_date'=>$product_available_date,'product_sku' =>$product_sku,'product_name' =>$product_name,'product_url' =>$product_url,'product_categories'=>array($categorie),'attributeX'=>array());
               $ps_product->add($d);


but now, i don't see any ps_product class.

Could you please help me ?

thanks