magento - vendor added Product details from products collection table -
i have created market place vendors , vendor added product stored in marketplace_product table.how can show complete product details image,description of these products in magento. have tried below code
$showcaseproducts = mage::getmodel('marketplace/product')->getcollection() ->addfieldtoselect( '*' ) ->addfieldtofilter('userid','163') ->load();
but not getting products details
you need used following code :
$showcaseproducts = mage::getmodel('marketplace/product')->getcollection() ->addfieldtoselect( '*' ) ->addfieldtofilter('product_id',163); foreach($showcaseproducts $curproduct) { $curproduct->getid(); //here can access table field }
in above code need replace "product_id" column table column name in store product id.
Comments
Post a Comment