Rated 4.8 out of 5.0 for Aresourcepool by 600 clients on over 1500+ projects.

October 2016

8 easy steps to Develop Custom Module in Magento

Magento is an open source platform written in PHP . It is basically used in setting up ecommerce store for any business. imilar in this article we will learn how to develop custom module will learnin Magento. Custom module structure is similar in all versions of Magento.

Whenever you do install Magento, you will look the following Magento Directory structure:

Before starting with Module development:

1-Let us assume that you already have a working copy of Magento with version 1.7 or 1.7+

2-Firstly disable the cache.

For disabling the cache go to:

Magento Admin Panel -> System -> Cache Management -> Select all cache type from left side checkboxes -> Select Action: disable from right to drop down > click Submit.

Custom Module Development:

See below, there are listed some easy steps to that will help you to create your own demo module.

STEP: 1 -> Create New Folder inside Magento/app/code/local/ Directory Module namespace name AResourcePool

STEP: 2 -> Create New Folder inside Magento/app/code/local/ AResourcePool Directory Module name Demo

STEP: 3 -> Create New file inside magento/app/etc/Modules/ AResourcePool_Demo.xml

Paste This Code on this file

<?xml version=”1.0″ ?>

<config>

<modules>

< AResourcePool _Demo>

<active>true</active>

<codePool>local</codePool>

</ AResourcePool _Demo>

</modules>

</config>

STEP: 4 -> Please Check your Module registered or not form adminpanel

System-> Configration->ADVANCED->advanced-> Click on Disable Module Output

STEP:5-> Create Directories inside your module link Module/app/code/local/AResourcePool/Demo/

Block

Model -> Product.php

Controllers

Helper

etc -> config.xml

sql

STEP:6-> Create New File “Product.php” inside Model folder on out module

Product.php

class AResourcePool_Demo_Model_Product {

public function sayHello() {

echo ‘Hi this is testing module’;

}

}

STEP: 7-> For Test that your Module is working or not, create a file in your root magento folder like test.php and call your class and function.

<?php

require_once ‘app/Mage.php’;

Mage::app();

$product = new AResourcePool_Demo_Model_Product;

$product->sayHello();

STEP: 8 -> After that run this file on browser like localhost/Magento/test.php
Then display output of your module function.

For Magento Development you can Hire Web Designer India or Magento Developer India at AResourcePool.

Action Hooks and Filter Hooks in WordPress – A Brief Introduction for Beginners?

WordPress is the most generally used content management system by businesses. If you’re novice to wordpress development or thinking of doing regarding some plug-in or theme development then foremost you must be accustomed to Hooks. You must remember Hooks in WordPress as they play an important role in programming. This article covers the kinds of  hooks and their necessity .

Need of Hooks:
Hooks in WordPress lets developers or coders to simply tie their own code in with the WordPress core code base, themes, and plugins. it’s s generic term in WordPress that refers to places wherever you’ll add your own code or modify what WordPress is doing or outputting by default.

Types of Hooks:
There are 2 kinds of hooks in WordPress. These are:
1-Action Hooks
2-Filter Hooks

hooks-in-wordpress

Action Hooks: Action Hooks in WordPress is triggered at specific time it is running associatevly and allows you to take an action. this could embrace things like Widget creation once WordPress is initializing or causing a Tweet once somebody publishes a post.

Statement for writing custom functions for your theme or plugin by hook your code into action hook:
add_action( ‘action_hook’, ‘your_function_name’ );

Above line tells WordPress that you simply would really like to execute your operate referred to as your_function_name once the system comes across the action hook referred as action_hook.

Example of Action hooks:

add_action( ‘wp_head’, ‘my_actionhook_example’ );
function my_actionhook_example() {
echo ” . “\n”;
} // The end of my_actionhook_example()
?>

Filter Hooks: Filter Hooks in WordPress lets developers to find and modify WordPress information before it’s sent to the info or the browser. Some samples of filters would come with customizing however excerpts are displayed or adding some custom code to the tip of a web log post.

Identification of Filter Hook in Word Press:

A filter hook are often known in WordPress by seeing the subsequent code as:

1- apply_filters( $tag, $value );
2- apply_filters_ref_array( $tag, $args );

How to apply Filter hook in WordPress:
For making the filter hook in WordPress, write the code line as follows:

$title = apply_filters(‘wp_title’, $title, $sep, $seplocation);

The top example shows the creation of the wp_title filter hook. This hook permits you to control a page’s title before it’s displayed within the browser.

Example for creating or registering a filter Hook

<?php

add_filter( ‘wp_title’, ‘mytest_add_sitename_to_title’, 10, 2 );

