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
Need to make improvements on the Modx Evolution CMS 3.1.7 site.
22 USD
The design refinement and layout of the website are being developed, and these works will need to be implemented on the site.Also, some adjustments need to be implemented on the site. HTML & CSS, PHP ∙ 20 minutes back ∙ 11 proposals |
Integration of Blade article template | Laravel | Frontend
100 USD
Integration of Blade template for article | Laravel | Frontend Task Essence The site is built on Laravel. A ready HTML/CSS layout for a premium blog article page. It needs to be integrated into the existing Blade structure of the site. The design is ready. You are not designing… PHP, Web Programming ∙ 19 hours 38 minutes back ∙ 62 proposals |
Implementation of a technical SEO audit on OpenCartGood day. Need to implement technical SEO fixes on the site softugo.com. The site is already developed but not fully launched yet. Platform: ocStore 3.0.2.0 / OpenCart + custom code. Hosting: Hostinger. Current PHP version: 7.3. (transition to PHP 8.2 is planned) A checklist… PHP, Web Programming ∙ 21 hours 40 minutes back ∙ 55 proposals |
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 ∙ 3 days 21 hours back ∙ 63 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 ∙ 6 days 17 hours back ∙ 29 proposals |