JavaScript / jQuery / PHP / Programmings / Technologies

Image preview before upload file

We can preview the uploaded image easily with jQuery or JavaScript before actual upload of file. Just Follow these Steps HTML Code <form id=”Imgfrm”> <input id=”imgfile” type=”file” /> <img id=”preview” src=”#” alt=”your image” />< /form> Then use following jQuery Code (You can use pure JavaScript also) $(“#imgfile”).change(function(){ if (this.files && this.files[0]) { var reader = … Continue reading

Magento / PHP / Programmings

Display Products from Specific Category on Home Page – Magento

First you have to note the ID of category you want to display at the home page. You can find this on Magento Admin side under category tab. Then go to CMS>>Pages. Then Select “Home Page” from the list of pages. Add the following code to content tab of that page {{block type=”catalog/product_list” name=”home.catalog.product.list” alias=”products_homepage” … Continue reading

PHP / Programmings

Remove index.php from CodeIgniter url

By default, the index.php file will be included in your URLs. You can easily remove this file by using a .htaccess file with some simple rules. To remove index.php from codeigniter url follow the steps, Create .htaccess file on the root folder (in project folder). Add the following rule to that .htaccess file. RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f … Continue reading

Magento / PHP / Programmings

Remove .html from category or product URL in Magento

Magento’s all category and products URL come with .html by default. You can change this .html extension. And also can remove it. Follow this steps to remove .html Log in to Admin Panel. Go to System->Configuration->Catalog. Select the tab Search Engine Optimizations. Then remove Product URL Suffix and Category URL Suffix. You need to re-index data,for … Continue reading