This is a demo site to showcase the power and functionality of the “MWI” plugin, for easy integration between your Magento store and your WordPress website.
Demo Versions: WordPress 3.8, Magento 18.104.22.168, Latest MWI
WordPress is installed under “demo.mwi-plugin.com”, and Magento is installed under “demo.mwi-plugin.com/shop”. The two platforms must reside on the same host, but they could be in subfolders or subdomains – as long as they share the same server root.
This plugin is not meant to be used as a replacement for Magento, instead it will allow you to theme the two platforms more closely, and create a seamless user experience for your website users.
Below I have called a variety of the default blocks from Magento.
<?php the_block('top.links'); ?>
<?php the_block('store_language'); ?>
<?php the_block('catalog.topnav'); ?>
You have no items in your shopping cart.
<?php the_block('cart_sidebar'); ?>
<?php the_block('top.search'); ?>
<?php the_block('newsletter'); ?>
Custom Block from local.xml
This is a custom block, defined in app/design/frontend/default/modern/layout/local.xml, within the Modern Magento theme. This block could display anything I wanted.
The local.xml file looks like this:
<?xml version="1.0" encoding="UTF-8"?> <layout> <default> <reference name="root"> <block type="core/template" name="exampleBlock" as="exampleBlock" template="exampleBlock/exampleBlock.phtml"/> </reference> </default> </layout>
<?php the_block('exampleBlock'); ?>