Jump to content

Search the Community

Showing results for tags 'put method'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Community Help and Support
    • PrestaShop Download
    • PrestaShop Marketplace
  • News and Announcements
    • PrestaShop news and releases
    • PrestaShop Beta
    • PrestaShop Blogs
    • PrestaShop Meetups
  • International community (English)
    • General topics
    • PrestaShop Merchants
    • PrestaShop Developers
    • Taxes, Translations & Laws
    • Community Modules and Themes
  • Forum francophone
    • Discussion générale
    • Aide et support communautaire
    • PrestaShop pour les marchands
    • PrestaShop pour les développeurs
    • Adaptation aux lois Québécoises
    • Modules et thèmes gratuits
    • Modules et thèmes payants
  • Foro en Español
    • Discusión general
    • Soporte de la comunidad y ayuda
    • Comerciantes PrestaShop
    • Desarrolladores PrestaShop
    • Módulos y plantillas gratuitas
  • Forum italiano
    • Forum generale
    • Aiuto e supporto della Community
    • Commercianti PrestaShop
    • Sviluppatori PrestaShop
    • Aspetti legali sull'eCommerce
    • Moduli e template gratuiti
  • Deutsches Forum
    • Generelle Fragen
    • Support und Hilfe aus der Community
    • e-Commerce/Versand-Handel mit Prestashop
    • Prestashop-Entwickler
    • Anpassung an deutsches Recht
    • Kostenlose Module und Templates
    • Generelle Fragen Copy
  • Nederlandstalig forum
    • Algemeen
    • Hulp en ondersteuning, van en voor de community
    • PrestaShop-winkeliers
    • PrestaShop-ontwikkelaars
    • Het aanpassen van PrestaShop
    • Gratis modules en templates
  • Fórum em Português
    • Fórum Geral
    • Ajuda e Suporte da Comunidade
    • Lojistas que utilizam o PrestaShop
    • Desenvolvedores PrestaShop
    • Legislação específica
    • Módulos e temas gratuitos
  • Polskie forum
    • Forum ogólne
    • Wsparcie i pomoc użytkowników
    • Oferty twórców PrestaShop
    • Deweloperzy PrestaShop
    • Darmowe Moduły i Szablony
  • Dansk forum
    • Generelt forum
    • Hjælp og support fra fællesskabet
    • PrestaShop for købmænd
    • PrestaShop for udviklere
    • Love og regler
    • Gratis moduler og temaer
  • České fórum
    • Instalasi, Konfigurasi dan upgrade
    • Obecná diskuze
    • Bezplatné moduly a šablony
    • PrestaShop vývojáři
    • PrestaShop obchodníci
  • Bahasa Indonesia
    • Diskusi Umum
    • Podpora a pomoc komunity
    • Laporan Bug
    • Jasa, Promosi & Lowongan Kerja
  • Svenskt forum
    • Allmän diskussion
    • Installation, konfigurering och uppdatering
  • Forumul românesc
    • Discuţii generale
    • Instalare, configurare şi upgrade
  • Pусский язык
    • Обсуждение скрипта
    • Установка, Настройка, Обновление
    • Прием багов
  • Slovenské fórum
    • Všeobecná diskusia
    • Podpora a pomoc komunity
    • PrestaShop obchodníci
    • PrestaShop vývojári
    • Bezplatné moduly a šablóny
  • Türkçe Topluluğu
    • Genel Konular
    • Topluluk desteği ve yardım
    • PrestaShop Tüccarları
    • Prestashop Geliştiricileri
    • Ücretsiz Modül ve Temalar
  • Diễn đàn tiếng Việt
    • Thảo luận chung
    • Hỗ trợ từ cộng đồng
    • Dành cho chủ doanh nghiệp / cửa hàng
    • Dành cho lập trình viên
  • PrestaShop Communities
    • اللغه العربيه [Arabic]
    • Ελληνικά [Greek]
    • עִבְרִית [Hebrew]
    • 中文
    • Magyar [Hungarian]
    • 日本語 [Japanese]
    • Lietuviškai [Lithuanian]
    • انجمن فارسی [Persian]
    • ไทย [Thai]
    • Malaysia [Malaysian]
    • Eesti [Estonian]
    • Slovenščina [Slovenian]
    • Српски [Serbian]
  • IP. Board Forum
    • IP. Board Forum Questions and Issues
  • Archive
    • Zapłać Moduły i Szablony [ARCHIVE]
    • Moduly, upravy a dizajn [ARCHIVE]
    • Phát triển và các mô-đun [ARCHIVE]
    • Yazılım, Modül ve Tema [ARCHIVE]
    • Модули, Шаблоны [ARCHIVE]
    • Module şi teme [ARCHIVE]
    • Pengembangan dan Modul [ARCHIVE]
    • Moduler och teman [ARCHIVE]
    • Ecommerce x PrestaShop [ARCHIVE BOARD]
    • Vývoj a moduly [ARCHIVE]
    • Kostenpflichtige Module, Templates [ARCHIVE]
    • Módulos y temas pagos [ARCHIVE]
    • Módulos e temas pagos [ARCHIVE]
    • Servizi commerciali [ARCHIVE]
    • Forum - Feedback Contributor
    • PrestaShop Cloud

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 5 results

  1. I activated the webservice to synchronize the price of a product with the program that manages the warehouse via API. With the Postman program I make a test by sending a put with this text: response 200 OK On prestashop the price is modified but all the values present in the product are canceled and consequently the product becomes inactive.
  2. Hi, I found out there is a method to do stock update on multiple product with only one request. Maybe some of you already now the way but I didnt found it when I was searsching for. Solution : 1) Create a web request to "http://your.shop.url/api/stock_availables/1&display=[id,quantity]&io_format=JSON" with your optional credentials. 2) Use method="PUT" and ContentType="application/xml" 3) Add the following XML content : "<prestashop>\n" + " <stock_available>\n" + " <id>" + id_prod1 + "</id>\n" + " <id_product>" + id_prod1 + "</id_product>\n" + " <id_product_attribute>0</id_product_attribute>\n" + " <id_shop>1</id_shop>\n" + " <id_shop_group>0</id_shop_group>\n" + " <quantity>" + quantite1 + "</quantity>\n" + " <depends_on_stock>0</depends_on_stock>\n" + " <out_of_stock>" + (quantite1 == 0 ? 2 : 0) + "</out_of_stock>\n" + " <location></location>\n" + " </stock_available>\n" + " <stock_available>\n" + " <id>" + id_prod2 + "</id>\n" + " <id_product>" + id_prod2 + "</id_product>\n" + " <id_product_attribute>0</id_product_attribute>\n" + " <id_shop>1</id_shop>\n" + " <id_shop_group>0</id_shop_group>\n" + " <quantity>" + quantite2 + "</quantity>\n" + " <depends_on_stock>0</depends_on_stock>\n" + " <out_of_stock>" + (quantite2 == 0 ? 2 : 0) + "</out_of_stock>\n" + " <location></location>\n" + " </stock_available>\n" + "</prestashop>"; Or create it with a loop : private static string RequestXML(List<MyJson.Produit> list) { var xml = "<prestashop>\n"; foreach (var prod in list) { xml += " <stock_available>\n" + " <id>" + prod.web_id + "</id>\n" + " <id_product>" + prod.web_id + "</id_product>\n" + " <id_product_attribute>0</id_product_attribute>\n" + " <id_shop>1</id_shop>\n" + " <id_shop_group>0</id_shop_group>\n" + " <quantity>" + prod.quantite_commande + "</quantity>\n" + " <depends_on_stock>0</depends_on_stock>\n" + " <out_of_stock>" + (prod.quantite_commande == 0 ? 2 : 0) + "</out_of_stock>\n" + " <location></location>\n" + " </stock_available>\n"; } return xml+"</prestashop>"; } 4) Send the request and wait for response. 5) Split the string response and check if every product's stock as been updated. Performance : Using one request per product's stock 5 stock updated per second Using one request for all the product's stock : From <1second to up to 10 seconds depending on the numbrer of stocks to update With a good server and good connection. Before that, I was sending 250+ requests in 90 seconds to sync web stock with real stock in the shop. I really hope this will help someone.
  3. hello please i find this bug while adding a product to an existing cart "The requested method is not implemented by the server". how can i resolve it ?? thanks
  4. Hello please i find this bug while adding a product to an existing cart "The requested method is not implemented by the server". how can i resolve it ?? thanks
  5. Bonjour Svp j'ai rencontré ce bug "The requested method is not implemented by the server." lors de l'update de la carte pour ajouter un nouveau produit comment je peux résoudre ce problème ?
×
×
  • Create New...