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
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
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/

