Warning: You are browsing the documentation for PrestaShop 1.7, which is outdated.

You might want to read an updated version of this page for the current version, PrestaShop 8. Read the updated version of this page

Learn how to upgrade to the latest version.

Resources for Product options

Product_option

Name Format Required Max size Description
is_color_group isBool
group_type ✔️
position isInt
name isGenericName ✔️ 128
public_name isGenericName ✔️ 64
associations

Blank schema

<prestashop xmlns:xlink="http://www.w3.org/1999/xlink">
  <product_option>
    <id><![CDATA[]]></id>
    <is_color_group><![CDATA[]]></is_color_group>
    <group_type><![CDATA[]]></group_type>
    <position><![CDATA[]]></position>
    <name>
      <language id="1"><![CDATA[]]></language>
      <language id="2"><![CDATA[]]></language>
    </name>
    <public_name>
      <language id="1"><![CDATA[]]></language>
      <language id="2"><![CDATA[]]></language>
    </public_name>
    <associations>
      <product_option_values>
        <product_option_value>
          <id><![CDATA[]]></id>
        </product_option_value>
      </product_option_values>
    </associations>
  </product_option>
</prestashop>