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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T12:20:42+00:00 2026-05-21T12:20:42+00:00

We are currently using the Magento API for importing a bunch of products into

  • 0

We are currently using the Magento API for importing a bunch of products into the store.
But we now run into a problem where some product attributes should be translated into a different language.
And I was wondering if it is possible to do this using the Magento API, because I can’t seem to find anything related to that problem.

We currently have 2 store views, 1 for the Dutch version of the site and one for the French version of the site.
Our current import code looks something like this:

$store_id = $soapClient->call($soapSession, 'catalog_product.currentStore', array('nl'));
echo("store_id: $store_id");
$new_product_data = array(
    'name' => 'NameInDutch',
    'short_description' => 'DescriptionInDutch',
    'price' => $price,
    'weight' => $weight,
    'websites' => array('base'),
    'status' => '1'
);
$new_product_id = $soapClient->call($soapSession, 'catalog_product.create', array('simple', 4, $sku, $new_product_data)); // 4 => 'Default' attribute set
$localized_product_data = array(
    'name' => 'NameInFrench',
    'short_description' => 'DescriptionInFrench'
);

$store_id = $soapClient->call($soapSession, 'catalog_product.currentStore', array('fr'));
echo("store_id: $store_id");
$soapClient->call($soapSession, 'catalog_product.update', array($sku, $localized_product_data ));

Now, the output of the echo statements differs, the first time it’s 1 and the second time it’s 2, so that doesn’t seem to be problem. But apparently it doesn’t matter for the API if we set that value.
The result is that on the ‘catalog_product.update’ call, the name ‘NameInFrench’ overwrites the default name ‘NameInDutch’.

So my question is if something like this is possible using the Magento API, and how one would accomplish this?

  • 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-21T12:20:43+00:00Added an answer on May 21, 2026 at 12:20 pm

    Ok, I found the answer, apparently I overlooked a certain line in the Magento API docs, because the solution was right there.
    So: you don’t need to set the currentStore each time, you just need to append the store id or code to the update array:

    $soapClient->call(
        $soapSession,
        'catalog_product.update',
        array($sku, $localized_product_data, 'fr')
    );
    

    This works perfectly.

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

Sidebar

Related Questions

I need your suggestions please, I'm currently using the Magento API for importing products
I'm new to magento. Currently i'm developing two ecommerce sites using multi-store option in
Currently I’m having some difficulties with using new Magento's soap v2 from c# interface.
Currently using Google Analytics as a supplement to our paid tracking software, but neither
I'm currently using a Camera Chooser on my app, but want my user to
I am using the Magento ver. 1.4.0.1 Community Edition. The problem I am running
I have a Magento site using JS (prototype) to display tabbed content on product
Im currently working on a custom product list in the Magento backend. Heres the
I'm using Magento 1.5 with 3 different stores (same products, though targetted at different
I am currently using Magento ver. 1.5.0.1. Can anyone tell me how do i

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.