Transform Field Action - Advanced Guide
The Transform Field action is one of the most versatile tools in the Feed Rules system. It allows you to completely reconstruct field values using data from multiple product fields.
How Transform Field Works
Transform Field uses a template system with placeholders. Any text wrapped in double curly braces {{field_name}} will be replaced with the actual value from that field.
Basic Example
{{brand}} {{title}} - {{color}}
{
brand: "Nike",
title: "Air Max 90",
color: "White"
}
Nike Air Max 90 - White
Advanced Techniques
1. Conditional Text with Field Existence
If a field doesn't exist or is empty, its placeholder is replaced with an empty string:
{{title}}{{subtitle}} → "Product Name" (if subtitle is empty)
{{title}} - {{subtitle}} → "Product Name - " (dash remains)
2. Multiple Transforms in Sequence
Create multiple rules that build upon each other:
- Rule 1: Transform title →
{{brand}} {{title}} - Rule 2: Transform title →
{{title}} | Shop Now - Result: "Nike Air Max 90 | Shop Now"
3. Creating SEO-Friendly URLs
Use Case: Generate SEO slugs
Combine Transform Field with other actions:
- Transform:
{{brand}}-{{title}}-{{color}}-{{size}} - Change case: lowercase
- Replace text: " " with "-"
- Result:
nike-air-max-90-white-10
Real-World Examples
E-commerce Title Optimization
Goal: Create marketplace-specific titles
Template: {{brand}} {{title}} {{gender}} {{category}} - {{color}} {{size}} - Fast Shipping
Result: "Nike Air Max 90 Mens Shoes - White 10 - Fast Shipping"
Inventory Status Messages
Goal: Add stock status to descriptions
Template: {{description}} | Stock Status: {{inventory_count}} units available
Multi-Language Support
Goal: Create language-specific fields
Templates:
- English:
Buy {{title}} from {{brand}} - Spanish:
Comprar {{title}} de {{brand}} - French:
Acheter {{title}} de {{brand}}
Best Practices
- Always test with sample data - Preview how transforms affect different product types
- Consider field availability - Not all products may have all fields
- Order matters - Place transform rules in logical sequence
- Combine with conditions - Use IF conditions to apply transforms selectively
- Document complex transforms - Use rule titles to explain the purpose