• Home
  • Programming
    • API
      • Google
    • Javascript
    • Php
    • Server
  • CMS
    • Magento
    • Yahoo! Store

Get around M2E “The only common (presented in all Attribute sets) “Text Field” or “Dropdown” Attributes available for selection.”

Thursday, 30 March 2017 14:14
Tim Ramsey
0 Comments
Change function around line 170 inĀ app\code\community\Ess\M2ePro\Helper\Magento\Attribute.php from:
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();
    }
to:
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();
    }
 

Setup PostGres DB/USER

Thursday, 16 March 2017 23:00
Tim Ramsey
0 Comments
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
#Change the default user password
sudo passwd postgres
#type and confirm password
 
#Change the Postgres admin password
Open a terminal window.
Change to the postgres user.
Log in to the postgres prompt.
Issue the command \password postgres.
Enter (and verify) the new password.
Exit the prompt with the command \q.
 
#Create your first database
Open a terminal window.
Change to the postgres user.
Log in to the postgres prompt.
Issue the command CREATE DATABASE testdb;
#make sure it was created \l
 
#Create users
Open a terminal window.
Change to the postgres user.
Log in to the postgres command prompt.
Issue the command CREATE USER username; (where username is the name of the user you want to create).
 
#Grant Privileges
Open a terminal window.
Change to the postgres user.
Log in to the postgres prompt (using the testdb database) with the command psql testdb.
Issue the command GRANT ALL PRIVILEGES ON DATABASE testdb TO user; (where user is the actual username to be given privileges).
 

Recursive Chmod Files and Directories

Thursday, 09 March 2017 22:38
Tim Ramsey
0 Comments
1
2
3
4
5
#directories
find magento/ -type d -exec chmod 755 {} \;
 
#files
find magento/ -type f -exec chmod 644 {} \;
 

Zip and compress a folder for downloading on Command Line

Wednesday, 08 March 2017 03:15
Tim Ramsey
0 Comments
1
tar -zcvf archive.tar.gz folder/
 

Page 10 of 15

  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • Next

Categories

  • CMS
    • Magento
    • Shopify
    • Yahoo! Store
  • Programming
    • API
      • Google
    • Javascript
    • Php
    • Server
    • SVN
  • VOIP

Recent Posts

  • How to write to Google Sheet with API in PHP
  • How to Migrate FreePBX server to a new server
  • Unifi Controller Java CPU 100%
  • Update Unifi Controller on Linux
  • Code Signing Desktop App