Answers.Body: <p>By default, Commerce only provides 3 custom element types to Craft... products, orders and variants.</p>
  
  <p>My guess is you're looking for products, in which case the syntax you're looking for is:</p>
  
  <pre><code>$productsCriteria = craft()-&gt;elements-&gt;getCriteria('Commerce_Product');
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-01-31T05:11:31.597Z
Answers.LastActivityDate: 2017-01-31T05:11:31.597Z
Answers.UserDisplayName: Brad Bell
Body: <p>How should I retrieve a purchasable element criteria in Craft Commerce ?</p>
  
  <p>To get entries, I just do </p>
  
  <pre><code>craft()-&gt;elements-&gt;getCriteria(ElementType::Entry);
  </code></pre>
  
  <p>I have tried the following without any success to get purchasables</p>
  
  <pre><code>craft()-&gt;elements-&gt;getCriteria(ElementType::Purchasable);
  craft()-&gt;elements-&gt;getCriteria(ElementType::Purchasables);
  craft()-&gt;elements-&gt;getCriteria(ElementType::Product);
  </code></pre>
  
Tags: <plugin-development><plugin-craftcommerce>
Title: Fetch Craft Commerce purchasable element type
ThreadText: # Fetch Craft Commerce purchasable element type
  
  (Asked by: username_0 on 2017-01-30)
  
  How should I retrieve a purchasable element criteria in Craft Commerce ?
  
  To get entries, I just do
  
  ```
  craft()->elements->getCriteria(ElementType::Entry);
  
  ```
  
  I have tried the following without any success to get purchasables
  
  ```
  craft()->elements->getCriteria(ElementType::Purchasable);
  craft()->elements->getCriteria(ElementType::Purchasables);
  craft()->elements->getCriteria(ElementType::Product);
  
  ```
  
  **Tags:** plugin-development, plugin-craftcommerce
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-01-31. Score: 3 | Accepted answer
  
  By default, Commerce only provides 3 custom element types to Craft... products, orders and variants.
  
  My guess is you're looking for products, in which case the syntax you're looking for is:
  
  ```
  $productsCriteria = craft()->elements->getCriteria('Commerce_Product');
  
  ```
  
  
  ---
  
  