Force Multiples - Miva Module

Introduction
Install
Admin - Global
Admin - Products
Templates & Tokens
How to get Support

Purpose of Module

The Force Multiples module allows you to require that certain products can only be purchased in certain increments. For instance, you may have a widget XYZ123 that is sold in packs of 4. Force Multiples can be used to require customers to purchase XYZ123 in multiples of 4 (4, 8, 12, etc). Any or all products in the store can be required to have multiples. Products not flagged as requiring multiples are not affected by the module.

Checks are performed when products are added to the basket, or when the quantity in the basket is changed. By default the error message, which tells the customer that they are attempting to add an invalid quantity, can appear on the product, category, basket, and search screens. The error message text and formatting is completely customizable.

Force Multiples is fully template-compatible, supporting templating systems such as OpenUI SuperMod, Dynamic Templates, Category and Product Page Templates, and OpenDesigner. Tokens are provided for the error message and for the multiple required for each product.

How to Install

Administrator Interface - Global Settings

To access the module's administration screens, click the System Extension Configuration link under your store. Then, on the right side, click the link labelled "Force Multiples". Customize the error message as desired. The field accepts HTML and there is no limit on the length.

Module Administration - Global Settings

Administrator Interface - Setting the Multiple for a Product

To specify that a product has to be purchased in multiples of a certain number, click Products on the left side, and browse or search for the product with which you wish to work. When you edit the product, there is a link (tab) across the top that says "Force Multiples". Click that link. Check the box and enter the multiple required for this product, then click the "Update" button. To remove the multiple from a product, simply uncheck the box and click the "Update" button.

Requiring a Product to be purchased in multiples

Using Force Multiples with Templating Systems

Force Multiples provides several OpenTokens for use with various templating systems. The OpenTokens provided are:

Before tokens can be used in most templating systems, Force Multiples must be registered as a third-party token. This is done in different locations depending on which templating system is in use. To register Force Multiples as a third-party OpenToken, log into Miva Merchant, click the triangle next to Stores, and then click the name of your store. Then on the right side, click the OpenUI Tokens link. Next, click the round "New" button. For module code, enter "NBFORCEMULT" (without the quotes), and for token, also enter "NBFORCEMULT" (without the quotes). To register Force Multiples as a third-party token with other templating sytems, please refer to those systems' documentation for instructions.

Now, within your templates, you can reference Force Multiples's tokens in the following manner:

%module|NBFORCEMULT|error%

(For Product and Category Page Templates, make sure to add an extra pipe as shown:

%module|NBFORCEMULT|error|%

The string after the last pipe ("|") character should be replaced with the appropriate token from the list above.

Support

For questions or problems with your Force Multiples module, please send email to support@netblazon.com.