<?php
/**
 * Products Sync for WooCommerce
 *
 * This plugin enables seamless product synchronization from multiple suppliers to WooCommerce.
 *
 * @category  WordPress_Plugin
 * @package   MOWCPS
 * @author    miniOrange <info@miniorange.com>
 * @license   Expat https://plugins.miniorange.com/mit-license
 * @link      https://plugins.miniorange.com/woocommerce-api-product-sync-with-woocommerce-rest-apis
 *
 * Plugin Name: Products Sync for WooCommerce
 * Plugin URI: https://plugins.miniorange.com/woocommerce-api-product-sync-with-woocommerce-rest-apis
 * Description: This plugin seamlessly syncs External API data into WooCommerce as products, supporting integrations with platforms like Amrod, SSActivewear, Barron, MidOcean, SanMar, Shopify, and Parts Unlimited. Effortlessly import and manage your product catalog in WooCommerce.
 * Version: 2.6.0
 * Author: miniOrange
 * Author URI: https://www.miniorange.com
 * License: Expat
 * License URI: https://plugins.miniorange.com/mit-license
 * Requires Plugins: woocommerce
 * Text Domain: products-sync-for-woocommerce
 */

// If this file is called directly, abort.
if ( ! defined( 'ABSPATH' ) ) {
	die;
}

if ( ! defined( 'MOWCPS_PLUGIN_DIR' ) ) {
	define( 'MOWCPS_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
}

if ( ! defined( 'MOWCPS_PLUGIN_URL' ) ) {
	define( 'MOWCPS_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
}

// Load required files.
if ( ! defined( 'MOWCPS_PLAN_NAMESPACE' ) ) {
	define( 'MOWCPS_PLAN_NAMESPACE', 'Common' );
}

// Load Composer autoloader.
require_once MOWCPS_PLUGIN_DIR . 'vendor/autoload.php';

define( 'MOWCPS_VERSION', MOWCPS\Common\Utils\Utils::get_version_number() );

require_once MOWCPS_PLUGIN_DIR . 'includes' . DIRECTORY_SEPARATOR . 'common' . DIRECTORY_SEPARATOR . 'loader.php';
require_once MOWCPS_PLUGIN_DIR . 'includes' . DIRECTORY_SEPARATOR . 'plans' . DIRECTORY_SEPARATOR . 'standard' . DIRECTORY_SEPARATOR . 'loader.php';
