title: Magento - create a shoping cart price rule Cart Item Attribute?
body: <p>I am on Magento 1.9.1.1 and currently I am trying to create a shopping cart price rule based off a custom attribute for a product that is in the cart. I use the following code in my observer (sales_quote_save_after) to set the attribute, it has no effect on the shopping cart price rule. It appears that when I am setting the cart product attribute, the price rule is actually checking the product attribute instead of the product attribute in the cart.</p>
  
  <pre><code>$quote = $observer-&gt;getEvent()-&gt;getQuote();
  $cartItems = $quote-&gt;getAllVisibleItems();
  $productSkus = Mage::getSingleton('core/session')-&gt;getProductSkus();
  foreach ($cartItems as $item) {
      $skuname = $item-&gt;getSku();                             
      if ($skuname == $productSkus){
          $item-&gt;getProduct()-&gt;setData('stone_remnant_flag',$remnant);
          $item-&gt;save();
          break;
      }
  }
  </code></pre>
  
  <p>So I am wondering how I would go about creating a shopping cart price rule condition based off a Cart Item Attribute. Currently Magento only shows: </p>
  
  <ul>
  <li>Price in cart </li>
  <li>Quantity in cart</li>
  <li>Row total in cart</li>
  </ul>