mytest_add_sitename_to_title( $title, $sep ) {

/* Retrieve site name. */

$name = get_bloginfo( ‘name’ );

/* Append site name to $title. */

$title .= $sep . ‘ ‘ . $name;

/* Return the title. */

return $title;

}

?>

The top code shows one thing you would possibly add in your custom theme functions.php file to append the positioning name to a page’s title.

Thus,
Action Hooks and Filter Hooks play a vital role in WordPress. each WordPress beginner or developer ought to be conversant in them.
For WordPress Development, you can also hire wordpress developers India , who will do everything from web design to plugin development.

Hire-us

Tutorial to Create a Blog site with WordPress

WordPress is a free online, open source blog or website creation tool that is written in PHP language. It is popular as most powerful CMS in present time. WordPress is an easy to operate and uses flexible blog script. It has multiple advance set of features and offers multiple attractive themes to draw user attention.

What you can do with WordPress?

There are listed some points that are very easy to manage with WordPress. These are as follows:

1- You can easily edit and publish posts.

2 – Sorting of articles in categories.

3 – You can easily make a Search within your content.

4 –You can easily manage access

5-You can make changes to theme and code as per your requirements.

WordPress offers website hosting services also that enables you to take advantage of all its features.

How to create Blog site with WordPress?

Firstly you are needed to install WordPress on your website. You can do it with any auto installation tool or by using inbuilt web installer. Once you have installed WordPress, now you can start creating your blog. Go to the WP admin page by entering the exact URL. There is given one example below:

Enter your login credentials that you choose at the time of WordPress installation.  Here you will see admin area of the WordPress script.

Start Blogging

To write post in wordpress blog.

Go to

Posts -> add new from your dashboard.

Hire-WordPress-Developers

Here you will find the page to post your article. Paste your article here. Add relevant tags and category as per your article. Now click on publish button. Your post will be visible at the front page of your blog.

wordpress-developers-india

You can also Hire WordPress Developers at AResourcePool who are responsible to design stunning website or blog for your business.

Hire-us

Tips to Choose Right Mobile App Development Company?

Mobile App Development is playing the most important role for your business in targeting the right audience in right manner. It is helpful in maximizing business sales and leads by using a single platform. App design is necessary for business as it provides accessibility and versatility for any company. If we do survey, we will find that most of users are remain active on mobile phones so it is good to change your business direction and make it found on mobile phones. All things are good but it is too difficult to develop mobile apps that will exactly meet your audience and easily get stored in play store. Mobile app development Company may help you to stay ahead in this and get the interactive app design. But when you will deeply think about this, one question arises in mind how to choose right Mobile App Development Company?

Mobile-app-development-company

Most of companies are offering Android and iPhone iphone app development services. Company may meet following challenges during app design as resource restraint, security, implementation of ideas, type of business model¸ finance etc.

Important Points that will lead to app success are as follows:
1-App should be optimized for mobile users.
2-It should be user friendly.
3-Mobile Apps should be easily memorable and sharable.
4-It should be spontaneous.
5-It should be cheap so that most of users can easily download it.
6- Always keep in mind demographic location of your audience and design according to that.
7-App should have the level of enjoy ability.

How to choose the right Mobile App Development Company?

Now come to the main point about selecting or choosing the right mobile app design and Development Company. There are some tips or you can say questions that should be arise in your mind before you are hiring a company. These are:

1- If they have any relevant or significant business application before?
It is always good to check the company previous mobile app design projects. Doing this will help to maximize business profit by getting more app download.

2-If the Company is certified?
Certified companies always work in developing trustable and relevant mobile applications for your business.

3-Company Online Reputation
Always check the company online reputation before hiring it for projects. Go for the client testimonials and also see it work portfolio to analyze it.

4-If the Company offers good prices?
Always look of the company is providing best app design within budget. You must go with the prices if they are suitable to you or not.

5- If you are hiring an experienced Company?
It is always good to hire skilled and experienced Mobile app developers for your business. They should be well renowned with every phase of development.

6- If Company has capability to work on Cross platforms?
Company should have good knowledge about cross platform development. It will helpful to get the application developed for various platforms.

Why it is always good to Hire Mobile App Design Company?

It is always a good idea to hire Mobile app Design Company due to following points.
1- Professional Developers are always experts and have good technical skills to meet with client demands.
2-They are always aware with standard development
3-Professionals are always quick and cost effective to meet with projects on time.
4-They can easily incorporate all the essential features.
5-They always know the exact solution to meet the business app development purpose.

Thus, by keeping all the above point we can determine that it is mobile age and it will increase selling opportunities through mobile communication. So if you want to an interactive app for business then hire the right company who is passionate to his work, have great technical skills, past experiences and more.