Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Featured

How to add regions in Drupal 8 theme

This tutorial will guide you about "How to add regions in drupal 8 theme". To add region in your template file, first you have to define region in your meta data file i.e (themename.info.yml) & then edit page.html.twig file to pr...

How to create simple module in Drupal 8 ?

In Drupal 8, all the custom modules will go in the module folder in the root directory. Here are the steps to create a simple custom module to print hello world in Drupal 8:   Step 1. Create 'mymodule' folder under modules f...

How to Create an attribute of a product through mysql setup Installer Script ?

In order to create an attribute of a product we can use our mysql setup Installer Script. In the following example we will see how can we do it. Lets we are required to add an attribute 'Warranty Period' to the products in the group &#...

How to create simple product in magento with custom options ?

These are the steps you can follow to create simple products in magento with custom options them   1.  Login to Admin menu, go to Catalog -> Manage Products.   2 In the upper-right corner of the Manage Products page,...

How to fetch the custom options and their sub options of any product?

In magento if we need to get the custom options and their sub options of any product we need to write a query and from that result we can extract the options.   Lets see how can we do it:   Firstly, load the product from the...

Different Methods addAttributeToSelect(), addAttributeToFilter() and addFieldToFilter() in Magento

addAttributeToSelect() :   addAttributeToSelect() method is used to select the attributes  that we want to retrieve from the database. If we want to load all attributes then we will use addAttributeToSelect('*'). Example:...

How to browse and show multiple images at the same time in cakephp?

Sometimes we are required to upload multiple images in our CakePHP application and at the same time to show them on that page. Let's see how we can do it. In our view file like as we have done in post add file of view. In our form of ty...

How to display Category Dropdown in admin panel through system.xml in magento?

In magento in a module if you're required to create a admin panel tab in which you need to display Category Drop down field through system.xml file in your module, then lets see how we can do it.   1- In the etc folder of the modul...

how to create Bundle Product ?

Steps to describe how to create Bundle Product ?   1. In admin panel click on Catalog->Manage Products. 2. Click on Add Product button. 3. Select (Attribute Set -> default & Product Type -> Bundle Product) from drop ...

Different Product Types in Magento

Hello Readers, In Magento, There are 6 different types of products available with the appropriate set of features required to sell the product. By Default product types in Magento are: Simple Products, Configurable Products, Grouped Produc...

Deploy Local magento to live server

Steps to describe Local magento to live server ?       Copy all of your local files to server     Delete the content of the /var folder     Export magento database from localhost and ...

How to change category page layout ?

Hello Readers, This tutorial will guide you about "How to change category page layout ". There are different ways to change the category layout in Magento.   1. Change individual category page layout   Login to...

Correct way to add Link to Top Section in Magento

Hello Readers, In this blog, I’m going to show you the correct way to add an extra link to the existing top links section under Account. Existing top links are: My Cart, My Account, Checkout, My Wishtlist, Login etc These Top-links are m...

How to Set & Get Magento Registry?

Hello Readers, This tutorial will guide you about "How to Set & Retrieve Variable in magento registry ". Registry means creating a new global variable which is to be used later in any magento template file (.phtml). Magento registr...

How to call static & custom block directly from phtml file ?

In magento, sometimes you need to call block in magento phtml to get the content of block. Here is an easy way to call static block & custom block in any template file. 1. Call Static block content in magento phtml file.   You...

How To Add Terms and Conditions Checkbox in Checkout Page ?

Hello Readers, This tutorial will guide you about "How To Show Terms and Conditions Checkbox during Checkout Page in magento". To enable the terms and conditions check box in checkout page, follow the below steps:   1. Lo...

How to set pagination in Joomla with MVC workflow?

