🔧 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>
30 lines
1.6 KiB
PHP
30 lines
1.6 KiB
PHP
<?php
|
|
if ( ! defined( 'ABSPATH' ) ) { exit; }
|
|
global $MIRAVIAWOO;
|
|
?>
|
|
<div class="wrap">
|
|
<div class="region_config_dashboard">
|
|
<img style="width:300px" src="<?php echo plugins_url('assets/img/miravia-logo-new.svg', MIRAVIA_ASSETS_PATH)?>" />
|
|
<h2>Dashboard</h2>
|
|
<p>Welcome to Miravia Dashboard for WooCommerce, manage your products on Miravia Store and download orders on your WooCommerce site.</p>
|
|
<a href="admin.php?page=miravia_settings&subpage=orders" class="btn_config">
|
|
<h4><i class="fa fa-file"></i> Orders</h4>
|
|
<p>Manage orders from Miravia, download and change status from your WooCommerce</p>
|
|
</a>
|
|
<a href="admin.php?page=miravia_settings&subpage=profiles" class="btn_config">
|
|
<h4><i class="fa-solid fa-tree"></i> Profiles</h4>
|
|
<p>Create o Edit your profiles to send products to Miravia</p>
|
|
</a>
|
|
<a href="admin.php?page=miravia_settings&subpage=products" class="btn_config">
|
|
<h4><i class="fa-solid fa-store"></i> Products</h4>
|
|
<p>View Miravia products, status, stock and connect with your WooCommerce products</p>
|
|
</a>
|
|
<a href="admin.php?page=miravia_settings&subpage=configuration" class="btn_config">
|
|
<h4><i class="fa-solid fa-gear"></i> Configuration</h4>
|
|
<p>Change plugin configuration for attributes, default values, etc.</p>
|
|
</a>
|
|
<div class="clear"></div>
|
|
<p>Connector version <?php echo MIRAVIA_WOO_VERSION ?> (Build <?php echo MIRAVIA_BUILD_VERSION ?>)</p>
|
|
</div>
|
|
</div>
|