Skip to content

Instantly share code, notes, and snippets.

View claudio-dalicandro's full-sized avatar

Claudio D'Alicandro claudio-dalicandro

View GitHub Profile
@claudio-dalicandro
claudio-dalicandro / gist:ddeee5bd916a364ae3c5
Last active September 1, 2015 09:30 — forked from roberto-butti/gist:3509401
Snippet PHP , how to add product in cart and create order in Magento via SOAP API v1
<?php
error_reporting(E_ALL);
ini_set("display_errors", 1);
$config=array();
$config["hostname"] = "my-hostname-with-magento.com";
$config["login"] = "soapuser";
$config["password"] = "soappassword";
$config["customer_as_guest"] = TRUE;
$config["customer_id"] = 261; //only if you don't want as Guest