<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Difference between CProduct and CPDefinition</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121276297" />
  <subtitle>Difference between CProduct and CPDefinition</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121276297</id>
  <updated>2026-04-07T01:40:03Z</updated>
  <dc:date>2026-04-07T01:40:03Z</dc:date>
  <entry>
    <title>Difference between CProduct and CPDefinition</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121276296" />
    <author>
      <name>Valentin Eggermont</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121276296</id>
    <updated>2021-12-01T15:53:37Z</updated>
    <published>2021-11-30T10:34:08Z</published>
    <summary type="html">&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I'm currently doing some tests with Liferay Commerce and product
  definition and its headless API. I noticed that there's two model used
  for a Liferay product : CProduct and CPDefinition. I was wondering
  what's the difference between those two models. I know that
  CPDefinition contains or refers the fiels you define for the product,
  like the name, the description, ... But for the CProduct model,
  everything that has reference to a CProduct has a reference to
  CPDefinition or a reference to a model linked to CPDefinition (like
  Commerce Price entry model which has a reference to CProduct but also
  CPInstance which is linked to CPDefinition model). What's the purpose
  of CProduct, then ?&lt;/p&gt;</summary>
    <dc:creator>Valentin Eggermont</dc:creator>
    <dc:date>2021-11-30T10:34:08Z</dc:date>
  </entry>
</feed>
