Enabling decimal quantities on your Webstore

Background
The stores implement decimal quantities by providing a drop-down box on product and basket pages.
This article explains how to enable the display of decimal quantities on your store.

Using NSc PAM to define decimals that items are to be sold by
RMS doesn’t have native support for fractional quantities. We therefore use a Nitrosell tool, NSc PAM, to give items a value representing the fraction that you want to sell items by. Please follow the following steps to get this done:

  • Using the menu option ‘Attribute’ and selecting the option ‘Add new attribute…’ [Picture A];


Picture A

  • Name your new attribute (I called mine ‘Fractions’) and ensure that the ‘Attribute Type’ drop down box has ‘String’ selected [Picture B];


Picture B

  • Press OK.

PAM should show you a new attribute column named as you chose. Now enter values against all the items that you wish to be sold in fractions. Valid values are either:

  • an empty box for items you want sold in whole units;
  • ‘d’ or ‘dec’ or 'decimal’ if you want the item sold in decimals [Picture C].


Picture C

Once you have assigned values, ensure you commit the changes to your database by clicking the ‘Commit Changes’ button!

Map the PAM fields to a custom text field using NScSync
Now that your RMS database has values for items, you need to upload this to your webstore. This is done using NSc Sync:

  • Open the configuration window;
  • Select ‘Field Mapping’;
  • Open the ‘Item menu’ on the right;
  • Check if you are already using a product_weblinxcustomtext field, this will be near the bottom of the item list. You do NOT want to write over any field you are already using for something else!
  • Right click on white space to open a contextual menu. You want to select ‘Add Field’->‘PAM Field…’. This opens a new window called ‘Add Item Field’ [Picture D].


Picture D

  • Under ‘Remote Field Name’ add ‘product_weblinxcustomtext#’ where # is a number between 1 and 5 that you have not already used (as checked in step 4 above) [Picture E];


Picture E

  • Click OK on the Add Item field window;

  • Finally, press all relevant OK’s to return to main NSc Sync window and press “Synchronize”. This will push all the changes to your webstore.

Enabling fractional quantities in Web Store Manger
Now that the webstore has been synched, we must enable the option in WSM. Select Settings -> All Config Options.

  • Search for “Enable fractional quantities”

  • Click the checkbox and select the customtextfield you have mapped your fractional quantities to. In this example we used product_weblinxcustomtext1. [Picture G]


Picture G

  • Save your choice

Default incrementation step for items sold in decimal quantities is set to 0.5 [Picture H].


Picture H

You can, however, set a custom step. To do that, please follow the procedure described in this article.
You may also consider enabling minimum or maximum purchasable amounts for items you sell by decimal quantities.

Caution!
You may notice the incrementation step changes as you enable and disable options listed above. Please see below for detailed description:

  • if “Enable fractional quantities” option is enabled and set to support decimal quantities AND “Set incrementation step for decimal quantities” option is disabled AND “Set minimum purchase quantity” option is disabled THEN incrementation step is set to 0.5;

  • if “Enable fractional quantities” option is enabled and set to support decimal quantities AND “Set incrementation step for decimal quantities” option is enabled AND “Set minimum purchase quantity” option is disabled THEN incrementation step is set to the value you enabled in “Set incrementation step for decimal quantities” option;

  • if “Enable fractional quantities” option is enabled and set to support decimal quantities AND “Set incrementation step for decimal quantities” option is disabled AND “Set minimum purchase quantity” option is enabled THEN incrementation step is set to the minimum purchasable quantity;

2 Likes