How to customize platform code without creating extension in Hybris

The topic is about a basic feature of hybris where we can add or customize Platform code without writing one extention. So now the point is when we need to do this or go for this scenario ? The answer is when we are going for a very small change like one java file or a xml file or adding a new version of jar file then despite of creating one extension for it we can do it with some hybris inbuild feature. So lets check the steps with one example how to do this.

Process to Customize Platform:

As you know after hybris ant build there is config folder created in hybris directory as below.folder_structure

So when we go in to the config folder it gives us on customize folder.

customize_folder

Now if we want to customize a java file which is in the directory as hybris\bin\platform\ext\platformservices\src\de\hybris\platform\catalog named as CatalogService.java. So what we exactly have to do is write a customize java file CatalogService.java and put it inside the customize folder as the same directory structure it is defined. So you have to keep the customized java file in the directory as customize/platform\ext\platformservices\src\de\hybris\platform\catalog 

Then do one ant customize and it will take the file from the customize folder.

Hope I have explained the topic properly,you can reach to me or comment here if facing some issues with understanding the topic.

Assigning Template To A particular Product Through hMC In HYBRIS

Step-1:  Create one Item template through hmc:

First, create a new item template in the hybris Management Console (hMC) as can be seen in the screenshot below.

create_template
Go to the Cockpit node, right-click the Item Template and select Create Item Template.

In the displayed editor you need to specify at least the following values:

      Code – The template’s unique code

     Type – The item type to which this template can be applied
add_classification
You can add some classification classes to your template. This is easily done by right clicking in the editor next to Classification Classes and selecting Add Classifying Category (see the screenshot below)

select_classification_categories

Select the classification classes you want to add and click the Use button.

Step-2:  Assigning A Template to an Item Through HMC.

Go to hMC–>catalogàproducts

Select the product you want to assign template.

Then there will be one place assigned  template.

assign_template_toproduct_hmc

Add your template over here and save it.

Thank you ,If you guys need any clarification on this then comment here I will definitely help you out.