Quick instructions for integrating your web site design into Modern Merchant
These instructions apply to Modern Merchant version 0.5.3 and later.
Prerequisites:
To integrate your site design, you must create a new Modern Merchant "theme". A theme is a collection of files that define the basic look & feel of the web site. At its minimum, it must have a layout.php file that defines the skeleton of the web site's layout.
- From FTP: In mm/themes, create a new folder that will be the name of your new theme. It is a good idea to keep the name of the folder all lower-case letters, no spaces.
- Copy the entire contents of mm/themes/default into your new folder
- In the Modern Merchant administrator interface, select the "Configuration" -> "Themes" menu item.
- Find your theme by its name in the list. Click "select" next to it.
- Rename the layout.php file in your theme folder to layout_old.php. Copy your original home page file (e.g., index.html) to your them folder and name it layout.php. Visit the front of your site. You should see your home page.
- Open up layout_old.php in a text editor. Notice the parts of the file where there are tags that start with <?php, and end with ?>. They're kind of like HTML tags, except they insert dynamic content into the document. If you're not familiar with PHP, these are PHP tags. You will carefully copy the PHP tags to your layout.php document. Many of the PHP tags you copy will need to replace content already in your layout.php. That content will be different from page to page. To be continued...