Text replacement rules allow you to replace or remove text in your feed. Here are some examples of how you can use replace text functions.
How to create a text replace rule
- In the feed's 'Rules' page, click the blue '+' button to create a new rule
- Name the rule
- Create a custom rule to SET a feed's text field to your desired value or Product [P] field. For example, if you need to replace text in your product descriptions, then you may create a rule that says:
- SET: [F].[description]
- TO: [P].[description]
- WHERE: [P].[description] is not empty
- Click 0 replacements to open the text replace dialog box
- Enter the text you want to replace in the Find value field
- Enter the value you want to replace within the Replace value field
Note: To remove a value completely, you can leave the Replace value field empty and the system will remove any references of your Find value from that custom rule's feed field data.
- Click the blue checkmark to keep the replace text rule
- Click the blue 'Save' button to save the whole rule
Common text replace functions
Below are 4 common text replace function examples.
Standardize capitalization
Remove "Free Shipping" language
Fix duplicate values
Remove values completely
To remove a value completely, you can leave the Replace value field empty and the system will remove any references to your Replace value from that custom rule's feed field data.
Global rules with Text Replacements can be applied to a custom rule, and the text replacement values will automatically be applied to that rule. To use Global Rules, see the Global Rules article.
Comments
0 comments
Please sign in to leave a comment.