Element g:product_detail#
Basic information#
The g:product_detail element is used to provide detailed product information in the form of technical specifications, dimensions, sizes, material composition, and similar attributes — it is most commonly used for product parameters.
g:product_detail itself is just a wrapper for sub-elements:
g:section_name→ section name, i.e. the name of the parameter group — not requiredg:attribute_name→ parameter name — required sub-elementg:attribute_value→ parameter value — required sub-element
The g:product_detail block appears in the feed once for each parameter a product has.
Frequently asked questions#
- How do I add parameters to products in the feed? Colour, size, dimensions, volume, …
- Use the Set product parameters rule, which lets you add parameters in bulk for different product groups (for different queries).
- How do I remove specific parameters?
- Use the Remove parameter values rule, which lets you remove either just certain values of a specific parameter (e.g. only certain colours from the Colour parameter) or all values — meaning the entire parameter will be deleted and will not appear in the output feed for any product.
- How do I rename a parameter or a parameter value?
- Use the Find and replace rule to easily change the parameter name or the value of a parameter.
- To change the parameter name, use the following path in the Find and replace rule:
g:product_detail | g:attribute_name - To change a parameter value, use:
g:product_detail | g:attribute_value
- To change the parameter name, use the following path in the Find and replace rule:
- Use the Find and replace rule to easily change the parameter name or the value of a parameter.
- How do I copy parameters and their values from another element, such as
PARAM?- Use the Bulk copy values rule, which can copy the entire element structure of parameters.
- To copy the entire structure, list all paths to the elements in the structure you want to copy, one per line — starting from the least nested element (the wrapper) down to the most nested.
- Example configuration of the copy rule to copy all parameters and their values while preserving element structure:
| Source | Target | |
|---|---|---|
PARAM |
→ | g:product_detail |
PARAM | PARAM_NAME |
→ | g:product_detail | g:attribute_name |
PARAM | VAL |
→ | g:product_detail | g:attribute_value |
What Mergado Audit checks for the g:product_detail element#
- Whether the required
g:attribute_nameandg:attribute_valuesub-elements are missing or empty.
If you need help, contact our technical support.