Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class RRShopCheckoutControllerExtension extends DataExtension {
- public function updateCheckoutForm($form) {
- $text = ShopConfig::current_shop_config()->DSGVOCheckoutText;
- if ($text) {
- $fields = $form->Fields();
- $validator = $form->getValidator();
- $fields->push(CheckboxField::create('DSGVO', $text));
- $validator->addRequiredField('DSGVO');
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement