Blog: Extra-ordinary

How to get filepath and url in Magento

base Mage::getBaseDir() base Mage::getBaseDir(‘base’) magento/ app Mage::getBaseDir(‘app’)  magento/app/ code  Mage::getBaseDir(‘code’)   magento/app/code design  Mage::getBaseDir(‘design’)  magento/app/design/ etc  Mage::getBaseDir(‘etc’)  magento/app/etc lib Mage::getBaseDir(‘lib’)  magento/lib locale Mage::getBaseDir(‘locale’)  magento/app/locale media Mage::getBaseDir(‘media’)  magento/media/ skin Mage::getBaseDir(‘skin’) magento/skin/ var Mage::getBaseDir(‘var’)  magento/var/ tmp Mage::getBaseDir(‘tmp’)  magento/var/tmp cache Mage::getBaseDir(‘cache’)   magento/var/cache log Mage::getBaseDir(‘log’)  magento/var/log session Mage::getBaseDir(‘session’)   magento/var/session upload Mage::getBaseDir(‘upload’)   magento/media/upload export Mage::getBaseDir(‘export’)  magento/var/export

Continue Reading

How to setup Fedex in Magento shopping Cart?

Hello guys, I have been face to setup Fedex in Magento Shopping cart. I tried several times but failure due to incorrect Fedex information putted into admin panel. Here in this tutorial, you will know, how to setup FedEx Shipping Module in Magento Store. Step 1. Go to: Fedex Developer Resource Center and create developer’s account. Step 2. When you …

Continue Reading

History of Dhaka

Dhaka is the capital and largest city of Bangladesh. With its colorful history and rich cultural traditions, Dhaka is known the world over as the city of mosques and muslin. Its fame attracted travelers from far and near throughout the ages. Today it has grown into a mega city of about 8.5 million people, with an area of about 1353 …

Continue Reading

How to create cms pages dynamically

Here is code for CMS Pages dynamically…. $magentoCms = array( ‘title’ => ‘Magento CMS Page’, ‘identifier’ => ‘magento-cms’, ‘content’ => ‘Magento CMS Page Magento CMS Page Magento CMS Page Magento CMS Page’, ‘is_active’ => 1, ‘sort_order’ => 0, ‘stores’ => array(0), ‘root_template’ => ‘three_columns’ ); Mage::getModel(‘cms/page’)->setData($magentoCms)->save(); Hope it will work.

Continue Reading

How to show Top Menu Alphabetically in Magento?

This is very simple just copy below code and paste in topmenu.phtml. Here will show up to third level. If don’t need third level just remove sub sub category code. <?php # get category list ?> <?php $_helper = Mage::helper(‘catalog/category’) ?> <?php $_categories = $_helper->getStoreCategories() ?> <?php function array_sort($array, $on, $order=SORT_ASC) { $new_array = array(); $sortable_array = array(); if (count($array) …

Continue Reading

How to change hello from My Dashboard in Magento?

This is very simple change.Please follow below step: Please go to below file: \app\design\frontend\<Your_Theme>\template\customer\account\dashboard\hello.phtml You will get line:28 Change from: <h2><?php echo $this->__(‘hello,%s!’, $this->htmlEscape($this->getCustomerName())) ?></h2> Change to: <h2><?php echo $this->__(‘WelCome %s!’, $this->htmlEscape($this->getCustomerName())) ?></h2> // You can change with your suitable string like “Welcome” or others Hope it will work.

Continue Reading

What is actually Canvas tag in HTML5?

<canvas> tag was added in HTML5 as an element that allows the browser / client to draw shapes and images without any plugin. The canvas tag is used to draw graphics on a rectangular area inside a web page by using JavaScript. The canvas tag can be used to draw graphs, generate photo compositions and dynamic content like animations, games …

Continue Reading

please change the value of ‘security. cipher seed ‘ in app/config/core.php problem in Cakephp

Just follow bellow information – Edit yourInstallation/app/config/core.php Search for Security.salt and change some random characters (this is so your application  doesn’t have the same security seed as a billion other installations, which would be a serious security loophole. Do the same with Security.cipherSeed but use only numbers save core.php Hope it will work

Continue Reading