Magento 2 WP Integration
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, layo
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.
Features
- Include Magento 2 blocks in your WordPress theme
- Use shortcodes to include products, cart, layout blocks, and static blocks in the WordPress editor (“Add Magento2 Shortcode” button)
- Share session and cart data between Magento 2 and WordPress
- Include product information in your WordPress editor
- Seamlessly integrate your Magento 2 and WordPress theme
- Display cart/mini cart with session data
- 4 Widgets to display static blocks, product slider, single product or cart
- Slider and Single Product templates can be overridden in current theme
- Auto adding possibility of header and footer from your Magento 2 (only if your theme is using HTML5 approach)
Basic Usage
You can use the following functions in your theme files:
- Get HTML content (as string) of the header: m2i_get_header()
- Get HTML content (as string) of the footer: m2i_get_footer()
- Get HTML content (as string) for CSS files: m2i_get_links_css_tags()
- Get HTML content (as string) for JS files: m2i_get_scripts_from_head() or m2i_get_scripts_from_body()
- Get HTML content (as string) of the parts (elements) of the site by CSS selector: m2i_get_els_by_css_selector($css_selector)