Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6689887
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:34:18+00:00 2026-05-26T05:34:18+00:00

We have a SOAP connection to magento that is working great – we’re able

  • 0

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:

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:

http://www.mysite.com/magento/checkout/cart/add?product=7&qty=1&options%5BOPTION ID]=robots

Assuming I have my custom option ID correct, this will add 1 product with the option “robots.” Which is nice.

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.

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?

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T05:34:18+00:00Added an answer on May 26, 2026 at 5:34 am

    Do you need to get all options ids for specific products or just some particular? For the latter you can use this code:

    $productEntity = Mage_Catalog_Model_Product::ENTITY;
    $colorAttribute = Mage::getModel('eav/config')->getAttribute($productEntity, 'color');
    $colorAttribute->getId();
    

    For the first option code in this question might be useful How to get all super attribute options for a configurable item in Magento

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a SOAP client in Ruby that I'm trying to get working with
We have SOAP web services in production that are relying on SOAP Headers (containing
I have a SOAP request that is known to work using a tool like,
I have a SOAP result set that the nuSoap extension has turned into a
I'm working on a project where we have several SOAP Web Services developed on
I have an incoming soap message wich form is TStream (Delphi7), server that send
We have a need to access a DB that only allows one connection at
I am building a custom button and I have this so far: {!REQUIRESCRIPT(/soap/ajax/8.0/connection.js)} var
I have an application that is using the HTTPUrlConnection to POST soap envelopes to
Background : I have built a tool that imports sales orders from Magento to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.