Hi, I'm Shine Sudarsan, a professional Solution Developer from India. Welcome to my blog and portfolio!

08

Dec

Template overriding not working in Joomla? This quick hack may help you

For one of my recent Joomla project, I used the Joomshopping component as the Shopping Cart solution. While developing the site, I found some issues with template overriding in Joomla 1.6 and I had a hard time with it. After a long sleepless night I found a solution or hack :) to solve that issue. I had problem with the com_user component template, so I did this trick and it worked. Please note that this is a hack if you know any better method than this please let me know.

  1. Open includes directory from the joomla core installation folder.
  2. open application.php file
  3. goto line number 470 and add the following code under the commented statement.

if(JRequest::getVar('controller') == 'your controller name' || JRequest::getVar('option')=='your component name')

{
            $template->template = 'your template name';

}

5. Save the file and refresh the site after clearing the cache. Hope it will help someone :)


01

Sep

How to resolve "An AJAX HTTP request terminated abnormally" error on drupal?

For one of my recent drupal project I had faced some issue with the Ajax request. I was trying to change the fields in a view, but unfortunately drupal showed me an error "An AJAX HTTP request terminated abnormally". It might prevent you also from creating views or adding fields etc. etc. Basically it happens when the drupal core unable to determine the base_url. By specifying the base_url in drupal's settings.php file, we can resolve this issue. Here we go.

  1. Open /sites/default/settings.php in your favourite text editor.
  2. Find this line # $base_url = 'http://www.example.com';
  3. Add the absolute url of your domain in place of example.com.
  4. Save the file.
  5. Clear drupal cache, and try again. It will work smoothly.

20

Aug

How to remove Prestashop cache?

Prestashop was the packt open source technology award 2010 winner for shopping cart application  . I recently used it for one of my latest shopping cart website. When you are developing your first application on testing server, I strogly recommend you to turn off caching feature of Prestashop, by doing the following simple steps you can disable the caching.

  1. Login to admin panel
  2. Click preferences menu
  3. Choose performance sub-menu.
  4. Set forcecomple to yes.
  5. Save and reload the page.
  6. That's it :) Hope it helps....

07

Aug

How to avoid Magento enter a valid URL issue on localhost installation

This quick tip will help you to install Magento on your localhost. By default Magento installation script will check the base url of the installation is valid or not. Using this quick tip or hack :) you can bypass this test.

  • Open your magento installation folder.
  • Navigate to /js/prototype
  • Open validation.js file in your text editor.
  • Scroll down to line number 505.
  • Change it like this.

/*['validate-url', 'Please enter a valid URL. Protocol is required (http://, https:// or ftp://)', function (v) { return Validation.get('IsEmpty').test(v) || /^(http|https|ftp):\/\/(([A-Z0-9][A-Z0-9_-]*)(\.[A-Z0-9][A-Z0-9_-]*)+)(:(\d+))?\/?/i.test(v) }], */

  • Now clean the browser cookies and try again, hope it helps..