Jump to content

Import of data from SOAP into product page


Recommended Posts

Hello,

 

My supplier offers stock, price and other data in SOAP format (xml, csv). With authentication.

 

I want to integrate just the number of products available in stock in the product page.

 

I have an example from them, but I'm not really into PHP and need an example from prestashop integration. I thing this would be a really good implementation as I don't carry that many product combinations in my own stock and I am dependant of the supplier's stock.

 

The example code is pasted below, do you have any modules in mind or hacks I could use?
My products have many combinations (size and color) but unique product codes, the same as the supplier.

<?php 
$client = new SoapClient(null, array( 
    'location' => 'http://www.adler.info/b2bsoap.php', 
    'uri' => 'http://test-uri/', 
    'trace' => true, 
    'stream_context' => true, 
    'exceptions'=> false, 
    'login' => 'login', 
    'password' => 'password' 
)); 
$result= $client->profile(array('id_lang'=>'RO'));
?>

I also have a details implementation PDF file that I attached to this post.
I hope someone does know this advanced stuff.

B2B_SOAP_Popis_funkcionality_EN.pdf

Link to comment
Share on other sites

  • 1 year later...
  • 2 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...