cancel
Showing results for 
Search instead for 
Did you mean: 

How to provide a list of products to sellers in a marketplace

How to provide a list of products to sellers in a marketplace

Hi there

 

I am wondering if there is a way or a module to display a list of all the allowed produits when a seller want to publish a new product into a marketplace and he has to select one of them

 

For exemple if my website is only about smartphones , the user can only submit specific products such as Apple Iphone , Samsung Galaxy...etc 

 

 

 

3 REPLIES 3

Re: How to provide a list of products to sellers in a marketplace

You'll want to select a product collection from the relevant category.

You can do so programmatically as follows:

 

$mage_file = 'app/Mage.php'; //Path to Mage.php
require_once $mage_file;
Mage::setIsDeveloperMode(true);
ini_set('display_errors', 1);
umask(0);
Mage::app('admin');
Mage::register('isSecureArea', 1);
Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);

$products = Mage::getModel('catalog/category')->load($category_id)
 ->getProductCollection()
 ->addAttributeToSelect('*')
 ->addAttributeToFilter('status', 1)
 ->addAttributeToFilter('visibility', 4);
foreach ($products as $product){
    echo $product->getName() . "<br/>";
    /* Other relevant output */
}

 

This will display all enabled products within the specific `$category_id` with visibility set to Catalog, Search.

You can then host this script at a relevant location on your server & provide the marketplace / partner with the relevant URL to access the details.


For example http://www.yourwebsite.com/cellphones.php

Re: How to provide a list of products to sellers in a marketplace

Hi moose92

Thanks for your reply , gonna try this asap

Best regards.

Re: How to provide a list of products to sellers in a marketplace

Hi if you are using webkul marketplace module , module already have a seller list option http://magento.webkul.com/Marketplace/index.php/marketplace/seller/list/