Patchfinders's Fat Quarter Problem
The rules are:
1. Fat Quarters are ordered in integers only
2. Fat Quarters always cost 0.25 x unit price
3. 'Per metre' orders (not Fat Quarters) is allowed to one decimal place only. (i.e. 12.5m is OK but 12.75m is not allowed)
Example....
If the unit price is £13.25 and the customer orders 12.4 metres plus one Fat Quarter, the cost should be:
12.4 x £13.25 = £164.30
+
1 x 0.25 x £13.25 = £3.31
= £167.61
Once we have this working for one, then ALL the fabrics should be sold in this way.
-----
Secondly, the 'per metre' and 'per FQ' fields should be accessible at the 'listings view' stage as well as the product page.
-----
Here's a bit of background info so you understand it all better:
Here goes...
Patchfinders sells fabric from very long rolls of material. These rolls are about 44 inches wide.
(More info at http://quilting.about.com/od/stepbystepquilting/ss/fat_quarters.htm)
So, when someone buys one metre of fabric, they are actually buying a piece measuring 1.0 metre x 44 inches. One metre happens to be the minimum length for sale.
However, there is also another 'custom size' available. This is called the 'fat quarter' and, as you can see from the picture on this page, takes up half the width of the roll but only about 18 inches of the roll's length. As we sell in metres, we call it 0.5 metres of the roll's length and price it equal to one quarter of the unit price. (look at the picture - it is simple to figure out)
How Stock Levels are affected
What this means is, when someone buys a 'fat quarter' the inventory should reduce as follows:
- 1 x 'fat quarter' reduces the stock level by 0.5 metre
- 2 x 'fat quarters' ALSO reduces the stock level by 0.5 metre
- 3 x 'fat quarters' reduces the stock level by 1.0 metre
- 4 x 'fat quarters' ALSO reduces the stock level by 1.0 metre
- 5 x 'fat quarters' reduces the stock level by 1.5 metres
- 6 x 'fat quarters' ALSO reduces the stock level by 1.5 metres
- 7 x 'fat quarters' reduces the stock level by 2.0 metres
- 8 x 'fat quarters' ALSO reduces the stock level by 2.0 metres
- 9 x 'fat quarters' reduces the stock level by 2.5 metres
...etc..etc.
