title: Pulling Custom Option ID from Magento
body: <p>We have a SOAP connection to magento that is working great - we're able to pull product info, skus, descriptions, etc. using the magento API. We've been able to successfully add products to the cart programmatically with custom options, and that works great. The problem is this:</p>
  
  <p>When you create a custom option for a product, it is assigned a unique ID that has to be called in order to pass that option value to the cart. For example:</p>
  
  <p>www.mysite.com/magento/checkout/cart/add?product=7&amp;qty=1&amp;options[OPTION ID]=robots</p>
  
  <p>Assuming I have my custom option ID correct, this will add 1 product with the option "robots." Which is nice. </p>
  
  <p>However, we have hundreds of products, and while they all use similar custom options, each option is given a unique ID. That means I need to be able to call the magento API and get custom options details (specifically the option ID) so that we can add them to the cart properly. I have been back and forth with Varien Support (Magento), but they are less than helpful, as usual. Now, I know I can find these options by using firebug in Firefox or Chrome, which I've done to test the "add to cart" script. However, that's not a proper solution. I need to be able to grab this data from magento based on product id.  </p>
  
  <p>Can this really be that hard? Shouldn't this be tied to the data for the product somehow? I've done a var_dump on the catalog_product.info and i see where it asks if there are options but doesn't provide any details on them. Thoughts?</p>
  
  <p>Thanks in advance.  </p>