Differences

This shows you the differences between two versions of the page.

Link to this comparison view

ttg_ce2_cart_extra_fields [2011/12/01 22:37]
matthew created
ttg_ce2_cart_extra_fields [2011/12/01 22:42] (current)
matthew
Line 5: Line 5:
 {{:e-commerce-plugins:checkout.png?|Cart checkout}} {{:e-commerce-plugins:checkout.png?|Cart checkout}}
  
-Extra fields added to the Checkout page.  Remove or add as necessary The 'title' is the field name that appears on the form.  Set required to 'yesor 'no' to control mandatory fields The 'errormessageis displayed when a mandatory field has been left empty. +While Name and Email Address are always required by the cart, users may add any number of additional fields or remove fields they find unnecessaryThis is accomplished from within the ''%%settings.php%%'' file, in the section labeled EXTRA FIELDSBy defaultthe cart includes these additional fields, which also serve as examples:
- +
-An optional field'inputname'can be supplied to override the parameter name (which by default is based on the title).  This is to resolve issues such as punctuation preventing the form from functioning correctly. +
  
 +<code>
 additionalfield=title=Address|required=no additionalfield=title=Address|required=no
 additionalfield=title=Contact number|required=yes|errormessage=Contact number is required additionalfield=title=Contact number|required=yes|errormessage=Contact number is required
 additionalfield=title=Additional requests|required=no|inputname=additionalrequest additionalfield=title=Additional requests|required=no|inputname=additionalrequest
 +</code>
 +
 +The 'title' is the field name that appears on the form.  Set required to 'yes' or 'no' to control mandatory fields.  The 'errormessage' is displayed when a mandatory field has been left empty.
 +
 +An optional field, 'inputname', can be supplied to override the parameter name (which by default is based on the title).  This is to resolve issues such as punctuation preventing the form from functioning correctly. 
 +
  
Print/export