Login | Forgot password | Register
What is OpenID?
OpenID is an Internet-wide identity system that allows you to sign in to many websites with a single account.
With OpenID, your ID becomes a URL (e.g. http://username.myopenid.com/). You can get a free OpenID for example from myopenid.com.
For more information visit the official OpenID site.
Archive
SilverStripe Forums » Archive » Form Fields
Our old forums are still available as a read-only archive.
|
Page:
1
|
Go to End | |
| Author | Topic: Form Fields | 397 Views |
-
Form Fields

18 August 2008 at 4:28am
Hi
I need to add a field to a product order form which editable by the user. To add extra detail about the product being bought. ie what colour is wanted.
Not quite sure how to adapt this and where to put it
class MyCustomRole extends DataObjectDecorator {
function augmentEcommerceFields(&$fields) {
// Returning users shouldn't be shown phone / email fields
if($this-owner->ID) {
$fields->removeByName('HomePhone');
$fields->removeByName('MobilePhone');
$fields->removeByName('Email');
}}
}
Thanks in advance
| 397 Views | ||
|
Page:
1
|
Go to Top |
Currently Online: cardinale, ikhwanb, spierala, RichardWGP, steeeo
Welcome to our latest member: RichardWGP

