Home : OpenEdit SDK : Programming OpenEdit : ECommerce Setup : Product Options
Product Options
Setup
To add options to a product you can create a product xconf that looks like this:
<page>
<product name="Car" id="car" ordering="-1" available="TRUE">
<item sku="car-1" inventory="13">
<color/>
<size/>
<price quantity="1">5,999.99</price>
</item>
<catalog id="transportation" default="true"/>
<option id="air" name="Air Condition">
<price quantity="1">200.00</price>
</option>
<option id="Padded" name="Padded Arms">
<price quantity="1">22.00</price>
</option>
</product>
</page>
You can see an example of it here:
[http://demo.openedit.org/acme/store/products/car.html]
Inputs
<option id="domainname" name="Domain Name"><price quantity="1">0.00</price>
</option>
Then create your own /store/layout/productoptions.html page that something like this in it:
#foreach( $option in $product.getAvailableOptions() )
<input type=text name="option.${option.id}" size="20"/><br>
#end
