title: Magento: Do discounts have "SKUs"?
body: <p>I'm trying to get the 'Rule Name' (which I believe is the unique identifier, yes?) from a discount that's been applied to an order.</p>
  
  <p>Here's the lead-up code:</p>
  
  <pre><code>$order_id = Mage::getSingleton('checkout/session')-&gt;getLastOrderId();
  
  $order = Mage::getModel('sales/order')
  -&gt;load($order_id);
  
  $order_items = $order-&gt;getAllItems();
  
  foreach ($order_items as $itemId =&gt; $item) {
  </code></pre>
  
  <p>I'm using <code>$item-&gt;getSku();</code> to handle the product SKUs ... will this also fetch the discount's unique identifier?</p>
  
  <p>Thank you very much!</p>
  
  <hr>
  
  <p><strong>Edit</strong> AlanStorm makes a good point so I'll clarify:  </p>
  
  <p>The discounts I'm dealing with are "shopping cart rules" and, for this question, they are product-specific.</p>
  
  <p>So that prompts a second question: how would I get the unique identifier of a "shopping cart rule" that was applied to the overall order (e.g. 10% off all items)?</p>