Prestashop export orders to API, dropshipping.

In Progress Posted Feb 16, 2013 Paid on delivery
In Progress

Hello

I need to embed php script into PrestaShop.

After ordering goods by the customer, automatically sends order information and address of the customer.

Example:

email = $ email;

    }

    public function phone ($ phone) {

        $ This-> phone = $ phone;

    }

    public function dodaci_adresa ($ dodaci_adresa) {

        $ This-> dodaci_adresa = $ dodaci_adresa;

    }

    public function fakturacni_adresa ($ fakturacni_adresa) {

        $ This-> fakturacni_adresa = $ fakturacni_adresa;

    }

    public function Note ($ notes) {

        $ This-> note = $ note;

    }

    public function id ($ id) {

        $ This-> id = $ id;

    }

    public function Delivery ($ dodani_id) {

        $ This-> Delivery = $ dodani_id;

    }

    public static function encoding ($ encoding) {

        self :: $ encoding = $ encoding;

    }

    

    public function addZbozi ($ articles) {

        $ This-> Baby [] = $ Baby;

    }

    

    public function send () {

        $ S = "code =". Urlencode (self :: $ code);

        $ S. = "& Version =". Urlencode ("0.6.3");

        $ S. = "& Partner = '. Intval (self :: $ partner);

        $ S. = "& Campaign =". Intval (self :: $ campaign);

        $ S. = "& Confirm =". Intval (self :: $ confirm);

        $ S. = "& Partner = '. Intval (self :: $ partner);

        $ S. = "& Source =". Urlencode (self :: $ urlZdroj);

        $ S. = "& Zdroj2 =". Urlencode ($ _SERVER ['HTTP_HOST']);

        $ S. = "& Xml =". Urlencode ($ this-> parse ());

        

        $ CURL = curl_init ();

       curl_setopt ($ curl, CURLOPT_URL, self :: $ urlCil. "/ Affile-orders");

       curl_setopt ($ curl, CURLOPT_RETURNTRANSFER, 1);

       curl_setopt ($ curl, CURLOPT_TIMEOUT, 10);

      

        curl_setopt ($ curl, CURLOPT_POST, 1);

       curl_setopt ($ curl, CURLOPT_POSTFIELDS, $ s);

       

       $ PageContent = trim (curl_exec ($ cURL));

       curl_close ($ cURL);

    return $ pageContent;

    }

............. more in Annex

PHP

Project ID: #4251498

About the project

2 proposals Remote project Active Feb 17, 2013

2 freelancers are bidding on average $30/hour for this job

toinnisfree

quick pro help. ftp and milestone required.

$35 USD / hour
(593 Reviews)
8.0
SergeyH

extensive Prestashop experience, I sent my questions in PM

$25 USD / hour
(29 Reviews)
4.7