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

  • Home
  • SEARCH
  • 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 6705717
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:26:10+00:00 2026-05-26T07:26:10+00:00

In Magento 1.5, accessing the catalogProductInfo API call from C# like this works with

  • 0

In Magento 1.5, accessing the catalogProductInfo API call from C# like this works with non-numeric SKUs:

catalogProductRequestAttributes fetchattrib = new catalogProductRequestAttributes();
fetchattrib.attributes = new string[] { "name", "description", "and_so_on"};
fetchattrib.additional_attributes = new string[] { "custom_attribs_go_here"};

string storeView = null;
string productIdentifierType = null;
catalogProductReturnEntity ret = m_magentoClient.catalogProductInfo(
    sessionId, sku, storeView, fetchattrib, productIdentifierType);

But with numeric SKUs I get ‘Product not exists’ errors.
Presumably this is because Magento cannot tell whether you are passing it a product_id or an SKU. Setting the productIdentifierType to ‘sku’ should fix that, in theory, according to all the documentation I can find:

...
string productIdentifierType = "sku";
...

But it doesn’t fix it.
In fact it seems to make it worse, Magento then stops finding non-numeric SKUS.
So presumably "sku" is not the right value to pass.

Anyone got any ideas?

  • 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-26T07:26:11+00:00Added an answer on May 26, 2026 at 7:26 am

    Short answer is that there’s a bug somewhere preventing the last param of product.update from being set properly (or maybe Varien haven’t yet implemented it), which also presents a problem for the method product.info.

    A quick workaround (if you don’t mind losing the option to update by ID) is just to set the $identifierType in the Product API update() method ):

    In app/code/core/Mage/Catalog/Model/Product/Api.php l.198

    public function update($productId, $productData, $store = null, $identifierType = 'sku')
    

    And finally load the product within the if ($idBySku) condition of the method getProduct() around l.427 of app/code/core/Mage/Catalog/Helper/Product.php

    $productId = $idBySku;
    $product->load($productId);
    

    It’s a bit of a fudge. I’ll have a look for a better workaround as an override; otherwise, maybe someone else can post a better solution.

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

Sidebar

Related Questions

My magento extension adds a new block (like the poll block for example) to
In Magento checkout/cart I would like to check if products from six specific attributesets
Can Magento API create products with new attribute? I mean some attributes of the
Magento 1.6 was out at the beginning of this week but upgrading from 1.5.1
Magento is returning Fatal error: Call to a member function setQuote() on a non-object
Will appreciate any ideas on this error in Magento 1.4.1.1. I wonder why this
HI Magento introduced a new concept of widget in magento 1.4 , my question
Installed Magento 1.6.2.0, and noticed that the links are like http://MYSEUPERSTORE.com/ index.php /customer/account/ but
Magento has this very nice MVC system where modules can register their 'frontname' and
In Magento, when I'm creating a product from Catalog -> Manage Products -> Add

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.