Import XML products to Prestashop in PHP

£可爱£侵袭症+ 提交于 2020-01-22 03:06:05

问题


I need create a PHP file to import a lot of products from a external source (a distributor) to my Prestashop 1.7.6.

I need to connect with this service "http://www.ferrunion.com/ita/codice/id_service.php" to take the token and when I recive this string I need to connect with this service "http://www.ferrunion.com/ita/codice/catalogo_service.php" to recive the XML file.

This is an example of the structure of the XML:

<![CDATA[ 
   <product>  
      <id>id<id>
      <description>description</description>
      <quantity>quantity</quantity>
      <confezione>confezione</confezione>
      <prezzo_lordo>prezzo acquisto senza sconti</prezzo_acquisto>
      <price>price</price>
      <info>info</info>
   </product> 
]]>

The problema are 2:

  • How can I conncet whit this services in PHP language?
  • When I have the file, how can import the XML code in my Prestashop's database?


Can you help me with this problem?

Thanks you.

来源:https://stackoverflow.com/questions/58996401/import-xml-products-to-prestashop-in-php

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!