Element g:condition#
Basic information#
The g:condition element indicates the condition of the product — whether it is new (new), refurbished (refurbished), or used (used).
Frequently asked questions#
- Is providing the product condition in g:condition required?
- Yes, but only when the product is used or refurbished.
- For new products, providing this element is optional.
- How do I populate the g:condition element with a specific value?
- Use the Rewrite rule to save a specific value into the
g:conditionelement. - To set the same value for all products, e.g. new, select All products as the query in the rewrite rule.
- To set different values in
g:conditionfor different products, first create product queries on the Products page based on their condition, and then use those queries in the Bulk rewriting by query rule. - You can also use the Bulk rewriting by values rule to set different
g:conditionvalues based on the values of another element you already have for products.
- Use the Rewrite rule to save a specific value into the
- How do I populate the g:condition element with a value from another element?
- Use the Bulk copy values rule to copy the value from another element — for example, from
CONDITIONtog:condition. - You can also use the Rewrite rule to save the value of another element (a variable) into
g:condition, for example:%CONDITION%.
- Use the Bulk copy values rule to copy the value from another element — for example, from
- How do I hide products in Mergado that have a value other than new in g:condition?
- First, create a query on the Products page to find such products. Use the condition does not equal or does not contain, for example:
g:condition != "new". Then on the Rules page, create a new rule, select Hide product as the type, and use the query you created. The rule will hide all products that do not have the value new ing:condition.
- First, create a query on the Products page to find such products. Use the condition does not equal or does not contain, for example:
What Mergado Audit checks for the g:condition element#
- Whether the
g:conditionelement contains invalid values. It may only contain one of the following:- new
- refurbished
- used
If you need help, contact our technical support.