Fix image upload structure for Miravia API compliance
🔧 Bug Fixes: - Fixed product image structure to match Miravia API requirements - Updated MiraviaProduct.php getData() method to wrap images in {"Image": [...]} format - Updated MiraviaCombination.php getData() method to wrap SKU images properly - Resolved error "[4224] The Main image of the product is required" 📋 Changes: - Modified getData() methods to transform flat image arrays to nested structure - Product images: images[] → Images: {"Image": [...]} - SKU images: images[] → Images: {"Image": [...]} - Maintains backward compatibility for empty image arrays 🎯 Impact: - Product uploads will now pass Miravia's image validation - Both product-level and SKU-level images properly formatted - Complies with official Miravia API documentation structure 🤖 Generated with Claude Code (https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
32
connector-miravia/README.md
Normal file
32
connector-miravia/README.md
Normal file
@@ -0,0 +1,32 @@
|
||||
=== Woo for Miravia ===
|
||||
Contributors: wecommsolutions
|
||||
Tags: miravia, woocommerce miravia, alibaba, aliexpress
|
||||
Requires at least: 5.0
|
||||
Tested up to: 6.3
|
||||
Requires PHP: 5.0
|
||||
Stable tag: 1.0.0
|
||||
License: GPLv2
|
||||
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
||||
|
||||
== Description ==
|
||||
|
||||
Connect your store with Miravia, upload your products to Miravia and Download orders.
|
||||
|
||||
== Installation ==
|
||||
|
||||
* Upload the add-in folder to the "/ wp-content / plugins /" directory or install the add-in directly from the WordPress add-ons screen.
|
||||
* Activate the plugin from the «Add-ons» screen in WordPress
|
||||
* Enjoy!
|
||||
|
||||
== FAQ ==
|
||||
|
||||
Visit wecomm.es
|
||||
|
||||
== Changelog ==
|
||||
|
||||
= 1.0.0 =
|
||||
* Initial version
|
||||
|
||||
== Localization ==
|
||||
|
||||
English (US).
|
||||
Reference in New Issue
Block a user