Entries by admin

Javascript Confirm Delete

How to use a javascript confirm box to ask the user if they want to delete <script> function confirmDelete(deleleteUrl) { if (confirm(“Are you sure you want to delete”)) { document.location = deleleteUrl; } } </script> <a href=”javascript:confirmDelete(‘delete.php?id=1’)”>Delete</a> Another way <a href=”delete.php?id=1″ onclick=”return confirm(‘Are you sure you want to delete?’)”>Delete</a>

How to add .SWF files to the html webpage

Here I am sharing flash code for embedding flash in the website. Hope this will help many more…. <object width=”400″ height=”220″ align=”middle” classid=”clsid:d27cdb6e-ae6d-11cf-96b8-444553540000″ codebase=”http://fpdownload.macromedia.com/pub/shockwave/cabs /flash/swflash.cab#version=7,0,0,0″ id=”player1″> <param value=”your_flash_file.swf” name=”movie”> <param name=”menu” value=”false”> <param name=”quality” value=”high”> <param name=”wmode” value=”transparent”> <param name=”bgcolor” value=”#FFFFFF”> <embed width=”400″ height=”220″ align=”middle” src=”your_flash_file.swf” menu=”false” quality=”high” bgcolor=”#FFFFFF” name=”player” wmode=”transparent” allowtransparency=”true” allowscriptaccess=”always” type=”application/x-shockwave-flash” pluginspage=”http://www.macromedia.com/go/getflashplayer”> […]

Web browser css hacks – firefox, IE, chrome, safri, Opera

Inline Hack for IE * (star) can be used as the inline hack for both ie6 and ie7. For Example: Syntax: .selector{*property:value;} .logo{*margin-left:10px;} IE6 browser inline Hack _ (underscore) can be using only for ie6 For Example: Syntax: .selector{_property:value;} .logo{_margin-left:10px;} Firefox inline style content:””/*” can be used for firefox only where IE cannot recognize it. […]

Fascinating problem with .htaccess and addon domain

Fascinating problem with .htaccess and addon domain Recently I got website project from my client and he was interested to do install the site on addon domain. I installed the site successfully but were not to able to update the website content from admin panel. There was an issue of restriction and/or permission in the […]

Display banners for category page in Magento

Display banners for category page is very easy in magento. This banner will be shown at the top in middle column. It’s very easy functionality provided by magento itself. You just need to know how to do this that all. Lets walk through the set of 2 quick and easy steps. Presuming that you have […]

How to move Magento website to another domain in the same server

There’s a few things you need to do once you have your staging domain name all set up. 1. Copy the database. Export it to a file, create a staging database, Open exported database file with any well know editor(like notepad++) and replace current domain “currentdomain.com” to new domain “newdomain.com” and import this dump file. […]

How to set Google Analytics in Magento Store

Google Analytics is a free Google service which allows the webmasters and web site administrators to monitor their web sites’ traffic and conversion ratio. Magento supports two types of tracking: 1-Page View Tracking: Lists the origin from which your web store visitors linked to your store. 2-E-commerce Tracking: Lists the customers that make purchases and […]

How to do SEO in Magento

Magento supports search engine friendly e-commerce applications. The Search Engine Optimization for Magento can be enabled through the script admin area -> System -> Configuration -> Web -> Search Engines Optimization In the URL Options it is recommended to turn off the Add Store Code to Urls function (it is set to No by default). […]

How to set SSL in Magento

How to set SSL in Magento To set up SSL in Magento, start by obtaining an SSL certificate from a trusted Certificate Authority (CA). Once you have the certificate, install it on your server. In Magento, navigate to Stores > Configuration > General > Web, and under the Secure section, set Use Secure URLs on […]

Configuring Magento for Development / Debug Mode

1. Disable Cache System > Cache Management > Select All [check-boxes] > Actions = Disable > Submit 2. Re-Index All System > Index Management > Select All [check-boxes] > Actions = Reindex Data > Submit 3. Disable Compilation System > Tools > Compilation > Disable Note: By default compilation mode is disabled. So just check […]