The most challenging aspect of designing a website is deciding font style for your content
The first step in making that difficult “font choice” is knowing the difference between the different types of fonts. Read More
The most challenging aspect of designing a website is deciding font style for your content
The first step in making that difficult “font choice” is knowing the difference between the different types of fonts. Read More
Generally individuals use phone number on website as per the layout but, iPhones, iPads, and other mobile devices automatically detect phone numbers and add tap-to-call functionality. Read More
Developers always use Table and Multiple Div for Paragraph in Tabular format but now it can be done through one Tag My Name is Kala Read More
A UI developer need to ensure that the site is error free and runs fine on each and every browser. Read More
How to do Vertical Center?
For a variable amount of text that you want to centre vertically
and horizontally, you can use display: table-cell and
vertical-align: middle.
Example:-
HTML:-
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
CSS:-
.vertical-wrapper{margin:0px; padding:0px; position:absolute; left:0px; top:0px; display:table; height:100%; width:100%;}
.vertical-content-area{margin:0px; padding:0px; display:table-cell; vertical-align:middle;}
.center-row{margin:0px auto; width:500px; padding:20px; background:#000; color:#fff; }
Sometimes it is needed to add custom field in config. For example if you want to add Minimum amount for surcharge in config, you need to follow below steps- Read More
Often, invalidate cache status is found in Magento, and in such scenario we need to keep on refreshing the cache status. Read More
Presently, many entrepreneurs are using ecommerce business with several other non ecommerce applications to make their presence online. Since magento have MVC architecture, its fairly simple to grab the magento block and include them in other PHP applications.
Example of using magento block in a non-magento application is magento wordpress plugin integration. We can use it with other application with joomla, drupal and other cms as per our requirements.
There are two main thing that we need to manage.
1-Initialize the magento
2-include the block
Initialize the magento
We need to do these step only once,preferably earlier in the execution of the application.We are going to load the magento bootstrap file and load the magento framework
include ‘/path/to/magento/app/Mage.php’;
umask(0);
Mage::app();
Now there is few extra step,that way we can correctly use its blocks
Mage::getSingleton(‘core/translate’)->setLocale(Mage::app()->getLocale()->getLocaleCode())->init(‘frontend’, true);
Mage::getSingleton(‘core/session’, array(‘name’ =’frontend’));
Mage::getSingleton(“checkout/session”);
Mage::getDesign()
// Set the package, usually “default” or “enterprise”
->setPackageName(‘enterprise’)
// Set the theme, usually “default”
->setTheme(‘default’);
$layout = Mage::app()->getLayout();
$module = Mage::app()->getRequest()->getModuleName();
if (!$module)
{
$customerSession = Mage::getSingleton(‘customer/session’);
$layout->getUpdate()->addHandle(‘default’)->addHandle($customerSession->isLoggedIn()? ‘customer_logged_in’: ‘customer_logged_out’)->load();
$layout->generateXml()->generateBlocks();
}
That’s it magento is now loaded and we are ready to include the block.
Including the layout blocks
To include a block created through Magento’s layout system all you need is the name. For instance, we can find the Magento header in layout/page.xml
…
Now we have the name like “header” that we can include the block as
echo $layout->getBlock(‘header’)->toHtml();
Including Static Blocks
Including a CMS static block is very simple. All you need is the identifier. For instance, if we had a block called “home-slider”
echo $layout->createBlock(‘cms/block’)->setBlockId(‘home-slider’)->toHtml();
Now developers need to create files and folder structure under wp-content/plugins/ folder. Let’s start creating a specific folder with name my_plugin. Read More
Countly is now providing Analytics service in BlackBerry 10. An innovative, real-time, open source mobile analytics application, Countly provides real time data of application usage on any device. It provides the feature like Read More