Search the Wiki

Viewing 221 to 230 of 233 items

Solved – 504 Gateway Timeout Error In Nginx Web Server

-Open your nginx.conf file located in /etc/nginx directory -Add this below piece of code under http { section client_header_timeout 3000; client_body_timeout 3000; fastcgi_read_timeout 3000; client_max_body_size 32m; fastcgi_buffers 8 128k; fastcgi_buffer_size 128k; Note – If its already present , change the values according. That’s it. Reload Nginx and php5-fpm. service nginx reload service php5-fpm reload If the error persists  Full Article…

0

Lazy load for image products grid view

<img class="lazy" data-src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(223); ?>" src=""  width="223" height="220" /> https://github.com/luis-almeida/unveil/blob/master/jquery.unveil.min.js jQuery(document).ready(function() {         jQuery('img.lazy').unveil(); });    

0

Magento Category Collection Grid/List View

Now let start with explanation and steps. Please go through the previous blog on paging to understand this better.   Step1: IndexController In the indexcontroller of your module we will write very simple code, to just load and render the layout. 1 2 3 4 5 6 7 8 9 <?php class Excellence_Collection_IndexController extends Mage_Core_Controller_Front_Action {     public function  Full Article…

0

Popular Linux commands

1. df -h  (calculating the size of server) 2. du -s directory (calculating the size of directory) 3. rm -rf directory/ (removing that directory and all childs of it) 4. resize2fs (after inscreasing disk space by using Amazon tools, we need to run this command to finish the inscreasing action) 5. cp -r /home/hope/files/* /home/hope/backup  Full Article…

0

Install and upgrade custom module in Magento

Magento automatically installs or upgrades any module that it encounters during runtime. The installation files are located under YourModule/sql/yourmodule_setup/mysql4-install-X.Y.Z.php. The trigger for running this file is that your module’s version number is not present in the DB table `core_resource` and that you have defined a version number in your module’s etc/config.xml file. You will also  Full Article…

0

Understanding block type in magento

core/template: This block renders a template defined by its template attribute. The majority of blocks defined in the layout are of type or subtype of core/template. page/html: This is a subtype of core/template and defines the root block. All other blocks are child blocks of this block. page/html_head: Defines the HTML head section of the  Full Article…

0

Get Product ID and Product Name in Magento

In Magento eCommerce while working with catalog model, There arise the need to fetch product details from product id. We can get all product details if we have product id. But sometimes we only have product name, so we need to get product id for getting product details. I am listing here both the method.  Full Article…

0

Getting url in .phtml files

Get Url in phtml files 1. Get Base Url :   Mage::getBaseUrl();   2. Get Skin Url :   Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN);   (a) Unsecure Skin Url :   $this->getSkinUrl('images/imagename.jpg');   (b) Secure Skin Url :   $this->getSkinUrl('images/imagename.gif', array('_secure'=>true));   3. Get Media Url :   Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA);   4. Get Js Url :   Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS);   5. Get  Full Article…

0