Auto generate sku in Magento
===

Open file "/public_html/app/design/adminhtml/default/default/template/catalog/product/edit.phtml" and add following code:

>    <?php
> 
>	$tDate = date("d");
>	$tYear = date("Y");
>	$tMonth = date("m");
>	$tHour = date("H");
>	$tMinute = date("i");
>	$tSecond = date("s");
>	// SAT18072011101010
>       $currentDate1="SAT".$tDate.$tMonth.$tYear.$tHour.$tMinute.$tSecond;
>	$newSKU=$currentDate1;
>     ?>
>     <script type="text/javascript">
>    if(document.getElementById('sku').value == ""){
>
>
>    document.getElementById('sku').value = "<?php echo $newSKU; ?>";
>	document.getElementById('sku').setAttribute('readOnly','readonly'); 
>    }
>    </script>