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 8196671
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T05:33:36+00:00 2026-06-07T05:33:36+00:00

While trying to create a cart via the Magento API, I am having trouble

  • 0

While trying to create a cart via the Magento API, I am having trouble adding an existing user as the owner of the cart. I am working with the documentation they provide here:

http://www.magentocommerce.com/wiki/doc/webservices-api/api/cart#cart_customer.set

I called “customer.info” using my specific customerId, then just passed the results to that cart_customer.set method, praying that was what it was asking for. It returned (from PHP)

Fatal error: Uncaught SoapFault exception: [1045] Customer’s mode is unknown in …

I looked at the example at the bottom of the above referenced page and they only had an example for a new guest user, ‘mode’ set to ‘guest’. I was wondering if anyone knew what the other options were for that ‘mode’ key? Documentation on that data structure in general would be a great help.

Thanks.

  • 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-06-07T05:33:39+00:00Added an answer on June 7, 2026 at 5:33 am

    Via my own comment:

    Ah ha! Found buried in their forum:

    $customer = array( ‘entity_id’ => 6, ‘mode’ => ‘customer’ ); via http://www.magentocommerce.com/boards/viewthread/232778 I guess that is all you need to pass. This isn’t really a great explanation but it does solve the original problem.

    Just gonna flag this one as done.

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

Sidebar

Related Questions

I am having a trouble while trying to create an entity with a custom
While trying to run / create existing sample applications(eg: API Demos) provided by android
I am having some problems while trying to create integration tests with Selenium and
I'm having problem (basically, I'm confused.) while trying to create a worker thread for
While trying to create a simple game where a square is manipulated via the
I am getting strange errors while trying to create a simple database using isql
I find my self lost while trying to create an actually pretty easy SQL
I have ran into an interesting issue while trying to create a more usable
How can I replace storyboard with XIB? While trying to create dynamically views and
I'm trying to create/update a location while saving a checkin in my Rails project,

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.