Hello Readers, The below blog shows the pagination in Joomla. When we use the pagination in Joomla, we require the model and the view to write the code. Suppose we have a component (com_example).Open the component file (com_example/model...

How to pass data from controller to view in joomla ?

Hello Readers, The below blog display the data from joomla component controller (C1) to joomla view (V1). Suppose, we have a data in joomla controller.php and we want to rendered the data in joomla view (for example in component com_mycompo...

How to call the model from one component to another component in Joomla?

Hello Readers, Below blog shows the call of the model from one component to another component.   For Example - We have a two different components in Joomla : >> comp1 comp1->model->m1   model: m1 comp1->...

How to hit ajax in joomla module ?

Hello Readers, Step 1 : First we write the ajax code in default.php file inside module (Ex: mod_mymodule) tmpl/default.php folder.    Code Example : $("#id").change(function() { var id=$(this).val(); $.ajax ({ ...

How to create the custom plugin in Joomla?

Hello Readers, This blog shows the basic custom plugin creation in Joomla. The below are the basic files which is used to create plugin in joomla. 1. myplugin.php 2. myplugin.xml 3. index.html Step 1 : myplugin.php - myplugin.php is...

Creating the custom module in Joomla

Hello Readers, This blog shows the basic custom module creation in Joomla. In Joomla basically, we use the four basic files that used to develop the basic custom module in Joomla: Step 1 : mod_mymodule.php - mod_mymodule is the first or ...

How to create custom component in joomla ?

Hello Readers, This blog shows the creation of custom component in Joomla. Here we show the name of the component (mycomponent) as an example.   Step1: Create the name of the component com_mycomponent inside the Joomla component ...

How to fetch store name and other store details from system configuration in magento

In magento sometimes we need to get the current store details from system configuration for some reference, Then lets see how can we do it :   1. To get all the stores  from magento   for the same we can use  ...

How To Add Custom Field In Magento Contact Form ?

In magento, sometimes you need to add custom field to existing contact form as per client requirement. Here is an easy way to customize magento form by adding new field. You can also add more fields as per need. Lets see how can we do it. ...

How to get total quantity left of different color in configurable product ?

Hello Readers, This tutorial is going explain "How to get total quantity left of simple products with different color in configurable product". Lets see how can we do it: paste the below code in product view file (i.e catalog/pro...

Custom code to resize any image in magento

In magento if we are required to resize the image we can do it using the resize() function of magento, but sometimes it wont work then we need to apply some custom codes.   Lets see how can we do it :   In case if we are wor...

How to create configurable product ?

Steps to describe how to create configurable product ?   1. In admin panel click on Catalog->Manage Products.   2. Click on Add Product button.   3. Select Attribute Set -> default and Product Type -> con...

Template path hints in magento

Hello Readers, If you want changes in any page inMagento, Then you should surely know from which file the code is generated. In magento, the code on any page comes from different phtml files.  if you are beginners, you should know abou...

Override Magento Account Controller

Hello Readers, This tutorial will guide you about controller overriding using config.xml. Here i am giving an example "to override Customer AccountController". Lets start by creating the following folders: app/code/local/Custom/Reg...

How to setup youtube video in magento store?

If we need to add a video on our page in magento store lets see how we can do it  Follow these steps :   1. Login to the admin panel of your setup.   2. In admin panel menu go to CMS menu and click on option pag...

How to setup Like buttons of the Social networking in magento?

The social networks in these days works as a powerful tool for the advertisment or say for promoting the store content. Like Facebook as it has like button and share button which allow users to share it on web. To add the Facebook "Like&...

How to change the default url of any block in magento?

Suppose, we are required to change the url of any block in magento, lets see how we can change the url.   To do so we have to create a module and then re-write the url of that block path to redirect to the module. lets create a module ...

Url Rewrite Management in magento

Hello Readers, In this blog i am going to explain "How to work with URL Rewrite management in Magento. To accomplish this, follow the below steps:   1. Login to admin panel 2. Go to Catalog -> Rewrite Management 3. Click on...

getModel() and getResourceModel() in magento

Magento have two parts first as the model, with the Model it handles the business-logic, as Entity Attribute Value (EAV) Model, and the another Resource part, which only deals with talking to the database.   The collections in magento ...

Use of set and get methods in magento

Magento handles the setting and getting values of the fields with the set and get methods. To understand how it handles using these methods lets see : the set method in magento works as setter method, which sets to the value of the attributes...

How to create an attribute and apply it to magento products?

Hello Readers, In this tutorial, I am going to show you how to create an attribute" and apply it to Magento products. 1. Go to Catalog -> Attributes -> Manage Attributes 2. click on “Add New Attribute button in the top rig...

How to change the admin URL path in magento

In magento the default admin url is /admin/ but for the security purpose the default url is risky as it is know by everyone. For the security purpose we need to change the admin url of the store which would be known by the store staff only. &n...

How to add a new Custom Shipping Method

Hello Readers, In this tutorial, i am going to explain How to add a new Custom Shipping Method to existing Magento Installation which will accept value (i.e shipping charges) from System->configuration option. Here i have used Custom as a mod...

Difference between getModel() and getData() in magento

getModel() method :   Mage::getModel() will create a new instance of an object each time even such object exists in configuration. getModel will always return a new instance of the requested model every time.   For example:-&nb...

How to create slider of products which are recently added ?

In magento if we are required to create a simple slider of products which are recently Added for say between from previous month to the current month. Lets see how we can create it : 1. Create a module with namespace and module. 2. Then Crea...

Difference between getSingleton() and getModel() 

Mage::getSingleton() :   The getSingleton() method first checks for existence of the instance of the same class in the memory. If it finds the instance then it will return the same object from the memory. and if not than it will create...

Magento get method which loads Model, Block and Helper. 

In magento the functions that is mostly responsible for the things to be done are get and set methods, which are actually same as getter and setter methods. With the help of the get method we can actually call any model, block or helper. &nbs...

How to create a Installer Script to perform operation on database in magento ?

In magento sometimes we need to add fields to the existing table or create a new table for our module, for this purpose we are required to write the installer script instead or performing the operation directly on database.   Lets see ...

How to call static block in magento ?

Hello Readers, Before i tell you how to call static block in magento. Lets understand the term "static block" & How to Create It..? Static blocks : Sometimes we are required to add some custom data or images (like banners) in th...

How to create category attributes ?

In magento sometimes we are required to create category attributes programmatically in admin panel.  Lets see how we can do it: 1. Create a module with namespace and modulename. 2. Then Create a file config.xml in etc folder in our module...

How to get products list from the orders of the logged in customer?

In magento if we need to get the list of products of orders of the current logged in customer.  To do so lets see how we can do it: first of all we need to get the logged in user id from the session for the same write the ...

How to get list of all orders of the logged in user?

Sometimes in magento we are required to get list of orders of the current logged users.  To do so lets see how we can do it:   first of all we need to get the logged in user id from the session for the same write the ...

How to load categories with their subcategories product count?

In Magento if we are required to load the Categories with their product count, Then to do so, let see how:   First of all load the current root category for say we have default category with id: 2. To load the root category we can wr...

How to load products between two dates ?

If we are required to load products between two dates lest between previous month to current date. lets see how we can load them in the function loadproduct()    public function loadproduct() {                  $first = date(...
prev 1 3 4 5
Sign In
                           OR                           
                           OR                           
Register
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: