Creating Magento Attribute Set

Hello friends,

It is good practice to create products attributes to highlight characteristics of products in your magento store. And it is better practice to create an attribute set to work as a collection of same type of attributes.

So today we will discuss about to create an attribute set in magento.

In simple terms attribute set is a group of attributes.

For Example: We have a category in our store named “Shoes”. In that category we have different products of shoes and we can set default magento attributes for those products, but we want to display some extra information related to our shoes products on front-end. Like,

  • Shoes Size
  • Shoes Color
  • Gender

To satisfy the above requirement we can create attributes from Admin -> Catalog -> Attributes -> Manage Attributes and associate each attributes to each shoes products. For that you also refer the under given link:

But it will be an annoying task to associate each of these attribute separately to each shoes product. Don’t worry for that problem, because the solution of that problem is to create an attribute set of “Shoes”, assign shoes attributes to shoes attribute set and select “Shoes” attribute set while creating shoes products.

Now to create an attribute set follow the under given steps:

Step 1: Login to your magento admin.

Step 2: Go to Catalog -> Attributes -> Manage Attribute Sets from the header menu.

Step 3: Click on “Add New Set” button from the top right.

Step 4: Here give the attribute set name and select the based on attribute set from the combo box. Selected based on attribute set will take all the attributes of it in newly created one as a starting point.

Step 5: Click on “Save Attribute Set” button.

Step 6: The next page is displaying all the assigned attributes and unassigned attributes to this newly created attribute set. Here you can add new group within this attribute set by clicking on “Add New” button on the middle column.

Now to assign any attribute in attribute set drag the attribute from unassigned attributes column to assigned attributes column and in specific group.

And to make any attribute as unassigned simply drag that attribute back to unassigned column.

Hope this will help you.


Creating Magento Attribute

Hello friends,

It is good practice to define and highlight characteristics of a product, and such a characteristic of a product can be called attribute.

While working with magento store, many times we required to define certain characteristics of products and want to highlight those.

Look no need to worry in the above situation because magento is providing facility to create an attribute for a product, to define and highlight its characteristics.

So today we will discuss about to create product attributes in magento.

Now to create a product attribute follow the under given steps:

Step 1: Login to your magento admin.

Step 2: Go to Catalog -> Attributes -> Manage Attributes from the header menu.

Step 3: Click on “Add New Attribute” button from the top right.

Step 4: You are now on the “Add New Attribute” page and properties tab.

Here enter the information for attribute code, scope, catalog input type, default value, unique value, values required, input validation, apply to, use in quick / advanced search, comparable on frontend, use in layered navigation, position, visible on product view page on frontend fields according to your requirement.

Step 5: Go to “Manage Label / Options” tab and enter the attribute’s title in the different languages.

Step 6: Click on “Save and Continue Edit” button to create and save your attribute.

That’s it. You have created an attribute for your product.

Hope this will help you.


Posted in Magento. 1 Comment »

Salting Passwords with One way Hash Function

The most common practice for any website or application to check for authentic users is to assign secret keys or passwords to get access to their accounts. Now one way to store these passwords is to directly store them into database. That would be a huge security hole in any server’s database since anyone who can get access to that database can hack into anyone’s account using that password.

A good solution for this loop hole was to provide some kind of encryption. Change the clear text password into such unrecognizable form that it is not possible to determine what the actual password was. Many hashing functions are used to accomplish this task. What they do is they take the password entered by the user and convert it into some unrecognizable form using a one way hashing function(for example MD5). The advantage of using this cryptographic technique is that once you have encoded the password it can’t be decoded back to its original form. So there is no way a hacker would be able to decode the password.

This solution seems quite elegant but wait.. now again a new problem arises. Any site with probably hundreds and thousands of uses will have users with same passwords, right? So there is still a big security threat when such same password user can get access to anyone’s email or username then they can compromise someone’s account. Enter “salting”. Salting a password means you concatenate a random string with the user’s password and THEN encrypt it using a hash function. This way each user will have unique password even if their original password is same!

Let me give a simple illustration. Say there are two users with the password “mypasscode” on a site called Now uses their email ids as usernames. So if user A (let’s call him Anon) can get his hands on the email address of user B (call him Bnon) then he will be able to access Bnon’s account without his permission. If were to use salting, they will not only encode both the user’s passwords but also use salting technique while saving their passwords. So they will take the password “mypasscode” concatenate it with both their names, “mypasscode:anon”, “mypasscode:bnon” and then encrypt then and store in the database. This way each use gets a unique password no matter what! Here is a small sample code in PHP to implement our little example. When user registers on any site we can use this simple lines to add salting:

     //get data from the registration form and store in variables
     $user = "anon";
     $pwd = "mypasscode"; //contains the password selected by the new user
     echo $pwd.":".$user;
     $hashpwd = md5 ($pwd.":".$user);
     echo "<br />".$hashpwd;
     //Store $hashpwd in database with the user.

There is no restriction as to what to use as the concatenating string with the passwords. It can be the users’ email addresses, or names as we used in the example or it could be any other random string they wish to use for hashing. But the end result is a very secure user table in your database. Most modern websites use this technique to store passwords. That’s the reason they don’t know your password when you forget it. You just have to reset it yourself they will not send your original password as they don’t know it! If any site sends you your password back then it’s a clear sign that they store your password without proper security measures. So beware of such sites.

Happy Coding 🙂

10 Myths which panics SEOs Part 2

10 SEO Myths which scares SEOs part 2In the Last post we have discussed about 5 Myths which troubles the world of SEO. Let us discuss the rest Myths.

  1. Reciprocal links are now penalized.
    Reciprocal link building is one of the oldest practice rank well in the SERPs. This practice is still used buy not that much. At that time people used to link their friends website and others and the Reciprocal got bad word because it was spammy tactic but if you just sharing your stuff using this practice than you’re good. You should not fear about using it if it’s legitimate. Don’t Panic, just because you’re linking to something the link back won’t count. Read the rest of this entry »