Let's talk Contact us. No cost. No obligation.

Fill out this form and we will contact you with in 24 hrs.

captcha

Knowledgebase

Different types of fonts

August 21, 2017

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

How to align the div section or text vertically with CSS

June 22, 2017

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:-

Some text

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; }

How to use the magento block in other application

May 4, 2017

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












top-container

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();

Create a WordPress Plugin

April 20, 2017

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

BLACKBERRY Analytics service

April 2, 2017

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