Sale!

Magento 2 WordPress Integration Plugin

 50,00  39,95 inc. VAT

(1 customer review)

Free SupportCombine the powerful e-commerce solution Magento 2 with the excellent CMS capabilities of WordPress. This plugin integrates Magento 2 with WordPress so users will have an unified user experience. Seamlessly integrate your Magento 2 and WordPress theme!

  • Integrate Magento theme design with WordPress header/footer
  • Use Magento products in your WordPress editor
  • Use shortcodes to pull products, layout blocks, and static blocks in the WordPress editor
  • Widgets to display static blocks, product slider, single product or cart

39.95,-

Category: SKU: m2wp

Description

Integrate the design of Magento 2 with WordPress

Use the Magento 2 platform for the best shopping experience and
unlock the powerful CMS capabilities of WordPress for your landing and content pages.

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.

What this plugin basically does is that it takes generated templates and content from Magento 2 and it allows you to use that content inside your WordPress installation. Most of our customers use this to create a WordPress instance for blogging and landing pages since the WP editor is more user-friendly than Magento. With this plugin you don’t need to create and update your design in both platform since it will integrate the design of both.

Magento 2 WordPress integration plugin

What is Magento 2 WordPress integration?

Easily pull Magento content (carts, products, header, footer, blocks) inside WordPress.
Magento 2 WordPress integration

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.

  • Seamlessly integrate your Magento 2 and WordPress theme (header and footer)
  • Include Magento CMS blocks in your WordPress theme
  • Include product information in your WordPress editor
  • Shortcodes to include products, layout blocks, and static blocks in WP
  • Widgets to display static blocks, product slider, single simple product or cart
  • Show customer and cart data in WordPress

Our plugin in action

Some screenshots of the Magento 2 WordPress integration plugin.

One of our happy customers

WYDR.nl seamlessly integrated their WordPress blog with their Magento 2 shop.

Who’s Your Daddy Records is the largest web store for record sleeves in the Benelux. With our Magento 2 plugin they are ready for rapid growth.
WYDR switched to Magento 2 on the advice of our experts. They wanted to maintain flexible and needed a user-friendly solution to create landing pages and blog articles.

With Magento 2 and a seperate WordPress installation we combined the power of both platforms. Our plugin made sure that the design of the Magento store was copied to the WordPress blog.

Magento 2 Shop WordPress

Professional plugins & support

As full-service e-commerce provider we introduce online marketing best practices in our extensions.

  • We know all about e-commerce. Instead of solely focusing on development we know about online marketing en e-commerce best practices.
  • We have the best support. A good plugin needs good support. In case you run into trouble and need our help, we are always here to help you out.
  • Innovative plugins and extensions. Our plugin and extension are unique, written in a best practice approach and help you to reach your business goals.
  • 1. E-commerce Strategy

    Our plugins are written to support e-commerce goals of online businesses. We combine strategy with software development.

  • 2. Online Marketing

    Our e-commerce experts always keep in mind online marketing best practices. Our plugins support you with SEO, advertising and other marketing channels.

  • 3. Plugin Development

    Our developers build the best e-commerce extensions and tools for both WordPress (WooCommerce) and Magento.

Installation Manual

Please read our installation manual before contacting support.

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. Installation Steps:

  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. Complete the settings in the plugin settings page (see below for more info)
  5. Apply the following patch to WordPress to avoid conflicts with Magento:

2. WordPress Patch:

Locate the file {WORDPRESS_ROOT}/wp-includes/l10n.php
WordPress __() function is used for translation but is in conflict with Magento 2. Therefore, we need to rewrite this function to make it compatible with Magento.

Please find this function at around line 201 and
replace:
function __( $text, $domain = 'default' ) {return translate( $text, $domain );}

with the following code

3. Session sharing additional setup

If you want to be sure about session sharing (especially when a user is logged in) between Magento and WordPress, you need to add the following code to Magento index.php file before the Bootstrap loader:

Where you have to replace “local.wordpress.com” domain with your WP domain and “/” with your WordPress path (path relative to the url).

4. Integration example with WP themes

