Prestashop export orders to API, dropshipping.
$15-25 USD / hora
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
Nº del proyecto: #4251498