1 |
INSERT INTO core_config_data (scope, scope_id, path, value) VALUES ('default', 0, 'dev/static/sign', '0'); |
1 |
INSERT INTO core_config_data (scope, scope_id, path, value) VALUES ('default', 0, 'dev/static/sign', '0'); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
app/code/community/Ess/M2ePro/Block/Adminhtml/Ebay/Listing/View/Ebay/Grid app/code/community/Ess/M2ePro/Block/Adminhtml/Ebay/Listing/Product protected function _prepareCollection(){ $collection->addAttributeToSelect('asset_type'); } protected function _prepareColumns(){ $attribute = Mage::getModel('eav/config')->getAttribute('catalog_product', 'asset_type'); $options = array(); foreach( $attribute->getSource()->getAllOptions(false, true) as $option ) { $options[$option['value']] = $option['label']; } $this->addColumn('asset_type',array( 'header'=> Mage::helper('M2ePro')->__('Dept.'), 'width' => '150px', 'index' => 'asset_type', 'type' => 'options', 'options' => $options, 'sortable' => false, )); $sets = Mage::getResourceModel('eav/entity_attribute_set_collection') ->setEntityTypeFilter(Mage::getModel('catalog/product')->getResource()->getTypeId()) ->load() ->toOptionHash(); $this->addColumn('set_name', array( 'header'=> Mage::helper('M2ePro')->__('Attrib. Set Name'), 'width' => '100px', 'index' => 'attribute_set_id', 'type' => 'options', 'options' => $sets, 'sortable' => false, ), 'name'); } |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
private function _getGeneralFromAttributeSets(array $attributeSetIds) { if (count($attributeSetIds) > 50) { throw new Ess_M2ePro_Model_Exception("Attribute sets must be less then 50"); } $attributeCollection = Mage::getResourceModel('catalog/product_attribute_collection') ->addVisibleFilter() ->setInAllAttributeSetsFilter($attributeSetIds) ->setOrder('frontend_label', Varien_Data_Collection_Db::SORT_ORDER_ASC); return $attributeCollection->getAllIds(); } |
1 2 3 4 5 6 7 8 9 10 11 12 |
private function _getGeneralFromAttributeSets(array $attributeSetIds) { if (count($attributeSetIds) > 500) { throw new Ess_M2ePro_Model_Exception("Attribute sets must be less then 500"); } $attributeCollection = Mage::getResourceModel('catalog/product_attribute_collection') ->addVisibleFilter() ->setOrder('frontend_label', Varien_Data_Collection_Db::SORT_ORDER_ASC); return $attributeCollection->getAllIds(); } |
1 |
mysqldump -u username -p database_name > dump.sql |
1 |
mysql -u username -p target_database_name < dump.sql |
Mage::getStoreConfig('sectionName/groupName/fieldName');
1 2 3 4 5 |
$sandbox = Mage::getStoreConfig('paypal/wpp/sandbox_flag'); $usernameUn = Mage::getStoreConfig('paypal/wpp/api_username'); $passwordUn = Mage::getStoreConfig('paypal/wpp/api_password'); $sigUn = Mage::getStoreConfig('paypal/wpp/api_signature'); $environment = ($sandbox == 0 ? 'live' : 'sandbox'); |