-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Syam Mohan
committed
Oct 7, 2014
1 parent
cae2238
commit 58ae380
Showing
3 changed files
with
37 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
app/code/community/Medma/MarketPlace/sql/marketplace_setup/mysql4-upgrade-2.0.1-2.0.2.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
|
||
/** | ||
* Medma Marketplace | ||
* | ||
* NOTICE OF LICENSE | ||
* | ||
* This source file is subject to the Magento Team | ||
* that is bundled with this package of Medma Infomatix Pvt. Ltd. | ||
* ================================================================= | ||
* MAGENTO EDITION USAGE NOTICE | ||
* ================================================================= | ||
* This package designed for Magento COMMUNITY edition | ||
* Contact us Support does not guarantee correct work of this package | ||
* on any other Magento edition except Magento COMMUNITY edition. | ||
* ================================================================= | ||
* | ||
* @category Medma | ||
* @package Medma_MarketPlace | ||
**/ | ||
|
||
$storeId = Mage::app()->getStore()->getStoreId(); | ||
|
||
$productIds = Mage::getModel('catalog/product') | ||
->getCollection()->getAllIds(); | ||
|
||
$attributesData = array('vendor' => null); | ||
|
||
Mage::getSingleton('catalog/product_action') | ||
->updateAttributes($productIds, $attributesData, $storeId); | ||
?> |
Oops, something went wrong.