# How to create a custom label - g: custom\_label?

To add a Custom\_label label, first choose Export -> Edit

![](https://3873075285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mk0pzcO-wUOO5qf4rYN%2Fuploads%2Fp8lJ9WZ5zx50VcNePWNy%2Fheureka.JPG?alt=media\&token=4faac568-cbd5-41b6-b386-1ce757de435d)

Then go to Rules -> New rule&#x20;

![](https://3873075285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mk0pzcO-wUOO5qf4rYN%2Fuploads%2FUVwYuJNFzNFLxMoObuRT%2Fprvidla.JPG?alt=media\&token=1eaac870-e714-4480-a47f-6956b10c5dc6)

If you want to edit Custom\_label, choose Edit Element. In the condition, select Custom\_label as a variable and define the modification according to your requirements.

If you want to create a Custom\_label, choose Add Element.

![](https://3873075285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mk0pzcO-wUOO5qf4rYN%2Fuploads%2F0QWlOzBDT3YQJNwBeHzD%2Fpravidla%20v%C3%BDb%C4%9Br.JPG?alt=media\&token=4a0c9374-6ad0-4a30-99d1-c372ee5735af)

In the example shown, the g: custom\_label\_5 label with a value of 100-299 CZK is added to all products with a price from 100 to 299 CZK.

![](https://3873075285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mk0pzcO-wUOO5qf4rYN%2Fuploads%2FsI0eH9P2ypbVFCaO1eYk%2Fcustom%20label%201.JPG?alt=media\&token=20467729-76ae-494d-99a1-5f8dbb484215)

![](https://3873075285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mk0pzcO-wUOO5qf4rYN%2Fuploads%2FtP31diw09IfLtgxmD3Kq%2Flabel%202.JPG?alt=media\&token=e06b4629-02ba-42aa-b35f-10e18c4f86bb)

The following will be written in XML:

`<g:custom_label_5>100-299</g:custom_label_5>`

You can see the change in the right column of the modified XML preview.