We recommend using Genesis theme for WordPress to integrate the design with your Magento 2 theme. However, most other themes will work. To integrate make sure to copy header.php and footer.php to your Genesis child theme folder. In header.php you can remove the standard Genesis header and replace this with <?php echo m2i_get_header(); ?>. In footer.php you can remove the standard Genesis footer and replace this with <?php echo m2i_get_footer(); ?>. This will load both the header and footer of your Magento theme at the right location in your WordPress site.

Download a child theme example here: https://goo.gl/HCRFov

User Manual

Using the Magento 2 WordPress Integration plugin.

Please be aware: In most cases this plugin is not plug & play. You will need some basic knowledge of PHP to unlock the full potential of this plugin. In case you get stuck you can purchase additional support.

Functions you can use inside WP 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 Product Data as array: m2i_get_product($sku_or_id, $by_id = false)
  • Get Categories List as array: m2i_get_cat_collection($is_active = true, $level = false, $sort_by = false, $page_size = false)
  • Get Store Views List as array: m2i_get_stores()
  • Get Store Views List as array: m2i_get_blocks()
  • Get Customer Info as array: m2i_get_customer_info()
  • Get HTML content (as string) of the CMS block : m2i_get_cms_block($attrs), where $attrs[‘name’] is the name of the CMS block in your Magento 2
  • Get HTML content (as string) of the Cart: m2i_get_cart($attrs), if $attrs key ‘hide_if_empty’ is set it will be hidden if empty.

Shortcodes you can use in your WordPress editor:

  • Show Blocks by Name (like Static Blocks):  [m2i-cms-block name="<em>name_in_layout</em>"]
  • Show Product Slider (like Static Blocks):  [m2i_category_slider cats_ids="1,2,5" dom_id="name" qty="# of products in slider" margin="10"]
  • Show Single Simple Product: [m2i_product_block id="product id"] or [m2i_product_block sku="product sku"]
  • Show Cart: [m2i_cart] or [m2i_cart hide_if_empty]

What settings should I use?

Should I use ‘Magento layout approach’ or ‘DOM approach’?

We recommend using the Magento layout approach. This approach will use Magento API to return a RESPONSE-HTTP-object with all the html code that needs to be included in your WordPress site. In case you cannot get this approach to work, we have build a backup feature which is using PHP DOM approach. When you disable the ‘Use Magento layout’ checkbox, the DOM approach will try to call the Magento frontend and include/exclude items by looking at the DOM object. This approach is slower and also non-elegant/buggy. So always try to use the Magento layout approach please until you get stuck.

Add header/footer automatically. What does it do?

This setting will only work for some templates. We don’t recommend using this setting, it is only for non-developers without coding skills and it will only work for HTML5 templates. What it does is to look for the first occurrence of <header> or <footer> in your WordPress templates and it will hook the contents of the specified header and footer blocks inside there (the ones you specified in the dropdown settings below it).

What are the options ‘include CSS/JS files’ for?

Sometimes you might have an incompatibility issue with WordPress and Magento JS. In some situations you can exclude the JS/CSS files from your header when we ‘import’ the header/footer from Magento. This way you have more control over it and can manually include these files where needed.

I am getting an error when I set the absolute path

