Writing a PHP parser for the API provider for OpenCart 3
The name
The price
Description of the goods
The number
Weight, length, width and height
Brand of goods
The characteristics (atributes)
At the time of parsing, we generate an url.
When reboot for existing goods, we update the following data:
The price
The number
- stock_status_id depends on the number
There should also be a category.txt file in which I will indicate the comparison of categories, for example:
Category ID in the feed of the supplier, Category ID I have in the store.After the task is completed, you will need another parser under a new supplier.Documentation by API
1 .API data is provided in JSON (by silence), XML and CSV formats.2ndThe following is: _________________________________________
ThreeThe following URL is used to obtain the product data:
HTTPS://b2b.yugtorg.com/apiservices/export/{market}?apiKey={apiKey}[&select={}]
where the market takes meaning: product - to obtain information about the product
products - to obtain information on products of the chosen category
Category - to obtain information by category
categories - to obtain information on the structure of categories
The select parameter sets out additional conditions.4 .Examples of request for information on the product with ID 2366:
HTTPS://b2b.yugtorg.com/apiservices/export/product&apikey=08eb10b2f029264871d968869d74a5d0c05723c3f5a9b3aa5b866ba3&id=2366
where id is the code of the product
and 5.Examples of product information request in the ID 9770 group:
https://b2b.yugtorg.com/apiservices/export/products&apikey=08eb10b2f029264871d968869d74a5d0c05723c3f5a9b3aa5b866ba3&category=9770&noresize=0
where category - group code, noresize - allows you to obtain an image in the original resolution (noresize=1).To get an edited image of 80x80, indicate noresize=0 or the noresize parameter is down completely.
6 .Examples of information request for the product group with id 9770:
HTTPS://b2b.yugtorg.com/apiservices/export/category&apikey=08eb10b2f029264871d968869d74a5d0c05723c3f5a9b3aa5b866ba3&id=9770
where id - group code
7 .Examples of tree categories:
HTTPS://b2b.yugtorg.com/apiservices/export/categories&apikey=08eb10b2f029264871d968869d74a5d0c05723c3f5a9b3aa5b866ba3&level=1
where level from 1 to 5 - the level of deposit (if not specified = 1) - the list of categories of the specified level of deposit
The parent parameter can be indicated, for example:
HTTPS://b2b.yugtorg.com/apiservices/export/categories&apikey=08eb10b2f029264871d968869d74a5d0c05723c3f5a9b3aa5b866ba3&parent=14
where parent - id category from which to build a tree (by silence from the root)
It is possible to share parent and level parameters, however, it is worth noting that the selected category ID may not match the level category.
8 .To obtain data in XML format, add &format=xml at the end of the request line.For example:
HTTPS://b2b.yugtorg.com/apiservices/export/product&apikey=08eb10b2f029264871d968869d74a5d0c05723c3f5a9b3aa5b866ba3&id=2366&format=xml
* To obtain data in the v.2 format, add &var=2 to the end of the request line.For example:
HTTPS://b2b.yugtorg.com/apiservices/export/products&apikey=08eb10b2f029264871d968869d74a5d0c05723c3f5a9b3aa5b866ba3&category=9770&format=xml&ver=2
The 9.To obtain data in the CSV format, add &format=csv at the end of the request line.For example, for one product:
HTTPS://b2b.yugtorg.com/apiservices/export/product&apikey=08eb10b2f029264871d968869d74a5d0c05723c3f5a9b3aa5b866ba3&id=2366&format=csv
for products from the ID 9770 group:
HTTPS://b2b.yugtorg.com/apiservices/export/products&apikey=08eb10b2f029264871d968869d74a5d0c05723c3f5a9b3aa5b866ba3&category=9770&format=csv
for all goods:
HTTPS://b2b.yugtorg.com/apiservices/export/products&apikey=08eb10b2f029264871d968869d74a5d0c05723c3f5a9b3aa5b866ba3&format=csv
The 10.To manage the output language, use the “&lang=code_language” parameter, for example:
HTTPS://b2b.yugtorg.com/apiservices/export/product&apikey=08eb10b2f029264871d968869d74a5d0c05723c3f5a9b3aa5b866ba3&id=2366&lang=ua
There are currently two languages supported: ru, ua
Please note that coding all UTF-8 formats
-
2125 95 4 2 Good Morning Oksana! There is experience of creating similar parsers. I will be happy to cooperate. Working time is indicated with the time of testing. thank you
-
3303 34 0 I have written these parsers many times, call me.
---------------
Great experience working with open card, parsing goods, export, API, synchronization with 1C, TecDoc, Rozetka, individual modules.
Look at the portfolio.
I will be happy to cooperate.
The exact terms and prices will be told after the conversation/conversation.
-
392 4 0 Good day, there is a great experience working with parser/import/export and in general data processing. I am pleased to do your work.
-
2581 283 2 5 I have great experience in writing imports to open cards.
Please contact me, I will clarify the details and I can continue.
-
Good morning, I was interested in your proposal. I will be happy to cooperate.
Calculation of the value of the implementation deadlines after discussing the details.
Look at the portfolio.
Current freelance projects in the category Javascript and Typescript
Online clothing storeNeed a developer for an online clothing store Looking for an experienced developer to create a full-fledged online clothing store with a drop model of sales. What needs to be done: 6 pages: home, product, cart, checkout, account, admin panel Login via Google account Cart and… HTML & CSS, Javascript and Typescript ∙ 16 hours 40 minutes back ∙ 66 proposals |
Full-stack development — Amazon PPC Dashboard (Stage 1)Need a full-stack developer with experience working with Amazon API to implement Stage 1 of the internal PPC dashboard. The project is real, the data is live, everything is ready to start. Frontend prototype (5 pages, React + TypeScript): WHAT IS ALREADY READY — Frontend… Javascript and Typescript, Web Programming ∙ 3 days 3 hours back ∙ 28 proposals |
Development of a photo book and photo frame constructor websiteProject Goal A modern website needs to be developed for ordering photo books, photo frames, and other personalized photo products. The main task of the project is to provide the client with the ability to independently create a ready-made layout of the product directly on the… Javascript and Typescript, Web Programming ∙ 4 days 19 hours back ∙ 96 proposals |
Team for a custom marketplace of funeral services.We are looking for a team to launch and develop a custom national marketplace for funeral services. Right away: we are not looking for solo freelancers, juniors, or "website builders." We need a strong product team at the middle+/senior level with real cases in… Javascript and Typescript, Web Programming ∙ 5 days 14 hours back ∙ 27 proposals |
Improvement of the existing Next.js/Supabase project: offers, CRM, analytics, AI chatThere is an active project WatchGenius — a luxury watch analytics platform with a catalog of models, price analytics, external offers, application forms, and an AI chat. The project has already been partially developed. We need not a website from scratch, but an experienced… Javascript and Typescript, Web Programming ∙ 7 days 15 hours back ∙ 55 proposals |