<?php 
/**
 * Plugin Name:         JooCart
 * Description:         JooCart – A WordPress eCommerce plugin. Power of OpenCart inside WordPress.
 * Version:             3.0.5.1
 * Requires at least:   3.5
 * Tested up to:        6.9
 * Requires PHP:        7.2
 * Author:              softPHP
 * Author URI:          https://www.soft-php.com/
 * License:             GPL v2 or later
 * License URI:         https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain:         joocart
 */
// no direct access
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
define('JOOCART_PLUGIN_URL',plugin_dir_url(__FILE__));
define('JOOCART_PLUGIN_DIR', str_replace('\\', '/', realpath(plugin_dir_path(__FILE__))).'/');
define('JOOCART_PLUGIN_FILENAME',__FILE__);
if( is_admin() ) {
	require_once(dirname(__FILE__).'/admin/joocart_admin.php');
}
$joocart_opencart_dir_path = rtrim(str_replace('\\', '/', trim(get_option('joocart_opencart_dir_path'))), '/') . '/';
if(file_exists($joocart_opencart_dir_path . 'system/startup.php')) {
	include_once(dirname(__FILE__).'/joocart_main.php');
}
?>