Well, I guess I need a little help here. I have a customer that sells flooring. He wants to sell material in sqr-meters. Since these materials come in prepacked sizes I have to do a conversion here.

exp.: 12sqr-meters are needed but due to a packaging size of 5spr-meters, the customer would have to buy 3 packages.

Basically I want to round the quantity to the next multiple of some min-amount of the product.

What I did so far:

+ Added the fields: 'product_uom' , 'product_buy_multiple_of' to product-table and CSV-Table

+ Changed quantity from INT to DECIMAL(10,4)

+ Changed ereg calculations to allow for ',' and '.'

BUT:

I need those new fields in the cart. I kept on searching but I just can't find the file where to put those fields into the session. Using phpshop with debug turned on i see that there is an array storing typical product values -- but I just can't find the right file.

Any help would be appreciated.

Regards, Christian.