Добавить точки API для Wordpress для работы через JS
Задача: сделать плагин, который создаст точки AJAX API и позволит управлять корзиной и избранным wocommerce из одностраничного лендинга на vuejs (который вам писать не надо).
Используется тема для сайта https://woodmart.xtemos.com/ которую я дам для локального тестирования. Доступа к рабочему сайту не будет.
Описание точек API ниже:
# API
Данные в формате JSON
## Search
#### Search by SKU
GET или POST запрос.
**request** - так и остается SKU продукта,
**response** - с сервера приходит json с такими полями:
- description: текстовое описание
- image: url на изображение
- product_id: какой-то идентификатор для добавления в страницу, если для добавления можно использовать SKU, то не нужен
- wieght: вес товара
- price: цена из поля acf
---
## Сart
#### INDEX
GET или POST запрос.
**request** - отправляется пустой запрос и ключ для проверки на бекенде (wp nonce)
**response** - приходит идентификатор продукта в списке (смотря как реализовано на бекенде)
#### Add to cart
POST запрос.
**request** - отправляется используемый идентификатор и ключ для проверки на бекенде
**response** - приходит идентификатор продукта в корзине
---
#### Change quantity
POST запрос.
**request** - поля:
- ключ для проверки на бекенде
- ключ продукта
- количество
**response** - успех или ошибка
---
#### Delete
POST запрос.
**request** - отправляется используемый ключ продукта и ключ для проверки на бекенде
**response** - успех или ошибка
---
## Favorites
#### Add
GET или POST запрос.
**request** - отправляется используемый идентификатор и ключ для проверки на бекенде
**response** - приходит идентификатор продукта в списке (смотря как реализовано на бекенде)
---
#### Remove
GET или POST запрос.
**request** - отправляется используемый идентификатор и ключ для проверки на бекенде
**response** - успех или ошибка
Current freelance projects in the category PHP
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 ∙ 1 day 15 hours back ∙ 27 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 ∙ 3 days 22 hours back ∙ 77 proposals |
Development of a WordPress website
23 USD
We are looking for a contractor to develop a custom website on WordPress for a jewelry store. The first stage will be a consultation. Content Management Systems, PHP ∙ 6 days 14 hours back ∙ 73 proposals |
Parser expireddomains.net
112 USD
A parser is needed for expireddomains.net. You need to log in to the site first; the problem is that it blocks the IP when trying to parse data. You need to parse thematic domains based on a list of keywords. If you are not confident in your abilities, please do not write. PHP, Web Programming ∙ 8 days 22 hours back ∙ 52 proposals |
Integration of payment service with Sales Force
70 USD
There is a payment system widget on the site that needs to be integrated with Salesforce so that all required parameters are visible on the Salesforce side. It needs to be done in such a way that all payments and subscriptions are controlled through Salesforce. PHP, Web Programming ∙ 9 days 1 hour back ∙ 44 proposals |