=== Plugin Name === Magento 2 WordPress Integration Contributors: modernminds, yaroslav0yachmenov, ayachmenev, maximtkachuk Donate link: https://modernmodules.com/plugins/magento-2-wordpress-integration-plugin/ Tags: magento, magento2, e-commerce, ecommerce, integration, shop Requires at least: 4.0 Tested up to: 5.0.3 Requires PHP: 5.5.9 Stable tag: 1.3 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Combine Magento 2 with the CMS capabilities of WordPress. Seamless user experience for visitors by integrating the design of Magento and WordPress. == Description == Combine the powerful e-commerce solution Magento 2 with the excellent CMS capabilities of WordPress. The Magento 2 WordPress Integration Plugin integrates Magento 2 with WordPress so users will have an unified user experience. Share session/cart data, navigation menus, header, footer, products, layout elements and static blocks by using shortcodes or functions. This plugin is not meant to replace Magento 2, instead it will allow you to create a seamless user experience for your visitors by integrating the design of Magento and WordPress. This is a FREE VERSION with LIMITED FUNCTIONALITY of the premium plugin that can be found here: https://modernmodules.com/plugins/magento-2-wordpress-integration-plugin/ = Features = * Include Magento header in your WordPress theme by our API * Include Magento css into WordPress theme header automatically * Manage store views * Manage including of css and showing Magento header * Manage including of js in Magento header * Manage one or more blocks to build your customized header by Magento 2 blocks * Manage one or more blocks to build your customized header by CSS selectors == Installation == You can only use this plugin if your WordPress installation is on the same server as your Magento installation. This plugin requires several Magento store files to be included using PHP, this means it needs to be on the same server as your WordPress Installation. In addition, session data is stored per server and thus only available if both platforms are installed on the same server. Nevertheless, in most setups you can use different subdomains with this plugin. 1. Purchase and download the WordPress plugin 2. Upload the contents of the zip to your plugin directory 3. Enable the plugin in your WordPress admin 4. Apply the following patch to WordPress to avoid conflicts between WordPress and Magento 2: File: WORDPRESS_ROOT/wp-includes/l10n.php WordPress __() function is used for translation but is in conflict with Magento 2. Therefore, please find this function at around line 201 and REPLACE ` function __( $text, $domain = 'default' ) { return translate( $text, $domain ); } ` WITH ` function __( $text, $domain = 'default' ) { if ( defined( 'M2I_MAGE_DIR' ) && class_exists( 'M2I_External' ) && M2I_External::$needs_mage_translate ) { return M2I_External::translate( func_get_args() ); } else { return translate( $text, $domain ); } } ` 5. Complete the settings in the plugin settings page == Frequently Asked Questions == = Where can I purchase the premium plugin? = You can buy the premium plugin that includes all features at: https://modernmodules.com/plugins/magento-2-wordpress-integration-plugin/ = What should be the absolute path of my Magento directory? = An example could be: /data/web/magento2/ It should go the the main directory of your Magento 2 installation = Does it support Magento 1? = No, for support of Magento 1 there are several other plugins available = Does it support Magento 2.3? = Yes, since 1.3 plugin version = What are the server requirements? = Magento 2 and WordPress should be able to read each others location. Therefore, it does not matter if you use a subdirectory for example, as long as they are on the same server and can be accessed by the same user. == Screenshots == 1. General settings 2. Advanced settings 3. Magento 2 WordPress Integration == Changelog == = 1.3 = * Fixed Magento 2.3.0 integration issue * Minor changes in php doc. of methods of widgets (premium version only) * Fixed fatal error inside ajax request of M2WP Product Widget (premium version only) * Fixed showing of unavailable product and add to cart message (product-view.php template updated) (premium version only) * Fixed add to cart message (slider.php template updated) (premium version only) * Tested with Magento 2.3.0, 2.2.7 and 2.2.6 = 1.2.7 = * Stores list for the settings page will be fetched even when error has been occurred * Store code showing near the store name in the stores list on the settings page, might be helpful if there are same store names * Fixed path when magento is configured without url rewrites * Fixed