Jump to content

M.Gigliotti

Members
  • Posts

    23
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

M.Gigliotti's Achievements

Newbie

Newbie (1/14)

1

Reputation

  1. Devo estrarre gli iscritti al sito ... ma da quello che vedo non c'è un entità legata ai WS o sbaglio ?
  2. Hi, ok tnx so i'll try to create it myself 'cause i need to enable one web service to my app...
  3. Hi, you can share the code in order to test it in different e-commerce ? i've one 1.6.0.8 installation free...
  4. Hi, could you share the complete code ? i can't understand if you still using the web service call to value image information or you still trying only to upload it in dedicated folder.
  5. Buongiorno, sto provando ad utilizzare i web service Prestashop ma non trovo l'entità iscritti. Qualcuno sa come abilitarla in modo da usare i web service per estrarli da PS ? ciao m.
  6. Ciao, prova a verificare i permessi ... di solito il problema è quello...
  7. Hi All, i'm checking web service entity on prestashop but seems that isn't configured "newsletter subscriber" entity. Someone have checked it ? i would like to retreive my subscriber by Prestashop web service tnx m.
  8. MTA --> multi threaded applications so you need to manage several call at the same time... i don't know if you can manage it by obj-c
  9. Hi, you can share the code that still using ? i think that to speed up it you need to use MTA
  10. ciao, a volte capita che vengano creati degli ordini per i quali non è visibile il dettaglio dell'ordine. La cosa strana è che, cercando il carrello associato questo contiene i dati relativi ai prodotti ... a voi è mai capitato ? Preciso che non è un problema di metodo di pagamento (es. Paypal) in quanto sembra essere assolutamente randomico e non specifico su un metodo di pagamento, corriere etc.
  11. Prova a girarlo anche a me ... tempo fa mi è successa una cosa simile con paypal ..
  12. Errors: " Fatal error: Call to a member function get() on a non-object in /XXXXX/WS-Update-Quantity.php on line 35"
  13. Hi all, i've tried to use the code above to set quantity of my product but without success.. What i've wrongly managed ? <?php define('DEBUG', true); define('_PS_DEBUG_SQL_', true); define('PS_SHOP_PATH', 'http://ZZZZZZZ.ZZZ'); // Root path of your PrestaShop store define('PS_WS_AUTH_KEY', 'ZZZZZZZZZZZZZZZZZZZZZZZZ'); // Auth key (Get it in your Back Office) require_once('./PSWebServiceLibrary.php'); getIdStockAvailableAndSet(1); function set_product_quantity($ProductId, $StokId, $AttributeId){ global $webService; $xml = $webService -> get(array('url' => PS_SHOP_PATH . '/api/stock_availables?schema=blank')); $resources = $xml -> children() -> children(); $resources->id = $StokId; $resources->id_product = $ProductId; $resources->quantity = 10000000; $resources->id_shop = 1; $resources->out_of_stock=1; $resources->depends_on_stock = 0; $resources->id_product_attribute=$AttributeId; try { $opt = array('resource' => 'stock_availables'); $opt['putXml'] = $xml->asXML(); $opt['id'] = $StokId ; $xml = $webService->edit($opt); }catch (PrestaShopWebserviceException $ex) { echo "<b>Error al setear la cantidad ->Error : </b>".$ex->getMessage().'<br>'; } } function getIdStockAvailableAndSet($ProductId){ global $webService; $opt['resource'] = 'products'; $opt['id'] = $ProductId; $xml = $webService->get($opt); foreach ($xml->product->associations->stock_availables->stock_available as $item) { //echo "ID: ".$item->id."<br>"; //echo "Id Attribute: ".$item->id_product_attribute."<br>"; set_product_quantity($ProductId, $item->id, $item->id_product_attribute); } } ?>
  14. Ciao, volevo sapere se qualcuno del forum è riuscito a creare uno script php per creare un nuovo prodotto su Prestashop tramite web service. Ho trovato diversi articoli on line ma nessuno che funzioni correttamente. Prestashop v. 1.6.04 sample -> http://stackoverflow.com/questions/25526949/adding-products-to-prestashop-1-6-0-9-with-webservice
×
×
  • Create New...