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

Popular posts from this blog

java - is not an enclosing class / new Intent Cannot Resolve Constructor -

qt - QML MouseArea onWheel event not working properly when inside QML Scrollview -

python - Error importing VideoFileClip from moviepy : AttributeError: 'PermissionError' object has no attribute 'message' -