Skip to main content
All CollectionsUse Cases
Prefix & Suffix in displayed data
Prefix & Suffix in displayed data
Updated over 4 months ago

If you have a numerical value to which you want to prepend and/or append specific piece of text, Cropink allows you to do that.

Example:

We have a data element which contains a static numerical discount percentage of our promo products (f.ex. 15, 17, 23 etc.) and we want to display a badge in which the total discounted percent will be shown with prepended and appended text (f.ex. "Sale -15%").

  1. In the "Designs" tab open the design of your choice.

  2. Click on "Edit in Design Manager" on the left side under the product image.

  3. Go to "Layer Settings".

  4. Select an appropriate element which is linked to your sale badge. In our case, we have mapped the discount_percentage element to Custom Label.

  5. Right under the data mapping setting, click on "Enable Number Settings".

  6. In the "Prefix" field type in "Sale -" and in the "Suffix" window type in "%".

  7. Hit "Preview and Reload Product".

  8. Once the preview displays everything properly, you may hit "Save and Exit".

And that's it! Your changes will be displayed upon next update. If you wish to apply the changes instantly, go to "Settings" and hit "Update Now".

Did this answer your question?