Jump to content

Search the Community

Showing results for tags 'prestashit'.

  • 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 2 results

  1. No consigo conectar con prestashop desde sql server y recoger productos, he puesto en la url el token con la tienda y el chrome funciona correctamente pero desde sql server las respuestas son: {"errors":"[API] Invalid API key or access token (unrecognized login or wrong password)"} o 401 Unauthorized He probado con también con user y password pero el resultado es el mismo, adjunto código, alguien puede indicarme que falta. declare @username varchar (200) = 'user' declare @password varchar (200) = 'password' declare @obj int declare @sUrl varchar (200) declare @response varchar (8000) declare @hr int declare @status INT declare @statusText VARCHAR (200) declare @source varbinary (max), @encoded_base64 varchar (max), @auth varchar (max) SET @source = CONVERT (varbinary (max), @username + ':' + @password) --- Convertir de varbinary a cadena base64 SET @encoded_base64 = CAST( CAST( @source as XML ).value('.','varbinary(max)') AS varchar(max) ) set @sUrl = 'http://xxxxxxxxxxxxxxxxxxxxxxxxxtokenxxxxxxxxxxxxxxxxxxxxxx@tiendaonline.cat/api/products' SET @auth = 'Básico ' + @encoded_base64 exec @hr = sp_OACreate 'MSXML2.ServerXMLhttp', @obj out exec @hr = sp_OAMethod @obj, 'setRequestHeader', null, 'Authorization', @auth exec sp_OAMethod @obj, 'setRequestHeader', null, 'Accept', 'application/json' exec @hr = sp_OAMethod @obj, 'Open', null, 'GET', @sUrl, false exec sp_OAMethod @obj, 'send', null, @auth exec sp_OAgetproperty @obj, 'responseText', @response out exec sp_OAgetproperty @obj, 'status', @status out exec sp_OAgetproperty @obj, 'StatusText', @statusText out exec sp_OADestroy @obj select @status [StatusCode], @statusText [StatusText], @response [Respuesta]
  2. Hi ! I want to create an order on my shops with the API, so at first I create a card with the following call : POST mypresta.com/api/carts?ws_key=my_key body: <?xml version="1.0" encoding="UTF-8"?> <prestashop xmlns:xlink="http://www.w3.org/1999/xlink"> <cart> <id_currency><![CDATA[1]]></id_currency> <id_lang><![CDATA[1]]></id_lang> <associations> <cart_rows nodeType="cart_row" virtualEntity="true"> <order_row> <id_product><![CDATA[1]]></id_product> <id_product_attribute><![CDATA[1]]></id_product_attribute> <quantity><![CDATA[5]]></quantity> <id_address_delivery><![CDATA[1]]></id_address_delivery> </order_row> <order_row> <id_product><![CDATA[2]]></id_product> <id_product_attribute><![CDATA[2]]></id_product_attribute> <quantity><![CDATA[4]]></quantity> <id_address_delivery><![CDATA[1]]></id_address_delivery> </order_row> </cart_rows> </associations> </cart> </prestashop> and then, with the generated card, i want to create my order with a second call : POST mypresta.com/api/orders?ws_key=my_key body: <?xml version="1.0" encoding="UTF-8"?> <prestashop> <order> <id_address_delivery><![CDATA[1]]></id_address_delivery> <id_address_invoice><![CDATA[1]]></id_address_invoice> <id_cart><![CDATA[9]]></id_cart> <id_currency><![CDATA[1]]></id_currency> <id_lang><![CDATA[1]]></id_lang> <id_customer><![CDATA[1]]></id_customer> <id_carrier><![CDATA[2]]></id_carrier> <current_state><![CDATA[2]]></current_state> <module><![CDATA[cheque]]></module> <payment><![CDATA[Payment by check]]></payment> <total_paid><![CDATA[45]]></total_paid> <total_paid_real><![CDATA[45]]></total_paid_real> <total_products><![CDATA[2]]></total_products> <total_products_wt><![CDATA[2]]></total_products_wt> <conversion_rate><![CDATA[1]]></conversion_rate> <associations> <order_rows nodeType="order_row" virtualEntity="true"> <order_row> <product_id><![CDATA[1]]></product_id> <product_attribute_id><![CDATA[1]]></product_attribute_id> <product_quantity><![CDATA[5]]></product_quantity> </order_row> <order_row> <product_id><![CDATA[2]]></product_id> <product_attribute_id><![CDATA[2]]></product_attribute_id> <product_quantity><![CDATA[4]]></product_quantity> </order_row> </order_rows> </associations> </order> </prestashop> on this second call i got a response with the http code 200 and the following raw text: FATAL ERROR How can i create order on my shops from the webservices ? PS: presta version 1.5 or 1.6 or 1.7 (got the same error on all those versions)
×
×
  • Create New...