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:condition element.
    • 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:condition for 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:condition values based on the values of another element you already have for products.
  • 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 CONDITION to g:condition.
    • You can also use the Rewrite rule to save the value of another element (a variable) into g:condition, for example: %CONDITION%.
  • 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 in g:condition.

What Mergado Audit checks for the g:condition element#

  • Whether the g:condition element contains invalid values. It may only contain one of the following:
    • new
    • refurbished
    • used

If you need help, contact our technical support.

Was this article helpful?