Get the Contact Us Form in Blocks:
{{block type='core/template' name='contactForm' template='contacts/form.phtml'}}
Get the Contact Us Form in Blocks:
{{block type='core/template' name='contactForm' template='contacts/form.phtml'}}
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 Base URL in Static Block:
To get SKIN URL -> {{skin url='images/image.jpg'}}
To get Media URL -> {{media url='/image.jpg'}}
To get Base URL -> {{base url='store/page.html'}}
To get Store URL -> {{store url='page.html'}}
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);
?>
Step1: Display the static blocks in magento
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('articals')->toHtml(); ?>
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() ?>