[WordPress] 外掛分享: Ninox – Integration for WooCommerce

首頁外掛目錄 › Ninox – Integration for WooCommerce
WordPress 外掛 Ninox – Integration for WooCommerce 的封面圖片
20+
安裝啟用
尚無評分
261 天前
最後更新
問題解決
WordPress 6.4+ PHP 7.2+ v1.0.3 上架:2025-04-06

內容簡介

總結:
Ninox - WooCommerce 整合外掛為 WooCommerce 新增了一個 REST API 端點,透過單一、優化的請求返回所有產品及其完整變異數據。這外掛針對開發人員、主題創作者以及任何需要包括變異數據在內的全面產品數據的人設計。

問題與答案:
1. 誰是Ninox - Integration for WooCommerce外掛的目標使用者?
- 開發人員、主題創作者以及任何需要全面產品數據(包括變異數據)的人。

2. 這個外掛的主要特點有哪些?
- 可以透過單一的 API 請求獲取完整的產品詳細信息和所有變異數據
- 進行效能優化,批次處理和高效查詢以處理大型產品目錄
- 支援 WooCommerce API 密鑰驗證和權限驗證
- 具有清晰的 API 文件,包括示例請求和響應
- 智能緩存支持,以提升響應時間並減少伺服器負擔。

3. 如何訪問這個外掛所添加的端點?
- 端點為:/wp-json/wc/v3/products-with-variations

4. 這個外掛的 API 文件提供了哪些資訊?
- 端點:/wp-json/wc/v3/products-with-variations
- 方法:GET
- 必要權限:manage_woocommerce 能力或有效的 API 密鑰
- 參數:包括 page(頁碼)、per_page(每頁最大項目數)

5. 這個外掛如何保護使用者隱私?
- 這個外掛不收集、儲存或分享任何使用者數據,僅從您的 WordPress 數據庫通過 WooCommerce API 檢索產品信息。

透過以上問題與答案,可以更深入了解Ninox - Integration for WooCommerce外掛的功能特色和使用說明。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.3) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Ninox – Integration for WooCommerce」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Ninox – Integration for WooCommerce adds a new REST API endpoint to WooCommerce that returns all products with their complete variation data in a single, optimized request.
This plugin is designed for developers, theme creators, and anyone building custom interfaces or integrations with WooCommerce who needs comprehensive product data including variations.
Key Features

Comprehensive Data Access: Get complete product details and all variations in a single API call
Performance Optimized: Batch processing and efficient queries to handle large product catalogs
Secure Authentication: Supports WooCommerce API key authentication and proper permission validation
Well-documented API: Clear documentation with example requests and responses
Cache Support: Intelligent caching to improve response times and reduce server load

Use Cases

Building custom front-end interfaces for WooCommerce stores
Developing mobile applications that need to display product data
Creating external integrations with other systems
Developing custom reporting tools
Any application that needs detailed product variation data

Technical Details
The plugin adds the following endpoint:
/wp-json/wc/v3/products-with-variations

This endpoint handles all the complex database queries needed to retrieve products with their attributes and variations in an efficient way, reducing the number of API calls your application needs to make.
API Documentation
The plugin adds the following endpoint:
Endpoint: /wp-json/wc/v3/products-with-variations
Method: GET
Required Permissions: manage_woocommerce capability or valid API key
Parameters:
Parameter
Type
Description
page
integer
Current page of the collection. Default is 1.
per_page
integer
Maximum number of items to be returned in result set. Default is 10. Max 20.
force_refresh
string
Set to ‘true’ to bypass cache and get fresh data. Optional.
Example Response:
`json

[
{
“id”: 123,
“name”: “Sample Product”,
“description”: “Product description”,
“short_description”: “Short description”,
“sku”: “SAMPLE-1”,
“price”: “29.99”,
“regular_price”: “39.99”,
“sale_price”: “29.99”,
“stock”: 10,
“stock_status”: “instock”,
“weight”: “”,
“length”: “”,
“width”: “”,
“height”: “”,
“attributes”: [
{
“id”: 1,
“name”: “Size”,
“options”: [“S”, “M”, “L”]
}
],
“variations”: [
{
“id”: 124,
“sku”: “SAMPLE-1-S”,
“price”: “29.99”,
“regular_price”: “29.99”,
“sale_price”: “”,
“stock”: 5,
“stock_status”: “instock”,
“attributes”: [
{
“id”: 1,
“name”: “size”,
“option”: “S”
}
]
}
]
}
]
`
Headers:
When using pagination, the response includes the following headers:

X-WP-Total: The total number of products found
X-WP-TotalPages: The total number of pages

Privacy Policy
This plugin does not collect, store, or share any user data. It only retrieves product information from your WordPress database through WooCommerce’s API.
No personal information is collected or transmitted to external services. The plugin only accesses the following database information:
– Product details
– Product variations
– Product attributes
– Stock information
All data processing occurs locally within your WordPress installation.
Security
This plugin supports two authentication methods for accessing the REST API endpoint:

WooCommerce API Keys (Basic Authentication)

– Create an API key pair in WooCommerce > Settings > Advanced > REST API
– Use these credentials in the Authorization header as Basic auth
– Format: Authorization: Basic base64(consumer_key:consumer_secret)

WordPress User Authentication

– Users must have ‘manage_woocommerce’ capability
– Supports standard WordPress authentication methods including:
* Session-based authentication
* Cookie-based authentication
* WordPress nonces
All credentials and API keys are stored securely in the WordPress database using WordPress core security standards. No credentials are stored in plain text, and all database queries are properly prepared and sanitized.
Support
If you need help with this plugin, please visit our support forum at:
https://ninoxnet.com/contacto/
For custom development or integration assistance, please contact us at:
[email protected]

延伸相關外掛

文章
Filter
Mastodon