Jump to content

Search the Community

Showing results for tags 'c#'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Community Help and Support
    • PrestaShop Download
    • PrestaShop Addons
  • 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 10 results

  1. Hello, I'm a .net Developer , as well as a Prestashop owner, I have already made a program to do everything i need in C# and Automate all my work, The only part which is not automated yet is that i have to manually check site for Order Details and Status and give it to my C# Application. So i have 2 approach in my mind , but I want advice on which is better or is there any better way other than this two ? So my first idea is, I can set some timer or something on my app and use prestashop's webservice and check for the new Orders, when app hit a new Successful Purchase, it would then take the info and proceed to do the rest of the works. and my 2nd idea , well it came from the Telegram Bot I made last months for my site . just like how it sent new updates through a Json string from a link, I could do the same and make a secret url that show empty results {"ok":true,"result":[]} until there is a new successful purchase which would show up with the details in the result section , and my App would then proceed to do the works and send back a POST to my link to remove the result back to empty [ ]. So which one of these methods is best or is there any better idea ? also is there a way to make a call to the application only when we got a new Successful purchase ? btw, my knowledge of php is not advanced, my best ever creation yet in php, was a custom payment method modules for prestashop. but I'm good at C#. Thanks.
  2. Hi all, I'm working on a .NET application I need to update Prestashop via web service. Well I'm able to set product fields I need to manage. Now I need to set categories to each product. My trouble is I cannot understand in which way I can manage categories. Could you give me an example about it? In which way I can set categories to product via web service? thanks in advance to everybody! Dario
  3. Hi all, I need to upload product images via XML web service. I've tried with some examples I found in internet but I have errors. Could you give me a working example about loading product images via web service and XML file? I know I have to write a xml file with image converted in byte array.. but I don't know how to make it works. Thanks in advance to everybody!
  4. Hi, I'm try to connect to the Prestashop wb service using C#, I'm doing click on the folder reference of the project and then clik on add web reference then wizard ask me web service Url, in my case is "localhost/prestashop/api", and i have tried whit that "localhost/prestashop/api/customers", "localhost/prestashop/api/customers/1". But the buttom add references it's disable and i can't add web service reference. Please helpeme may be the Url it's wrong.
  5. Bonjour à tous, Je développe actuellement un logiciel faisant la liaison entre un site Prestashop et une solution de Gestion Commerciale. Je désire, via les webservice, intégrer un nouveau client sur le site. J'ai donc développé le code suivant: public void CreateCustomer() { try { RestClient client = new RestClient(); client.BaseUrl = this.mo.PrestaShopURL; client.Authenticator = new HttpBasicAuthenticator(this.mo.PrestaShopToken, ""); RestRequest request = new RestRequest(); request.Resource = "api/customers?schema=synopsis"; request.Method = Method.GET; RestResponse response = client.Execute(request) as RestResponse; XElement customerXMLFull = XElement.Parse(response.Content); XElement customerXML = customerXMLFull.Descendants().FirstOrDefault(); XElement customerXML2; customerXML2 = customerXML.Element("id_default_group"); customerXML2.Value = "<![CDATA[" + this.mc.IDDefaultGroup.ToString() + "]]>"; customerXML2 = customerXML.Element("id_lang"); customerXML2.Value = "<![CDATA[" + this.mc.IDLang.ToString() + "]]>"; customerXML2 = customerXML.Element("newsletter_date_add"); customerXML2.Value = "<![CDATA[" + this.mc.NewsletterDateAdd.ToString() + "]]>"; customerXML2 = customerXML.Element("ip_registration_newsletter"); customerXML2.Value = "<![CDATA[" + this.mc.IPRegistrationNewsletter + "]]>"; customerXML2 = customerXML.Element("last_passwd_gen"); customerXML2.Value = "<![CDATA[" + this.mc.LastPassWordGen.ToString() + "]]>"; customerXML2 = customerXML.Element("secure_key"); customerXML2.Value = "<![CDATA[" + this.mc.SecureKey + "]]>"; customerXML2 = customerXML.Element("deleted"); customerXML2.Value = "<![CDATA[" + this.mc.Deleted.ToString() + "]]>"; customerXML2 = customerXML.Element("passwd"); customerXML2.Value = "<![CDATA[" + this.mc.Password + "]]>"; customerXML2 = customerXML.Element("lastname"); customerXML2.Value = "<![CDATA[" + this.mc.Lastname + "]]>"; customerXML2 = customerXML.Element("firstname"); customerXML2.Value = "<![CDATA[" + this.mc.Firstname + "]]>"; customerXML2 = customerXML.Element("email"); customerXML2.Value = "<![CDATA[" + this.mc.Email + "]]>"; customerXML2 = customerXML.Element("id_gender"); customerXML2.Value = "<![CDATA[" + this.mc.IDGender.ToString() + "]]>"; customerXML2 = customerXML.Element("birthday"); customerXML2.Value = "<![CDATA[" + this.mc.Birthday.ToString() + "]]>"; customerXML2 = customerXML.Element("newsletter"); customerXML2.Value = "<![CDATA[" + this.mc.Newsletter.ToString() + "]]>"; customerXML2 = customerXML.Element("optin"); customerXML2.Value = "<![CDATA[" + this.mc.Optin.ToString() + "]]>"; customerXML2 = customerXML.Element("website"); customerXML2.Value = "<![CDATA[" + this.mc.Website + "]]>"; customerXML2 = customerXML.Element("company"); customerXML2.Value = "<![CDATA[" + this.mc.Company + "]]>"; customerXML2 = customerXML.Element("siret"); customerXML2.Value = "<![CDATA[" + this.mc.Siret + "]]>"; customerXML2 = customerXML.Element("ape"); customerXML2.Value = "<![CDATA[" + this.mc.APE + "]]>"; customerXML2 = customerXML.Element("outstanding_allow_amount"); customerXML2.Value = "<![CDATA[" + this.mc.OutstandingAllowAmount.ToString() + "]]>"; customerXML2 = customerXML.Element("show_public_prices"); customerXML2.Value = "<![CDATA[" + this.mc.ShowPublicPrices.ToString() + "]]>"; customerXML2 = customerXML.Element("id_risk"); customerXML2.Value = "<![CDATA[" + this.mc.IDRisk.ToString() + "]]>"; customerXML2 = customerXML.Element("max_payment_days"); customerXML2.Value = "<![CDATA[" + this.mc.MaxPaymentDays.ToString() + "]]>"; customerXML2 = customerXML.Element("active"); customerXML2.Value = "<![CDATA[" + this.mc.Active.ToString() + "]]>"; customerXML2 = customerXML.Element("note"); customerXML2.Value = "<![CDATA[" + this.mc.Note; customerXML2 = customerXML.Element("is_guest"); customerXML2.Value = "<![CDATA[" + this.mc.IsGuest.ToString() + "]]>"; customerXML2 = customerXML.Element("id_shop"); customerXML2.Value = "<![CDATA[" + this.mc.IDShop.ToString() + "]]>"; customerXML2 = customerXML.Element("id_shop_group"); customerXML2.Value = "<![CDATA[" + this.mc.IDShopGroup.ToString() + "]]>"; customerXML2 = customerXML.Element("date_add"); customerXML2.Value = "<![CDATA[" + this.mc.DateAdd.ToString() + "]]>"; customerXML2 = customerXML.Element("date_upd"); customerXML2.Value = "<![CDATA[" + this.mc.DateUpd.ToString() + "]]>"; customerXML2 = customerXML.Element("associations").Descendants("groups").Descendants("group").First(); customerXML2.Value = "<![CDATA[" + this.mc.Group.ToString() + "]]>"; request = new RestRequest(); request.Resource = "customers"; request.Method = Method.POST; request.RequestFormat = DataFormat.Xml; request.AddParameter("xml", "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" + customerXMLFull); client = new RestClient(); client.BaseUrl = this.mo.PrestaShopURL; client.Authenticator = new HttpBasicAuthenticator(this.mo.PrestaShopToken, ""); request.AddParameter("Account", this.mo.PrestaShopToken, ParameterType.UrlSegment); response = client.Execute(request) as RestResponse; } catch (Exception ex) { MessageBox.Show(ex.Message); } } Après exécution du code, le client n'est pas créé et aucune erreur n'est remontée. Toute aide est la bienvenue. Cordialement.
  6. Hi, I need some help regarding webservice security. I created an aplication in C# which is using prestashop webservice. I have done customer authentication like this: RestRequest request = new RestRequest("api/customers?filter[email]=[" + username + "]&filter[passwd]=[" + encPassword + "]", Method.GET); IRestResponse response = client.Execute(request); If I get a customer in response then he can place an order in my shop. But first I have to create a webservice client like this: RestClient client = new RestClient("http://myshop.com"); client.Authenticator = new HttpBasicAuthenticator(MY_WEB_SERVICE_KEY, ""); where MY_WEB_SERVICE_KEY is the key generated in back-offece under Advanced Parameters > Webservice. I'm worried that anybody could get my webservice key from the application and then do whatever he wants with my webservice. How can I make my application and webservice more secure?
  7. I am developing an application in C# which would add a new order for a specific customer through a webservice. For now everything is working correctly except order confirmation mail which is not sent to the customer. I can see placed order in my backoffice but customer doesn't get email with payment details. Any ideas what is causing that and how to resolve it?
  8. Hello, we are developing an integration solution fo a customer, a backend module to synch with prestashop, I have problems consuming post request to create and update products. Retrieving is just fine, but I'm unable to create or update, I'm using the same xml arriving from the product "get" request, modifying just the name and resending back as a post but I receive "BAd request" 400 errors, this is my code, do you have any advices? target is something like "products/2" for an update or "products" for a create I've seen that I get lots of CDATAs when retrieving a product, I've tried both sending xml with and without CDATA without any success.. doc.Outerxml should be exactly the xml I'm getting from a get request without id in case of create or with just a changed name in case of update. (I get that with a string = doc.LoadXml(responsePayload)) Thanks! public string psPost(string target, XmlDocument doc) { Uri address = new Uri(baseurl + target); HttpWebRequest request = null; NetworkCredential cred = new NetworkCredential(credential, ""); // Create the web request request = WebRequest.Create(address) as HttpWebRequest; // Set type to POST request.Method = "POST"; request.ContentType = "application/x-www-form-urlencoded"; request.Credentials = new NetworkCredential(credential,""); // Create the data we want to send. string context = doc.OuterXml; StringBuilder data = new StringBuilder(); data.Append("xml=" + context); // Create a byte array of the data we want to send byte[] byteData = UTF8Encoding.UTF8.GetBytes(data.ToString()); // Set the content length in the request headers request.ContentLength = byteData.Length; // Write data Stream postStream = request.GetRequestStream(); postStream.Write(byteData, 0, byteData.Length); HttpWebResponse response = (HttpWebResponse)request.GetResponse(); Stream responseStream = response.GetResponseStream(); // Open the stream using a StreamReader for easy access. StreamReader reader = new StreamReader (responseStream); // Read the content. return reader.ReadToEnd (); }
  9. Hola, Estoy tratando de consumir el web service de prestashop 1.5.2 con C#, pero no consigo hacerlo, lo que estoy haciendo es: Clik derecho sobre la carpeta referencias que esta en mi proyecto de C# Despues clik sobre el agregar referencia web Despues el asistente pide la url del web service que en mi caso es "Localhost/prestashop/api" tambien he probado con "Localhost/prestashop/api/customers", "Localhost/prestashop/api/customers/1". Y las tres URLs me arrojan resultados (xml), pero no se me habilita el boton de agregar referencia para comenzar a uzarlo. Alguien me podria ayudar, o es otro metodo el que tengo que hacer para conectarme con C#. Gracias!
  10. Esto es una oferta de trabajo con contrato laboral. En Iniciatec, luchamos contra la crisis y seguimos creando empleo, si tu perfil se adapta a las siguientes caracteristicas envianos un mail a [email protected] con tu curriculum adjunto o pasate por nuestra web y rellena el formulario “Trabaja con nosotros”. Puesto Vacante: Desarrollador/analista apps cliente-servidor Descripción de la Oferta: Desarrollador/analista de aplicaciones cliente/servidor utilizando PHP, C#, HTML5 y Javascript. Se desarrollarán aplicaciones web en PHP con diferentes interfaces para clientes WEB, Escritorio y APIs de integración mediante REST y Servicios Web. Se valorará experiencia en C# y PHP, además de conocimientos en alguno de los siguientes CMSs y Frameworks: NHibernate, ZendFramework, Propel, Doctrine, Dojo, Jquery, WordPress y Prestashop. Número de Vacantes: 1 Duración: 6 Meses Fecha Inicia: 4 Junio (inmediato) Salario: A convenir Jornada Laboral: Indiferente Provincia: Sevilla salu2 www.iniciatec.es
×
×
  • Create New...