How to get filepath and url in Magento
-
zendnwar
-
January 28, 2013
-
Magento
-
0 Comments
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?
-
zendnwar
-
January 27, 2013
-
Magento
-
5 Comments
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
-
zendnwar
-
January 27, 2013
-
Bangladesh Tourism
-
83 Comments
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 check You are in Home Page in Magento?
-
zendnwar
-
January 14, 2013
-
Magento
-
0 Comments
This is very simple just below code copy and paste in your .phtml file and run. <?php if($this->getUrl(”) == $this->getUrl(‘*/*/*’, array(‘_current’=>true, ‘_use_rewrite’=>true))): echo “Homepage”; else: echo “Not in Homepage”; endif; ?> Hope it will work.
Continue Reading
How to create cms pages dynamically
-
zendnwar
-
January 10, 2013
-
Magento
-
1 Comment
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?
-
zendnwar
-
January 8, 2013
-
Magento
-
244 Comments
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?
-
zendnwar
-
January 4, 2013
-
Magento
-
201 Comments
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?
-
zendnwar
-
January 2, 2013
-
HTML5
-
0 Comments
<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
How to enable/disable debug messages for an action
-
zendnwar
-
December 31, 2012
-
Cakephp
-
4 Comments
This is very simple to enable/disable debug message for cakephp action Edit app\config\core.php. Configure::write(‘debug’, 2); replace to Configure::write(‘debug’, 0); Hope your debug work properly.
Continue Reading
please change the value of ‘security. cipher seed ‘ in app/config/core.php problem in Cakephp
-
zendnwar
-
December 31, 2012
-
Cakephp
-
3 Comments
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