Remove shipping method and shipping information from onepage checkout


Download Shipping Method Remover Module

Just download this module and install it in your magento.
change one more file to remove shipping information form left progress bar.

app/design/frontend/default/default/template/checkout/onepage/progress.phtml

Remove below code block from file.

echo $this->getChildHtml('shipping.progress')
echo $this->getChildHtml('shippingmethod.progress')
Advertisements

Matrix using javascript


<script type="text/javascript">
window.onload=function(){
    var body=document.body,tbl=document.createElement('table');
	body.style.backgroundColor='#000';
	body.style.color='#060';
	body.style.fontWeight='bold';
	body.style.fontFamily='Lucida Console';

    for(var i = 0; i <= 30; i++){
        var tr = tbl.insertRow();
        for(var j = 0; j <= 50; j++){
            var td = tr.insertCell();
			td.style.width="2%";
        }
    }
    body.appendChild(tbl);
	setInterval(function(){
		rain(Math.floor((Math.random()*50)),0)
	},20);
}
function rain(n,i) {          
   setTimeout(function (){
	  var e=document.getElementsByTagName('tr')[i].childNodes[n];
	  e.style.color='#fff';
      e.innerHTML = '&#'+Math.floor((Math.random()*127)+1)+';';
	  setTimeout(function(){e.style.color=''},200)
	  
      if (i++ < 30) rain(n,i);
   },20);
};
</script>

matrix

Different discount for each customer


1) Create one custom customer attribute name it.”Discount”.
2) Add event to config file to perform this discount

<events>
			<catalog_product_get_final_price>
				<observers>
					<Pnk_Customerdiscount_price_observer>
						<type>singleton</type>
						<class>Pnk_Customerdiscount_Model_Observer</class>
						<method>get_final_price</method>
					</Pnk_Customerdiscount_price_observer>
				</observers>
			</catalog_product_get_final_price>
		</events>

3) Create observer at model folder to listen event.

 public function get_final_price($observer)
	 {
		  if(Mage::getSingleton('customer/session')->isLoggedIn())
		  {
			$customer_id = Mage::getSingleton('customer/session')->getCustomerId();
			$customer = Mage::getModel('customer/customer')->load($customer_id);
			$customerDiscount = (int)$customer->getDiscount();
		  	if(round($customerDiscount)>0){
				$discount = number_format($customer->getDiscount(),0);
				$event = $observer->getEvent();
				$product = $event->getProduct();
				$product->original_price = $product->getPrice();   
				$totalDiscount = ($product->original_price * $discount)/100;
				$product->setFinalPrice($product->original_price - $totalDiscount);
				return $this;
			}
		  }
	 }

4) give discount for particulate customer from admin manage customer section.