Archive for April 2016

Magento Zend Framework Mappings

CE – Community Edition PE – Professional Edition EE – Enterprise Edition CE 1.9 – ZF 1.12.3 CE 1.5 – CE 1.8 – ZF 1.11.1 CE 1.4.2.0 – ZF 1.10.8 CE 1.4.0.1 – ZF 1.9.6 CE 1.3.2.1 – ZF 1.7.2 CE 1.2.0.1 – ZF 1.7.2 CE 1.1.6 – ZF 1.5.1 CE 1.0.19870.4 – ZF 1.5.1 […]

Magento 1.9 RAM Table

products = RAM up to 1000 = 8 GB up to 50,000 = 16 GB up to 100,000 = 32 GB up to 250,000 = 48 GB up to 500,000 = 64 GB up to 750,000 = 96 GB up to 999,999 = 128 GB

Magento template folders

1. /app/design/frontend/default/YOUR_TEMPLATE_NAME/layout Contains the .xml files that define which modules should be called by the template files and loaded in defined areas on the site. 2. /app/design/frontend/default/YOUR_TEMPLATE_NAME/template Contains files and subfolders that structure the final output for the users using the functions located in the layout/ folder 3. /skin/frontend/default/YOUR_TEMPLATE_NAME Contains the CSS, images, JavaScript and […]

Magento 1.5+ folder structure

404 (directory) – The folder stores the default 404 template and skin for Magento; app (directory) – This folder contains the modules, themes, configuration and translation files. Also there are the template files for the default administrationtheme and the installation; cron.php – a Cron Job should be set for this file. Executing of the file […]

Manual Magento theme change

Automatic Magento theme installation done through Magento Connect Manager. Here we go through manual installation steps. 1. Download a new theme and extract it. You will get app/ and skin folders. Move content of the folders to magento_dir/app and magento_dir/skin folders. 2. Login to magento admin section. Navigate to System -> Design 3. Choose store, […]

Magento2 post install permissions

find /var/www/magento2 -type f -print0 | xargs -r0 chmod 640 find /var/www/magento2 -type d -print0 | xargs -r0 chmod 750 chmod -R g+w /var/www/magento2/{pub,var}

Magento2 db config

Magento 2 keeps db configuration in app/etc/env.php

Magento 2 manually installing module

1. Run the following: mkdir $MAGENTODIR/app/code/vendorname/modulename cd $MAGENTODIR bin/magento module:status output: List of disabled modules: Vendorname_Modulename 2. Follow by: bin/magento module:enable Vendor_Module bin/magento setup:upgrade 3. If asks for compile do the following: bin/magento setup:di:compile

Magento structure instructions

1. For modules, use app/code 2. For frontend – storefront templates, use app/design/frontend 3. For backend – admin templates, use app/design/adminhtml 4. For language packages, use app/i18n Database config kept in: app/etc/env.php

Magento upgrade module

File app/code/Vendor/Module/etc/module.xml: <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd"> <module name="Vendor_Module" setup_version="1.0.0" /> </config> has  setup_version="1.0.0". If we want upgrade we should chanage to setup_version="1.0.1" and run bin/magento setup:upgrade To check run the query on db table: SELECT * FROM setup_module WHERE module=’Vendor_Module’;