Installation of MTO

Here are the most important files for installation:

1. Create the app folder:

   app/code/local/Metrof

2. Copy "MadeToOrder", included in this package, to:

   app/code/local/Metrof

3. Create the teamplate folder "madetoorder" at :

   app/design/frontend/yourpackage/yourtheme/template/madetoorder/

4. Copy all the files in design/template/ into:

   app/design/frontend/yourpackage/yourtheme/template/madetoorder/

5. Copy design/layout/madetoorder.xml to:

   app/design/frontend/yourpackage/yourtheme/layout/

6. Copy install.files/Metrof_MadeToOrder.xml to:

   app/etc/modules/

6a. (Optional) Merge the contents of install.files/Metrof_MadeToOrder.xml into

   app/etc/modules/ instead of copying.

7. Edit your pricing sheet XML line in Model/Product.php around line 226 in method getPriceXml() if you want dynamic pricing.

Configuration of MTO

Once installed you should see a Made To Order tab on the system configuration page.

What you see in this screenshot is a definition of 2 dimensional attributes called mto_width and mto_height. These variables are defined as ranged type, this means that the store owner needs to define 3 product attributes for each variable (6 total).

  • mto_width_min
  • mto_width_max
  • mto_width_step
  • mto_height_min
  • mto_height_max
  • mto_height_step

After creating these attributes you need to add them to an attribute set.

Then, edit your product and set the min, max, and step values for that product

Once all this is done, the front-end should show this page:

Order by the Case Feature

Since a lot of manufacturers receive orders by the case, MTO offers an order by case count feature. If you add a case attribute to any simple product, the user will only have a selection of quantities in multiples of that value.

To turn on this feature, add the following XML into your design folder's layout/madetoorder.xml:

  <PRODUCT_TYPE_simple>
      <reference name="product.info">
          <action method="unsetChild"><name>product.info.simple</name></action>
          <block type="madetoorder/product_viewcasecount" name="product.info.simple" as="product_type_data" 
              template="madetoorder/product_view_type_simple.phtml"/>
      </reference>
 </PRODUCT_TYPE_simple>