In this example we are going to sell tiles asking to the customer the size of floor, then we are going to translate to required boxes.
We are going to use the function CFO_SetOptionValue to add some texts to the product after it’s added to the cart, in order to clarify the purchase.
We have a product with three options “Floor Width” and “Floor Height”, and a text option called “Purchase details” with a special trick that hides this option in the product form.
To hide a textbox, set it up with “*CFOHideOption*” as initial value, you can login as admin in our store to see how it’s done (demo / demo)
Then we are going to use this hidden field to add details of the purchase.
Testing the product in our demo store
Take a look at the formula, the key is at the end, below “Making up Texts”
Then try to add to cart with sample values, let’s say 250 x 500 cm.
See in the cart how we have added “cm” to each size value and a text clarifying the number of boxes we are going to send.
Read about Rounding your calculations and CFO_SetOptionValue