<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
     xmlns:atom="http://www.w3.org/2005/Atom"
     xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
     xmlns:content="http://purl.org/rss/1.0/modules/content/">

    <channel>

        <title>DLTR</title>

        <link>http://dltr.org</link>
        <description>Magento code snippets and misc codings</description>
        <category>IT/Internet/Web development</category>
        <dc:language>en-au</dc:language>
        <dc:creator>Damodar Bashyal is at enjoygame at hotmail dot com</dc:creator>

        <dc:rights>Copyright 2026</dc:rights>
        <admin:generatorAgent rdf:resource="http://codefight.org/"/>

                    <item>

                <title>How to upgrade NodeJS using NPM</title>
                <link>http://dltr.org/blog/server/599/How-to-upgrade-NodeJS-using-NPM</link>
                <guid>http://dltr.org/blog/server/599/How-to-upgrade-NodeJS-using-NPM</guid>

                <description><![CDATA[
                    Quick steps to upgrade:<br />
Check current installed nodejs version.<br />
[root@dltr.org]# node -v<br />
Force clean cache.<br />
[root@dltr.org]# npm cache clean -f                    ]]>
                </description>
                                <category>server</category>
                                <pubDate>Fri, 08 Sep 2017 12:38:43 +0000</pubDate>

            </item>
                        <item>

                <title>Generate new SSL certificate using SAN for localhost</title>
                <link>http://dltr.org/blog/server/597/Generate-new-SSL-certificate-using-SAN-for-localhost</link>
                <guid>http://dltr.org/blog/server/597/Generate-new-SSL-certificate-using-SAN-for-localhost</guid>

                <description><![CDATA[
                    SSH into your server and follow below steps:<br />
<br />
NOTE: I am logged in as root, so I haven't used SUDO.                    ]]>
                </description>
                                <category>server</category>
                                <pubDate>Wed, 19 Jul 2017 13:06:55 +0000</pubDate>

            </item>
                        <item>

                <title>Linux remove IP from fail2ban f2b</title>
                <link>http://dltr.org/blog/server/596/Linux-remove-IP-from-fail2ban-f2b</link>
                <guid>http://dltr.org/blog/server/596/Linux-remove-IP-from-fail2ban-f2b</guid>

                <description><![CDATA[
                    First check if your IP has been banned:                    ]]>
                </description>
                                <category>server</category>
                                <pubDate>Wed, 01 Feb 2017 12:41:41 +0000</pubDate>

            </item>
                        <item>

                <title>Magento go live checklist</title>
                <link>http://dltr.org/blog/magento/595/Magento-go-live-checklist</link>
                <guid>http://dltr.org/blog/magento/595/Magento-go-live-checklist</guid>

                <description><![CDATA[
                    We are now preparing to go live with our first magento project at my current work place. So, I am trying to make a list of things that shouldn't be forgotten during and after going live.<br />
Here are few things that I have came across so far. Suggest me below in the comment section if I missed any critical step.                    ]]>
                </description>
                                <category>magento</category>
                                <pubDate>Tue, 10 Jan 2017 10:51:40 +0000</pubDate>

            </item>
                        <item>

                <title>How to override Magento Observers?</title>
                <link>http://dltr.org/blog/magento/594/How-to-override-Magento-Observers</link>
                <guid>http://dltr.org/blog/magento/594/How-to-override-Magento-Observers</guid>

                <description><![CDATA[
                    How to override Magento Observers?<br />
Today's task was to show/hide M2ePro's 'Show eBay Order' button based on permission. Earlier I had done the similar task for 'Create RMA' button which was quite straight forward. But that rewrite didn't work this time as it was an Observer.<br />
This is how I was able to hide 'RMA' tab and 'Create RMA' button from Magento order view page.                    ]]>
                </description>
                                <category>magento</category>
                                <pubDate>Thu, 24 Nov 2016 13:02:47 +0000</pubDate>

            </item>
                        <item>

                <title>PHP undefined function mssql_connect and sqlsrv_connect</title>
                <link>http://dltr.org/blog/error/587/PHP-undefined-function-mssql_connect-and-sqlsrv_connect</link>
                <guid>http://dltr.org/blog/error/587/PHP-undefined-function-mssql_connect-and-sqlsrv_connect</guid>

                <description><![CDATA[
                    mssql_connect is now deprecated - http://php.net/manual/en/function.mssql-connect.php now move to sqlsrv_connect - http://php.net/manual/en/function.sqlsrv-connect.php<br />
<br />
ERROR: exception 'Exception' with message 'connection to mssql is not supported. Please download and follow directions from here - https://www.microsoft.com/en-us/download/details.aspx?id=20098' in C:\_projects\technooze\app\code\local\Technooze\Schoolbrochure\Model\Mssql.php:182<br />
<br />
For sqlsrv_connect to work download (Microsoft Drivers for PHP for SQL Server) from https://www.microsoft.com/en-us/download/details.aspx?id=20098                    ]]>
                </description>
                                <category>error</category>
                                <pubDate>Wed, 06 Apr 2016 06:39:31 +0000</pubDate>

            </item>
                        <item>

                <title>Magento Missing argument 1 for Mage_Core_Block_Template ::setTemplate</title>
                <link>http://dltr.org/blog/magento/586/Magento-Missing-argument-1-for-Mage_Core_Block_Template-setTemplate</link>
                <guid>http://dltr.org/blog/magento/586/Magento-Missing-argument-1-for-Mage_Core_Block_Template-setTemplate</guid>

                <description><![CDATA[
                    If you are getting this magento error. It's easy to find why you are getting this error: Just need to add some debug code:<br />
Open file app/code/core/Mage/Core/Block/Template.php and go to function setTemplate() (line 111 as shown in error log) and add these lines:                    ]]>
                </description>
                                <category>magento</category>
                                <pubDate>Mon, 04 Apr 2016 01:01:44 +0000</pubDate>

            </item>
                        <item>

                <title>How to fix node&#45;gyp rebuild errors on windows</title>
                <link>http://dltr.org/blog/error/585/How-to-fix-node-gyp-rebuild-errors-on-windows</link>
                <guid>http://dltr.org/blog/error/585/How-to-fix-node-gyp-rebuild-errors-on-windows</guid>

                <description><![CDATA[
                    I was trying to install node module printer "npm install printer" and got few errors while trying few solutions that I found in different blogs, forums and stackoverflow sites.<br />
I would like to share what worked for me at the end.                    ]]>
                </description>
                                <category>error</category>
                                <pubDate>Wed, 30 Mar 2016 02:08:34 +0000</pubDate>

            </item>
                        <item>

                <title>PHPStorm increase responsiveness</title>
                <link>http://dltr.org/blog/tips/584/PHPStorm-increase-responsiveness</link>
                <guid>http://dltr.org/blog/tips/584/PHPStorm-increase-responsiveness</guid>

                <description><![CDATA[
                    I love to use PHPStorm but it uses so much memory and it's so hard to work on windows as everything freezes because of this IDE.                    ]]>
                </description>
                                <category>tips</category>
                                <pubDate>Fri, 18 Mar 2016 06:10:51 +0000</pubDate>

            </item>
                        <item>

                <title>magento 2 setup on existing vagrant environment using browser</title>
                <link>http://dltr.org/blog/magento/583/magento-2-setup-on-existing-vagrant-environment-using-browser</link>
                <guid>http://dltr.org/blog/magento/583/magento-2-setup-on-existing-vagrant-environment-using-browser</guid>

                <description><![CDATA[
                    Step 1: Download and extract magento 2 enterprise edition on your project folder<br />
<br />
Step 2: Open your local /etc/hosts file and point www.mageee2.com.au to your environment IP as:                    ]]>
                </description>
                                <category>magento</category>
                                <pubDate>Wed, 23 Dec 2015 03:54:21 +0000</pubDate>

            </item>
                        <item>

                <title>Resume broken large scp transfer</title>
                <link>http://dltr.org/blog/server/582/Resume-broken-large-scp-transfer</link>
                <guid>http://dltr.org/blog/server/582/Resume-broken-large-scp-transfer</guid>

                <description><![CDATA[
                    Last few days I was trying to download large database dump on my new mac book pro over a ssh connection. But as soon as the computer goes to sleep it breaks the file transfer. And, I am still figuring out how mac settings work :-(                    ]]>
                </description>
                                <category>server</category>
                                <pubDate>Mon, 07 Sep 2015 05:55:56 +0000</pubDate>

            </item>
                        <item>

                <title>Linux commands to empty all files of a directory</title>
                <link>http://dltr.org/blog/server/581/Linux-commands-to-empty-all-files-of-a-directory</link>
                <guid>http://dltr.org/blog/server/581/Linux-commands-to-empty-all-files-of-a-directory</guid>

                <description><![CDATA[
                    Below are few commands to empty content of a file that already exists in a directory.                    ]]>
                </description>
                                <category>server</category>
                                <pubDate>Tue, 25 Aug 2015 02:04:34 +0000</pubDate>

            </item>
                        <item>

                <title>How to apply Magento patches</title>
                <link>http://dltr.org/blog/magento/580/How-to-apply-Magento-patches</link>
                <guid>http://dltr.org/blog/magento/580/How-to-apply-Magento-patches</guid>

                <description><![CDATA[
                    This should work on both versions of Magento "community and Enterprise".<br />
This is how I apply patch locally:                    ]]>
                </description>
                                <category>magento</category>
                                <pubDate>Mon, 13 Jul 2015 05:39:43 +0000</pubDate>

            </item>
                        <item>

                <title>Synchronizing system clock to Network Time Protocol (NTP) issue</title>
                <link>http://dltr.org/blog/server/579/Synchronizing-system-clock-to-Network-Time-Protocol-NTP-issue</link>
                <guid>http://dltr.org/blog/server/579/Synchronizing-system-clock-to-Network-Time-Protocol-NTP-issue</guid>

                <description><![CDATA[
                    When I was trying to connect to s3bucket from my local it failed and the reason I found was my system time was bit behind.                    ]]>
                </description>
                                <category>server</category>
                                <pubDate>Thu, 04 Jun 2015 09:15:42 +0000</pubDate>

            </item>
                        <item>

                <title>How to permanently save a password protected ssh key on your machine</title>
                <link>http://dltr.org/blog/ssh/578/How-to-permanently-save-a-password-protected-ssh-key-on-your-machine</link>
                <guid>http://dltr.org/blog/ssh/578/How-to-permanently-save-a-password-protected-ssh-key-on-your-machine</guid>

                <description><![CDATA[
                    First create a new bash process by running this command on your command line.<br />
<br />
ssh-agent bash<br />
It will ask you to enter your password once, then won't ask again.<br />
Now add your ssh keys like this:                    ]]>
                </description>
                                <category>ssh</category>
                                <pubDate>Mon, 04 May 2015 01:33:49 +0000</pubDate>

            </item>
                        <item>

                <title>Magento read CSV using Varien_File_Csv library</title>
                <link>http://dltr.org/blog/magento/577/Magento-read-CSV-using-Varien_File_Csv-library</link>
                <guid>http://dltr.org/blog/magento/577/Magento-read-CSV-using-Varien_File_Csv-library</guid>

                <description><![CDATA[
                    Read CSV into PHP array<br />
$file = 'csv_file_to_parse_into_php_array.csv'; // full path to your csv file.                    ]]>
                </description>
                                <category>magento</category>
                                <pubDate>Mon, 20 Apr 2015 05:51:04 +0000</pubDate>

            </item>
                        <item>

                <title>How to increase virtualbox hard disk partition size</title>
                <link>http://dltr.org/blog/server/576/How-to-increase-virtualbox-hard-disk-partition-size</link>
                <guid>http://dltr.org/blog/server/576/How-to-increase-virtualbox-hard-disk-partition-size</guid>

                <description><![CDATA[
                    Today When I was importing large database I was getting error that there is not enough space after half of the database was imported. When I checked space it was showing 100% used. Even though I had dynamic space allocated, it was not increasing beyond 37GB. After going through few forums I managed to combine all tips &amp; tricks and apply them to increase my oracle virtualbox ubuntu main partition.                    ]]>
                </description>
                                <category>server</category>
                                <pubDate>Mon, 16 Mar 2015 04:00:07 +0000</pubDate>

            </item>
                        <item>

                <title>Imacros to automate magento checkout using paypal express</title>
                <link>http://dltr.org/blog/magento/575/Imacros-to-automate-magento-checkout-using-paypal-express</link>
                <guid>http://dltr.org/blog/magento/575/Imacros-to-automate-magento-checkout-using-paypal-express</guid>

                <description><![CDATA[
                    I had heard about imacros but never tried. This time I wanted to give it a go as I need to proceed to through checkout process few times and watch the log. So, to do this repetitive task, I installed imacros extension on google chrome and recorded checkout process from beginning to end.                    ]]>
                </description>
                                <category>magento</category>
                                <pubDate>Thu, 08 Jan 2015 05:16:26 +0000</pubDate>

            </item>
                        <item>

                <title>Magento re&#45;index via command line</title>
                <link>http://dltr.org/blog/magento/574/Magento-re-index-via-command-line</link>
                <guid>http://dltr.org/blog/magento/574/Magento-re-index-via-command-line</guid>

                <description><![CDATA[
                    If you are hosting your Magento store on shared hosting, this is almost required that you have to run re-index through command line. Even if you are on powerful server, you may find from time to time reindex times out if you have big data. <br />
To over come this issue, you can use your command line to run reindex on required indexes.<br />
I use PuTTY to connect to server and then go to your magento install and then to shell folder. e.g.<br />
~/public_html/shell<br />
Here you can check status of current indexes with this command:                    ]]>
                </description>
                                <category>magento</category>
                                <pubDate>Mon, 29 Dec 2014 22:56:51 +0000</pubDate>

            </item>
                        <item>

                <title>How to install SSL on windows localhost (wamp)?</title>
                <link>http://dltr.org/blog/server/573/How-to-install-SSL-on-windows-localhost-wamp</link>
                <guid>http://dltr.org/blog/server/573/How-to-install-SSL-on-windows-localhost-wamp</guid>

                <description><![CDATA[
                    These are the steps I noted down when installing ssl on my localhost wamp installation. I am using windows 7 Professional 64-bit Operating system.<br />
First of all download and install OpenSSL binary from http://slproweb.com/products/Win32OpenSSL.html, I installed http://slproweb.com/download/Win64OpenSSL_Light-0_9_8zb.exe.<br />
Using command line generate private key which is 2048bits encryption.                    ]]>
                </description>
                                <category>server</category>
                                <pubDate>Tue, 14 Oct 2014 01:39:52 +0000</pubDate>

            </item>
                        <item>

                <title>Magento find number of times a coupon has been used</title>
                <link>http://dltr.org/blog/magento/572/Magento-find-number-of-times-a-coupon-has-been-used</link>
                <guid>http://dltr.org/blog/magento/572/Magento-find-number-of-times-a-coupon-has-been-used</guid>

                <description><![CDATA[
                    Magento was not recording correct number of times a shopping cart coupon was used. When I ran below query in database, it was giving wrong information as far as I know.<br />
mysql&gt; select u.coupon_id, c.code, count(*) as total from salesrule_coupon_usage u, salesrule_coupon c where u.coupon_id=c.coupon_id and u.coupon_id IN (119, 132, 91) group by u.coupon_id;<br />
May be I was wrong to use that query to find usage :), so tried another query, which gave me better report.                    ]]>
                </description>
                                <category>magento</category>
                                <pubDate>Mon, 13 Oct 2014 00:21:29 +0000</pubDate>

            </item>
                        <item>

                <title>How to get secure url in Magento</title>
                <link>http://dltr.org/blog/magento/570/How-to-get-secure-url-in-Magento</link>
                <guid>http://dltr.org/blog/magento/570/How-to-get-secure-url-in-Magento</guid>

                <description><![CDATA[
                    How do you get secure or unsecure urls in magento? It's quite simple actually. We discussed about getting different base url types in previous blog post here - [Magento get base url].<br />
Now we will show you how to get secure urls in magento. So in previous post we got base url as:                    ]]>
                </description>
                                <category>magento</category>
                                <pubDate>Fri, 05 Sep 2014 03:30:13 +0000</pubDate>

            </item>
                        <item>

                <title>Magento add your own CMS Directive to include your custom template tag</title>
                <link>http://dltr.org/blog/magento/567/Magento-add-your-own-CMS-Directive-to-include-your-custom-template-tag</link>
                <guid>http://dltr.org/blog/magento/567/Magento-add-your-own-CMS-Directive-to-include-your-custom-template-tag</guid>

                <description><![CDATA[
                    This post details on how I was able to add new template tag on Magento Cms pages and static blocks. If you want to     know more about these directives and template tags, you can check official magento wiki here.<br />
I have already added this functionality and example on my github repository here https://github.com/dbashyal/Magento-General-Module-Extension.     This module consists of other functionalities, so check code and strip out that you don't need it.                    ]]>
                </description>
                                <category>magento</category>
                                <pubDate>Tue, 15 Jul 2014 09:09:07 +0000</pubDate>

            </item>
                        <item>

                <title>Multiple RewriteCond .htaccess Query String Redirects</title>
                <link>http://dltr.org/blog/htaccess/566/Multiple-RewriteCond-.htaccess-Query-String-Redirects</link>
                <guid>http://dltr.org/blog/htaccess/566/Multiple-RewriteCond-.htaccess-Query-String-Redirects</guid>

                <description><![CDATA[
                    It's easy to redirect simple page urls from one location to another but query strings redirection can make you pull your hair.<br />
This is how I redirected simple pages:                    ]]>
                </description>
                                <category>htaccess</category>
                                <pubDate>Thu, 29 May 2014 09:04:12 +0000</pubDate>

            </item>
                        <item>

                <title>How to pull new product image in magento for hover image in product list page</title>
                <link>http://dltr.org/blog/magento/565/How-to-pull-new-product-image-in-magento-for-hover-image-in-product-list-page</link>
                <guid>http://dltr.org/blog/magento/565/How-to-pull-new-product-image-in-magento-for-hover-image-in-product-list-page</guid>

                <description><![CDATA[
                    Lets create new image attribute first at: magento admin &gt; Catalog &gt; Attributes &gt; Manage Attributes &gt; Add New Attribute<br />
Set Attribute Properties as below:                    ]]>
                </description>
                                <category>magento</category>
                                <pubDate>Wed, 28 May 2014 04:19:27 +0000</pubDate>

            </item>
                        <item>

                <title>Git Delete / Remove Last Commit From Local and Remote</title>
                <link>http://dltr.org/blog/git/564/Git-Delete-Remove-Last-Commit-From-Local-and-Remote</link>
                <guid>http://dltr.org/blog/git/564/Git-Delete-Remove-Last-Commit-From-Local-and-Remote</guid>

                <description><![CDATA[
                    This is the function I always forget and keep googling, So here are my finds to delete, revert or remove commits from local and remote.                    ]]>
                </description>
                                <category>git</category>
                                <pubDate>Fri, 23 May 2014 05:20:26 +0000</pubDate>

            </item>
                        <item>

                <title>Magento 301 redirect 404 page to existing pages</title>
                <link>http://dltr.org/blog/magento/563/Magento-301-redirect-404-page-to-existing-pages</link>
                <guid>http://dltr.org/blog/magento/563/Magento-301-redirect-404-page-to-existing-pages</guid>

                <description><![CDATA[
                    Are you seeing a lot of 404 page reports on google webmaster tools? Then fear not, we now have free t404 to handle magento's 404 pages.                    ]]>
                </description>
                                <category>magento</category>
                                <pubDate>Tue, 20 May 2014 03:57:27 +0000</pubDate>

            </item>
                        <item>

                <title>Magento fix catalog price rules promotion</title>
                <link>http://dltr.org/blog/magento/562/Magento-fix-catalog-price-rules-promotion</link>
                <guid>http://dltr.org/blog/magento/562/Magento-fix-catalog-price-rules-promotion</guid>

                <description><![CDATA[
                    One of the magento based website had strange issue. All rules in the admin &gt; Promtions &gt; Catalog Price Rules were inactive. But still some products were displaying as sale items. So ran mysql code listed below to find out what was happening.                    ]]>
                </description>
                                <category>magento</category>
                                <pubDate>Tue, 06 May 2014 03:46:43 +0000</pubDate>

            </item>
                        <item>

                <title>Save (output) MySQL query results into a text file</title>
                <link>http://dltr.org/blog/mysql/561/Save-output-MySQL-query-results-into-a-text-file</link>
                <guid>http://dltr.org/blog/mysql/561/Save-output-MySQL-query-results-into-a-text-file</guid>

                <description><![CDATA[
                    Today because of magento bug when I saved payment info on client's site, it replaced all payment info on database with encrypted values.                    ]]>
                </description>
                                <category>mysql</category>
                                <pubDate>Tue, 15 Apr 2014 07:54:00 +0000</pubDate>

            </item>
                        <item>

                <title>Magento robots.txt file content</title>
                <link>http://dltr.org/blog/magento/557/Magento-robots.txt-file-content</link>
                <guid>http://dltr.org/blog/magento/557/Magento-robots.txt-file-content</guid>

                <description><![CDATA[
                    From today onwards I am going to apply these rules to fix issues with SEO.<br />
Magento admin / System / configuration / General / Web / Auto-redirect to Base URL / Yes (301 Moved Permanently)<br />
Also, add robots.txt file with below content.                    ]]>
                </description>
                                <category>magento</category>
                                <pubDate>Fri, 31 Jan 2014 05:52:13 +0000</pubDate>

            </item>
                        <item>

                <title>Magento product images duplicate issue with CSV product importer</title>
                <link>http://dltr.org/blog/magento/556/Magento-product-images-duplicate-issue-with-CSV-product-importer</link>
                <guid>http://dltr.org/blog/magento/556/Magento-product-images-duplicate-issue-with-CSV-product-importer</guid>

                <description><![CDATA[
                    Our client likes to leave images on media/import folder and when they import csv, if product image already existed, it was creating duplicate image.<br />
So below is a quick workaround to fix this issue. Here we are just deleting previous images if we are going to re-import them again.                    ]]>
                </description>
                                <category>magento</category>
                                <pubDate>Tue, 28 Jan 2014 05:05:54 +0000</pubDate>

            </item>
                        <item>

                <title>Magento upgrade steps, issues and solutions</title>
                <link>http://dltr.org/blog/magento/553/Magento-upgrade-steps-issues-and-solutions</link>
                <guid>http://dltr.org/blog/magento/553/Magento-upgrade-steps-issues-and-solutions</guid>

                <description><![CDATA[
                    This is raw copy from my notes during magento store upgrade.<br />
<br />
======================================= Restrict access to /index.php with IP Address whitelist.<br />
This is what I have:<br />
if (file_exists($maintenanceFile)) {<br />
    // START IP BLOCKER<br />
    // Remove file 'maintenance.flag' when you decide to go live<br />
    $ip_whitelist = array('x.x.x.x', '127.0.0.1', 'x.x.x.x');<br />
    if(!in_array($_SERVER['REMOTE_ADDR'], $ip_whitelist)) {<br />
        $protocol = "HTTP/1.0";<br />
        if ( "HTTP/1.1" == $_SERVER["SERVER_PROTOCOL"] )<br />
          $protocol = "HTTP/1.1";<br />
        header( "$protocol 503 Service Unavailable", true, 503 );<br />
        header( "Retry-After: 3600" );<br />
        header('Location: /index_landingpage.php'); // our own custom landing page.<br />
        exit;<br />
    }<br />
    // END IP BLOCKER<br />
    include_once dirname(__FILE__) . '/errors/503.php';<br />
    exit;<br />
}                    ]]>
                </description>
                                <category>magento</category>
                                <pubDate>Fri, 24 Jan 2014 02:07:53 +0000</pubDate>

            </item>
                        <item>

                <title>Magento Print Customer&apos;s Group Name on the transactional emails</title>
                <link>http://dltr.org/blog/magento/549/Magento-Print-Customers-Group-Name-on-the-transactional-emails</link>
                <guid>http://dltr.org/blog/magento/549/Magento-Print-Customers-Group-Name-on-the-transactional-emails</guid>

                <description><![CDATA[
                    One of our Magento clients uses different customer groups to offer different price discounts on orders. When customers buy $100 worth of products within a year they become bronze member with 5% discount on future orders and Silver member if $200 or over and Gold if $300 and over and they get discount accordingly.                    ]]>
                </description>
                                <category>magento</category>
                                <pubDate>Mon, 13 Jan 2014 23:34:58 +0000</pubDate>

            </item>
                        <item>

                <title>Magento rewriting block, helper and models plus override issues</title>
                <link>http://dltr.org/blog/magento/548/Magento-rewriting-block-helper-and-models-plus-override-issues</link>
                <guid>http://dltr.org/blog/magento/548/Magento-rewriting-block-helper-and-models-plus-override-issues</guid>

                <description><![CDATA[
                    Magento is an awesome ecommerce web application but sometimes it gives a real headache. As I am creating mobile theme, the requirement was, it should load desktop version theme on everything other than mobile devices. But the real challenge was when user decides to load desktop version even on mobile devices it should load desktop version not mobile template.                    ]]>
                </description>
                                <category>magento</category>
                                <pubDate>Mon, 06 Jan 2014 03:08:18 +0000</pubDate>

            </item>
                        <item>

                <title>Magento fix database table engines.</title>
                <link>http://dltr.org/blog/magento/516/Magento-fix-database-table-engines</link>
                <guid>http://dltr.org/blog/magento/516/Magento-fix-database-table-engines</guid>

                <description><![CDATA[
                    /*run these if exists*/<br />
ALTER TABLE `catalog_category_flat_store_1` ENGINE=InnoDB;<br />
ALTER TABLE `catalog_category_flat_store_2` ENGINE=InnoDB;<br />
ALTER TABLE `catalog_category_flat_store_3` ENGINE=InnoDB;<br />
ALTER TABLE `catalog_category_flat_store_4` ENGINE=InnoDB;<br />
ALTER TABLE `catalog_product_flat_1` ENGINE=InnoDB;<br />
ALTER TABLE `catalog_product_flat_2` ENGINE=InnoDB;<br />
ALTER TABLE `catalog_product_flat_3` ENGINE=InnoDB;<br />
ALTER TABLE `catalog_product_flat_4` ENGINE=InnoDB;<br />
/*below table exists in enterprise version. tested on 1.12.0.2*/                    ]]>
                </description>
                                <category>magento</category>
                                <pubDate>Mon, 23 Sep 2013 12:45:48 +0000</pubDate>

            </item>
                        <item>

                <title>Magento Reindex Issue / Error on Product Flat Data</title>
                <link>http://dltr.org/blog/magento/513/Magento-Reindex-Issue-Error-on-Product-Flat-Data</link>
                <guid>http://dltr.org/blog/magento/513/Magento-Reindex-Issue-Error-on-Product-Flat-Data</guid>

                <description><![CDATA[
                    I was getting below error today:<br />
There was a problem with reindexing process.SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails ('database'.'#sql-70c_45b87', CONSTRAINT 'FK_CAT_PRD_FLAT_2_ENTT_ID_CAT_PRD_ENTT_ENTT_ID' FOREIGN KEY ('entity_id') REFERENCES 'catalog_product_entity' ('entity_id') ON DELETE CASCADE ON UPDAT)                    ]]>
                </description>
                                <category>magento</category>
                                <pubDate>Tue, 17 Sep 2013 03:25:15 +0000</pubDate>

            </item>
                        <item>

                <title>jQuery get browser width including scrollBar</title>
                <link>http://dltr.org/blog/javascript/509/jQuery-get-browser-width-including-scrollBar</link>
                <guid>http://dltr.org/blog/javascript/509/jQuery-get-browser-width-including-scrollBar</guid>

                <description><![CDATA[
                    First Check if scrollbar is on:<br />
if($(document).height() &gt; $(window).height()){... srcollbar is on ...}<br />
Now lets create a function to find the width of the scrollbar:                    ]]>
                </description>
                                <category>javascript</category>
                                <pubDate>Fri, 06 Sep 2013 02:21:00 +0000</pubDate>

            </item>
                        <item>

                <title>Magento Set Order Status To Complete</title>
                <link>http://dltr.org/blog/magento/508/Magento-Set-Order-Status-To-Complete</link>
                <guid>http://dltr.org/blog/magento/508/Magento-Set-Order-Status-To-Complete</guid>

                <description><![CDATA[
                    Open the order you want to update and click on invoice button.                    ]]>
                </description>
                                <category>magento</category>
                                <pubDate>Tue, 03 Sep 2013 09:08:51 +0000</pubDate>

            </item>
                        <item>

                <title>Magento force sending emails after order successful</title>
                <link>http://dltr.org/blog/magento/495/Magento-force-sending-emails-after-order-successful</link>
                <guid>http://dltr.org/blog/magento/495/Magento-force-sending-emails-after-order-successful</guid>

                <description><![CDATA[
                    Magento was not sending email notification to customer and magento web store owner after new order was placed. When I checked order in admin it was showing "Customer Notified" with a green tick but no one were receiving any notifications.                    ]]>
                </description>
                                <category>magento</category>
                                <pubDate>Wed, 07 Aug 2013 01:56:10 +0000</pubDate>

            </item>
                        <item>

                <title>Magento Automatically select shipping method based on customer group</title>
                <link>http://dltr.org/blog/magento/494/Magento-Automatically-select-shipping-method-based-on-customer-group</link>
                <guid>http://dltr.org/blog/magento/494/Magento-Automatically-select-shipping-method-based-on-customer-group</guid>

                <description><![CDATA[
                    Today's task was to auto select shipping method based on customer group. For this website only approved and logged in customers were allowed to proceed to checkout.                    ]]>
                </description>
                                <category>magento</category>
                                <pubDate>Tue, 06 Aug 2013 06:18:18 +0000</pubDate>

            </item>
                        <item>

                <title>Magento automatically assign product to parent categories</title>
                <link>http://dltr.org/blog/magento/486/Magento-automatically-assign-product-to-parent-categories</link>
                <guid>http://dltr.org/blog/magento/486/Magento-automatically-assign-product-to-parent-categories</guid>

                <description><![CDATA[
                    It was good to find something that I didn't realise it existed in magento before today. Client had provided csv of products with only deepest child category. I needed to display product in that child category and it's parent categories above it.                    ]]>
                </description>
                                <category>magento</category>
                                <pubDate>Mon, 22 Jul 2013 07:08:44 +0000</pubDate>

            </item>
                        <item>

                <title>Magento attributes &#45; get admin label for attribute options</title>
                <link>http://dltr.org/blog/magento/482/Magento-attributes-get-admin-label-for-attribute-options</link>
                <guid>http://dltr.org/blog/magento/482/Magento-attributes-get-admin-label-for-attribute-options</guid>

                <description><![CDATA[
                    We had custom module to display color boxes instead of color labels for colour selection. In the magento admin we had set label 'White' for admin / default but '#ffffff' for magento store frontend, so we can use it on style background color. See image for more details about this requirement and issue.                    ]]>
                </description>
                                <category>magento</category>
                                <pubDate>Tue, 16 Jul 2013 02:12:41 +0000</pubDate>

            </item>
                        <item>

                <title>Magento get current store information</title>
                <link>http://dltr.org/blog/magento/472/Magento-get-current-store-information</link>
                <guid>http://dltr.org/blog/magento/472/Magento-get-current-store-information</guid>

                <description><![CDATA[
                    Here are some of the codes that will help retrieving information about the current or selected store.<br />
Load store object with below code. This will load current store by default unless you pass store id.<br />
$store = Mage::app()-&gt;getStore(); // see below for magento core function                    ]]>
                </description>
                                <category>magento</category>
                                <pubDate>Mon, 08 Jul 2013 02:38:59 +0000</pubDate>

            </item>
                        <item>

                <title>Magento admin redirects to dashboard when submitting form &#45; solved</title>
                <link>http://dltr.org/blog/magento/457/Magento-admin-redirects-to-dashboard-when-submitting-form-solved</link>
                <guid>http://dltr.org/blog/magento/457/Magento-admin-redirects-to-dashboard-when-submitting-form-solved</guid>

                <description><![CDATA[
                    Today I was going crazy because whenever I tried to update customer information from admin it was redirecting me to admin dashboard. It was working perfectly on previous server and on my local. After debugging for a while I couldn't find the solution for the issue at all.                    ]]>
                </description>
                                <category>magento</category>
                                <pubDate>Mon, 24 Jun 2013 05:35:01 +0000</pubDate>

            </item>
                        <item>

                <title>Integrate mailchimp with magento using mageMonkey</title>
                <link>http://dltr.org/blog/magento/439/Integrate-mailchimp-with-magento-using-mageMonkey</link>
                <guid>http://dltr.org/blog/magento/439/Integrate-mailchimp-with-magento-using-mageMonkey</guid>

                <description><![CDATA[
                    Our client wanted to integrate mailchimp with magento. So I dig for extension and found this awesome free magento extension called mageMonkey. I installed it through magento connect using key: http://connect20.magentocommerce.com/community/Ebizmarts_MageMonkey                    ]]>
                </description>
                                <category>magento</category>
                                <category>mailchimp</category>
                                <pubDate>Tue, 28 May 2013 08:40:19 +0000</pubDate>

            </item>
                        <item>

                <title>Redirect old website / domain to new domain using htaccess</title>
                <link>http://dltr.org/blog/htaccess/436/Redirect-old-website-domain-to-new-domain-using-htaccess</link>
                <guid>http://dltr.org/blog/htaccess/436/Redirect-old-website-domain-to-new-domain-using-htaccess</guid>

                <description><![CDATA[
                    Today's task was to redirect all pages from an old domain to new domain except one page (google verification file). All pages including any query string should be stripped out and redirect to only homepage of new domain with out any query string.                    ]]>
                </description>
                                <category>htaccess</category>
                                <pubDate>Mon, 27 May 2013 03:49:14 +0000</pubDate>

            </item>
                        <item>

                <title>Magento get current url of a page</title>
                <link>http://dltr.org/blog/magento/420/Magento-get-current-url-of-a-page</link>
                <guid>http://dltr.org/blog/magento/420/Magento-get-current-url-of-a-page</guid>

                <description><![CDATA[
                    Magento core url helper allows you to get current url.<br />
To get current url in magento you just need one line of code as below:<br />
ref: public function getCurrentUrl()<br />
$magentoCurrentUrl = Mage::helper('core/url')-&gt;getCurrentUrl();<br />
You can also get current url as base64 encoded url as:                    ]]>
                </description>
                                <category>magento</category>
                                <pubDate>Mon, 13 May 2013 07:19:55 +0000</pubDate>

            </item>
                        <item>

                <title>Magento Redirect Functions</title>
                <link>http://dltr.org/blog/magento/419/Magento-Redirect-Functions</link>
                <guid>http://dltr.org/blog/magento/419/Magento-Redirect-Functions</guid>

                <description><![CDATA[
                    Magento core provides some built-in redirect functions to redirect url to new urls. Let's check few of them below:<br />
From any of your Magento controller you can redirect user to any url as defined below. If you want to use redirect function in your magento observer model check this Technooze_T404 extension which I created to handle 404 issue in multi-store magento installation as defined here - stackoverflow question.                    ]]>
                </description>
                                <category>magento</category>
                                <pubDate>Mon, 13 May 2013 06:30:03 +0000</pubDate>

            </item>
                        <item>

                <title>Magento get url with or without parameters</title>
                <link>http://dltr.org/blog/magento/418/Magento-get-url-with-or-without-parameters</link>
                <guid>http://dltr.org/blog/magento/418/Magento-get-url-with-or-without-parameters</guid>

                <description><![CDATA[
                    Magento lets you get url with or without parameters as below:<br />
// get base url<br />
Mage::getUrl()<br />
// {{parse-tag url='/'}}                    ]]>
                </description>
                                <category>magento</category>
                                <pubDate>Mon, 13 May 2013 02:52:35 +0000</pubDate>

            </item>
                        <item>

                <title>Magento Programmatically create a cms page</title>
                <link>http://dltr.org/blog/magento/411/Magento-Programmatically-create-a-cms-page</link>
                <guid>http://dltr.org/blog/magento/411/Magento-Programmatically-create-a-cms-page</guid>

                <description><![CDATA[
                    You can easily create a cms page in magento programmatically. Useful when you need to upload a bunch of pages from csv file. Here I haven't created a csv parser but just a simple code to save a cms page.<br />
My file path: /magento/cms-page.php                    ]]>
                </description>
                                <category>magento</category>
                                <pubDate>Fri, 10 May 2013 07:28:57 +0000</pubDate>

            </item>
            
    </channel>
</rss>
