REMOVE INDEX.PHP FORM URL IN MAGENTO

 

Step1: Open the  .htaccess file in Magento Root folder:

 

Step2: find the code in .htaccess file

#Rewrite Base /magento/ . 
    Just replace it with
Rewrite Base /

 

Step3: Put this Code to below this lines:

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
</IfModule>

Get the Product Differnt Price in Magento

 

Step1: Get the Product Actual Price:

<?php 
   // without currency sign
   $_actualPrice = $_product->getPrice();
   echo $_actualPrice;
 
   // with currency sign
   $_formattedActualPrice = Mage::helper('core')->currency($_product->getPrice(),true,false); 
   echo $_formattedActualPrice;
?>

 

Step2: Get the Product Special Prices:

<?php
    // without currency sign
    $_specialPrice = $_product->getFinalPrice();
    echo $_specialPrice;
 
   // with currency sign
   $_formattedSpecialPrice = Mage::helper('core')->currency($_product->getFinalPrice(),true,false);
   echo $_formattedSpecialPrice;
?>

 

Step13 Get the Particular Product  Price:

<?php
   // particular product
    $_productId = 52;
    $_product = Mage::getModel('catalog/product')->load($_productId);
?>

Get Cart Subtotal with Currency Sign in Magento

 

Step1: Get Subtotal with currency Symbol:

<?php 
 $totals = Mage::getSingleton('checkout/session')->getQuote()->getTotals(); //Total object
 $grandtotal = round($totals["grand_total"]->getValue()); //Grandtotal value 
 echo $formattedPrice = Mage::helper('core')->currency($grandtotal , true, false);
?>

 

Step2: Get Subtotal without currency Symbol:

<?php echo Mage::helper('checkout/cart')->getQuote()->getSubtotal() ?>