cancel
Showing results for 
Search instead for 
Did you mean: 

SOAP: using own category numbers

SOAP: using own category numbers

HI there,

 

I'm currently developing a  PHP interface between our ERP software and a new magento shop. 

 

The problem I'm facing right now is that we have the categories with numeric IDs in our ERP database and I would like to use those IDs as category_id when I do a SOAP call (catalog_category.create).

 

Is there any way to do that ? And if yes, how ? I searched the internet all over but didn't find any solution by now.

 

It would be really important because all our articles are connected to those numbers and it would be a huge thing to connect those otherwise.

 

Thank you !

Oliver

3 REPLIES

Re: SOAP: using own category numbers

@MarkusHeucherDE 

Do you want to use category id in place of category name?

$client = new SoapClient('http://magentohost/api/v2_soap/?wsdl');

// If some stuff requires api authentification,
// then get a session token
$session = $client->login('apiUser', 'apiKey');
$result = $client->catalogCategoryCreate($session, 2, array(
    'name' => 'Category name 2',     // Do you want to use the category id here?
    'is_active' => 1,
    'position' => 1,

Please reply

---
Problem Solved Click Accept as Solution!:Magento Community India Forum

Re: SOAP: using own category numbers

Thanks for your reply.

 

Yes, I want to call it lets say "New Category" and give it category_id 4354 and another one "New Category 2" with category_id 5541

 

For example...

Re: SOAP: using own category numbers

Anyone who can help ? That would be really important for me, thanks !!