Php script woocommerce imports from external json API (not plugin)
Parameters that accept the API call:
text=multiwarka (search request)
section_id=112986 (id of the product category)
The rest are constant.
The data for the request must be stored in the configuration txt file (there should not be any connections to the BD when the script works).The configuration structure - one line is a task for one request.Rate to 1000
The example:
url text section_id woo_category_id
Where to:
- woo_category_id - the category id to which the goods will be imported on the woocommerce page
URL: the address to which you are requested to receive JSON
- text = multivark (search request)
- section_id=112986 (id of the product category)
The script consistently passes by requests, receives json and imports/updates data to woocommerce.Later detailed
An example of the server response (there is more, but interests the mass of goods - in the example only one element but will be up to 1000: (added to the task txt)
From the mass of goods you need to find all the goods with tag.name = "popularity" is the filter.And import them to woocommerce with product type External/Partnership goods https://prnt.sc/xajs8a
I don’t need all the information, I’m only interested in:
- SKU = id (by it we attach to the possibility of update)
- Reference to partner product = “href”
- Text of the "Buy" button = constant, Take from the external configuration, about it below ( https://prnt.sc/xalanm )
Price = “price”
The name of the product = “title”
- Product category = woo_category_id (from the config).If categories are not found, we ignore and go further.They should not stop.- Product image = "image_main" (yes - only one image of the main product is required).If the script finds a product in which the SKU is already equal to the "id" of the goods:[], then it reinscripts the value to the current (only the value), the remaining fields are not touched.You need to upload a photo of the goods whatever in woocommerce they are stored locally.The script will run on the crown - it must with a break in a minute to pick up requests from the config and pass through the entire config.It’s not worth worrying that I’m just updating the price.Periodically I will remove all the goods from woocommerce and in this case, the script will just overflow them.PHP version 7.4 (may be 8).Hosting own on Ubuntu 18.xx with apache, I will set the modules which will be needed so here no restrictions only describe the requirements as much as minimum memory is needed, timetable the performance of the script, etc.Requirements for the host on which the script will work.The Z.The script requires a second configuration file in which there will be connectivity creads to wp - address, login\pass, etc.the arrangements you consider necessary.I will provide for testing the latest version of the developed wp with the latest woocommerce and API data source
P.P.S - don't look at the established cost of the project and offer yours.I prefer a developer who has experience in woocommerce.
Applications 1
Client's review of cooperation with Andrey G.
Php script woocommerce imports from external json API (not plugin)Beautiful and fast done work. I am pleased, I will contact you in the future.
Freelancer's review of cooperation with Roman Kolos
Php script woocommerce imports from external json API (not plugin)For the first time I work with a customer, but I am very satisfied with the high qualification, transparent and understandable TZ.
I recommend cooperation to everyone!
Current freelance projects in the category PHP
Execution of work after SEO audit
334 USD
An experienced OpenCart developer is needed to perform SEO and technical improvements for the online store. Main tasks: Correction of the internal linking structure and menu. Adding links to the footer. Implementation of breadcrumbs with Schema.org microdata. Fixing the… PHP, Website Maintenance ∙ 1 day 21 hours back ∙ 56 proposals |
Fix issues with Facebook API in the OpenCart moduleIn OpenCart, there is a module for integrating Facebook and Instagram via API, OAuth, and Webhook. After opening the module page in the browser, the number of API requests to Facebook starts to increase, and the number of errors gr:get:InvalidID also rises. It is necessary to… PHP, Web Programming ∙ 1 day 23 hours back ∙ 35 proposals |
Integration needed: KeyCRM → Cash Register KashalotIt is necessary to set up integration between KeyCRM and the Cash Register Kahalot. When placing an order in KeyCRM, the data must be automatically transmitted to Kahalot: • order information • products, nomenclature • prices • quantity More details in private. Content Management Systems, PHP ∙ 4 days 18 hours back ∙ 29 proposals |
A WordPress site using the Kadence theme and Kadence Blocks.
223 USD
We need to create a website on WordPress using the Kadence theme and Kadence Blocks. There will be no online store (although it may be added in the future). We need a homepage and several internal pages. The graphics are already prepared, the layout structure is mostly defined,… Content Management Systems, PHP ∙ 6 days 3 hours back ∙ 38 proposals |
Development of 2 SEO-oriented websites for selling spare parts (ATVs and special equipment)Development of Two Specialized Websites for Selling Spare PartsGeneral Information It is necessary to develop two specialized websites: Spare parts for ATVs, UTVs, SSVs, and other similar equipment. Spare parts for special equipment. Existing company website:… PHP, Web Programming ∙ 7 days 1 hour back ∙ 77 proposals |