Üdv,
A napokban beléptem az arukereso partner rendszerébe, és gondoltam részt veszek a „Megbízható Bolt” programjukban , amit integrálni kéne a drupal rendszerébe,  adott is a rendszer  egy leírásnak nevezett szörnyedvény,  de számomra elég érthetetlen, így gondoltam feldobom ide a témát, hátha valakinek van már tapasztalata az ügyben. 
<?php
/*******************************************************************************
* Árukereső.hu trusted shop program
* Example code integration to the webshop
*
*
* Please note, that the example detailed below can not be simply copy-pasted
* into your webshop’s code, it has to be customized adequately.
*
* Setup steps:
* 1. Copy TrustedShop.php file to a place accessible by the webshop engine.
* 2. Copy this example code to the page of the webshop where the e-mail address
* of the customer and the names of the purchased products are retrievable
* from the webshop engine. Generally this is the webshop’s confirmation
* page of the purchase.
* 3. Customize the pasted example code according to the following:
* - Modify path of TrustedShop.php in require_once() in such a way that
* the webshop engine can use it.
* - Check that the proper WebAPI key is set, if not, modify it. You can find
* the WebAPI key on the partner portal.
* - Set the customer’s e-mail address.
* - Add the names of the purchased products.
* - Implement an error handling if you want (optional).
*
******************************************************************************/
require_once 'TrustedShop.php';
try {
// Provide your own WebAPI key.
// You can find your WebAPI key on your partner portal.
$Client = new TrustedShop('WEBAPIKOD');
// Provide the e-mail address of your customer.
// You can retrieve the e-amil address from the webshop engine.
$Client->SetEmail('somebody@example.com');
// Provide the name of the purchased products.
// You can get the name of the products from the webshop engine.
// The AddProduct method must be called for each of the purchased products.
//
// It is optional to provide the name of the products, so if this data is not
// available, you can leave out the AddProduct calls.
$Client->AddProduct('Name of first purchased product');
$Client->AddProduct('Name of second purchased product');
// This method sends us the e-mail address and the name of the purchased
// products set above. After the data arrived to us, we store them
// with the time stamp and the WebAPI key.
// This lets us know that someone has purchased at your webshop, to whom
// we later have to send the questionnaire for evaluating your shop.
// The "Send()" operation doesn't send immediately. It generates a HTML output,
// puts into source of the page and the customer's browser will send the
// required informations us.
$Client->Send();
} catch (Exception $Ex) {
// Here you can implement error handling. The error message can be obtained
// in the manner shown below. Implementing error handling is optional.
$ErrorMessage = $Ex->getMessage();
}
?>
Melyik modulhoz, modulokhoz kapcsolódik a téma?: 
Drupal verzió: 
Fórum: 
 
        

Mélyebb integráció szükséges
Csak annyit tudok az Árukereső API-járól amennyi a témanyitóból kiderül, de egy ilyen integrációt tisztességesen megcsinálni elég sok idő.
Jó magyar szokás szerint az API-juk földi halandó számára nem elérhető.
http://www.arukereso.hu/static/megbizhato_bolt_szolgaltatas.html
(Miért nincs egy link a GitHub-ra, hogy letöltsem a kliensüket?)
Nos, ha a
$Client->Send();tényleg kiekhóz magából valami gyönyörűséget a meghívás pillanatában, akkor jobban jársz ha nem használod a példakódot és kitúrod a kódból, hogy a szerver milyen POST|GET kéréseket vár és azt egy saját megoldással implementálod.Köszönöm a hozzászólást, a
Köszönöm a hozzászólást, a napokban írtam mail-t a technikai részlegnek ez ügyben, hogy legalább egy épkézláb dokumentációt dobjanak már erről, hogy mit is szeretnének, mert nem lehet eligazodni ezen a „leíráson” egyelőre választ nem kaptam ezzel kapcsolatban. Gányolni meg nem akarok. Kerestem a neten is, hátha valaki letudja írni, hogy mit is szeretnének ők, de azokon a fórumokon is tanácstalan emberek állnak. Gyors merengés után fejben már kigondoltam, hogy a commerce-hez kéne egy kiegészítő modult készíteni ami a leadott rendelésekből elküldi az árukeresőnek a rendelt árút és a user email címét, amikor a rendelés leadásra került. A trustedshop.php-t csak minimálisan lehetséges módosítani, mert különben az ő rendszerük nem tudja feldolgozni a kapott infókat.
Az indító postban mellékeltem az example kódot, ide pedid berakom a trustedshop-ot, összesen ennyi az egész kód amit adnak ahhoz, hogy integrálja a földi halandó és semmi többet.
Sikerült?
Szia!
Sikerült közben közelebb jutni a megoldáshoz?
Webáruház készítés