Moved Terms aggrement from account to order, display terms and conditions
This commit is contained in:
committed by
Julien Chanseaume
parent
9410881da9
commit
160ccaa4ff
@@ -86,17 +86,8 @@ class CustomerCreateForm extends AddressCreateForm
|
||||
"for" => "newsletter"
|
||||
),
|
||||
"required" => false
|
||||
))
|
||||
// Add terms & conditions
|
||||
->add("agreed", "checkbox", array(
|
||||
"constraints" => array(
|
||||
new Constraints\True(array("message" => Translator::getInstance()->trans("Please accept the Terms and conditions in order to register.")))
|
||||
),
|
||||
"label"=>"Test",
|
||||
"label_attr" => array(
|
||||
"for" => "agreed"
|
||||
)
|
||||
));
|
||||
|
||||
}
|
||||
|
||||
public function verifyPasswordField($value, ExecutionContextInterface $context)
|
||||
|
||||
@@ -43,9 +43,7 @@ class CustomerProfileUpdateForm extends CustomerCreateForm
|
||||
->remove("country")
|
||||
// Remove Login Information
|
||||
->remove("password")
|
||||
->remove("password_confirm")
|
||||
// Remove Terms & conditions
|
||||
->remove("agreed");
|
||||
->remove("password_confirm");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -50,6 +50,16 @@ class OrderPayment extends FirewallForm
|
||||
)
|
||||
))
|
||||
)
|
||||
))
|
||||
// Add terms & conditions
|
||||
->add("agreed", "checkbox", array(
|
||||
"constraints" => array(
|
||||
new Constraints\True(array("message" => Translator::getInstance()->trans("Please accept the Terms and conditions in order to register.")))
|
||||
),
|
||||
"label"=>"Agreed",
|
||||
"label_attr" => array(
|
||||
"for" => "agreed"
|
||||
)
|
||||
));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user