– Please verify that you have applied the patch to WordPress as explained above
– Make sure that your PHP webserver user (or Linux user) has webserver rights to read the magento directory
– We only support best practice setup of Magento 2. Please make sure that you set magento/pub/ directory as webroot (http://magento.stackexchange.com/questions/98558/why-magento-2-have-2-possible-root-folder)
– Check permissions rights and chmod settings
– Make sure to set your theme header and footer blocks (XML names) inside the plugin settings in the dropdowns

My absolute path in settings is correct but nothing is showing

– Make sure that you have set the dropdowns for header and footer in the plugin settings. These references are used to retrieve the header and footer with the m2i_get_header() and m2i_get_footer() functions.
– It could be that your Magento 2 theme is not supported by our plugin. Only themes that are well-written in a best practice approach are supported. You have to make sure that your blocks, headers, footers are declared in Magento XML layout files otherwise we cannot retrieve them. This is also true for static/cms blocks, if you declare them in a XML file you can load them in WordPress. Without declaring them you cannot retrieve them!

Auto-include header/footer feature is not working

Currently we recommend to turn of your header/footer auto inclusion setting in the WordPress plugin settings. This feature is experimental and if it does not work than it is better to turn it off and manually include header and footer with the approach discussed above.

I am getting a JS error with ‘select2.js’ in my WP admin panel

In our plugin there is a setting to exclude select2.js and select2.css from inclusion in the WordPress backend. After disabling your issue might be solved.

FAQ

Feel free to contact us if your question does not appear in this list.

How to install this plugin?

See the installation section on this page.

What version of Magento/WordPress do you support?

Magento 2 WordPress Integration is compatible out-of-the-box with Magento Open (Community), Magento Commerce (Enterprise) 2.1.x, 2.2.x, 2.3.x.. All WordPress versions 4.x and above are supported.

Does this plugin work with subdirectories and subdomains?

As long as your linux user and webserver user (www-data) has access to both the WordPress and Magento 2 installation it will work. We do recommend to make Magento 2 pub-directory the webroot and install WordPress in a subdirectory (install in magento/pub/blog/ for example). The other way around is also possible, make WordPress your main webroot and install Magento 2 in a subdirectory (we recommend creating a symbolic link for the subdir and your Magento 2 pub-dir so you keep your Magento root outside the public html folder).

Does this plugin support multi-stores?

Currently, we don’t support multi-stores in the most efficient and elegant way. To achieve multi-store blogs you can try the following work around. Create a separate WordPress installation for each store/language that you want to support or setup a WordPress multisite environment. Inside our plugin settings you can set a separate ‘Magento storeview’ for each site inside your WordPress. That way you can integrate separate languages or sites.

I am using a custom theme. Is it compatible with my theme?

We are compatible with all WordPress themes and most Magento themes, when they are written in a best practice approach. To integrate your Magento with WordPress you might need to do some debugging sometimes or you might need to rewrite some of the code. However, all major themes are supported out of the box.

Is this plugin compatible with other modules?

This plugin does not work inside Magento 2 so that means it is compatible with all Magento modules. However, it might not be compatible with all WordPress extensions. All major plugins are supported. In case you run into compatibility issues, please let us know and we will see if we can support that plugin.

Can I install this plugin on my test server?

You are allowed to install this plugin on your test server without having to purchase a license for both your live and test server. Production need always requires a license.

Is the license a monthly fee?

The fee that you pay for this plugin is a once-off fee for lifetime usage. No other cost included. Please note, for each WordPress installation you are require to purchase a separate license.

Is it possible to get my money back if it doesn’t work?

You can always get your money back in case our support is not able to fix the plugin on your installation. However, this only applies to installations where the requirements listed in the FAQ are met, and if the plugin after that still not works. You will have to complete the full FAQ and also allow us to resolve the issue for you. In case your server, installations or custom theme does not support our plugin because best practices were not met we cannot provide any refunds. We see that some people don’t setup their webserver in the right way or refrain from installing Magento 2 in the right way. In those cases we cannot provide any refunds. Be aware that we have to deal with piracy of the plugin and that means we have to watch our with our refund policy. But if the plugin is clearly not working due to our mistake or lack of support we can always provide a refund. We are nice guys 🙂

I still have questions about the plugin, can you help me?

Of course we can. If you checked out all the info above and when you are sure you installed WordPress and Magento 2 in best practice and professional approach we will help you as part of our support. However, we cannot give you any support on how to install Magento 2 or WordPress, this is outside the scope of our support, even though we will point you in the right direction. Just make sure you read the manual above before asking any questions. Also, take note, there is no guarantee that this plugin will work with all extensions and themes since there are just too many around.

Convinced? Order now

Don’t wait any longer. Combine the power of Magento 2 with WordPress.

License Details

Expiration Never. (Lifetime license)
Limit Unlimited uses and activations.

Additional information

Compatible with WordPress:

All WordPress versions >= 4.0

Compatible with Magento:

Community 2.2, Community 2.3, Enterprise 2.2, Enterprise 2.3

Current Version

1.3.1

1 review for Magento 2 WordPress Integration Plugin

  1. Avatar

    VerifiedDennis

    We are relying on WordPress for SEO articles while we are using Magento for the actual sales. This plugin allowed us to integrate the design of both platforms within a few minutes.

Add a review

Your email address will not be published.

Post comment