Hallo Osworx,
hab die Verschiebungen gemacht, und nach diversen Kleinigkeiten, die noch zusätzlich notwendig waren, folgender Stand:
Code: Select all
// ANFANG - Anzeige T&C inkl. Checkbox
$this->data['button_continue'] = $this->language->get('button_continue');
if (!$json) {
if ($this->config->get('config_checkout_id')) {
$this->load->model('catalog/information');
$information_info = $this->model_catalog_information->getInformation($this->config->get('config_checkout_id'));
if ($information_info) {
$this->data['text_agree'] = sprintf($this->language->get('text_agree'), $this->url->link('information/information/info', 'information_id=' . $this->config->get('config_checkout_id'), 'SSL'), $information_info['title'], $information_info['title']);
} else {
$this->data['text_agree'] = '';
}
} else {
$this->data['text_agree'] = '';
}
if (isset($this->session->data['agree'])) {
$this->data['agree'] = $this->session->data['agree'];
} else {
$this->data['agree'] = '';
}
}
$this->response->setOutput(json_encode($json));
// ENDE - Anzeige T&C inkl. Checkbox
Code: Select all
<?php if ($text_agree) { ?>
<div class="buttons">
<div class="right"><?php echo $text_agree; ?>
<?php if ($agree) { ?>
<input type="checkbox" name="agree" value="1" checked="checked" style="float:none;" />
<?php } else { ?>
<input type="checkbox" name="agree" value="1" style="float:none;" />
<?php } ?>
<input type="button" value="<?php echo $button_continue; ?>" id="button-payment-method" class="button colorButton remove-bottom" />
</div>
</div>
<?php } else { ?>
<?php } ?>
<script type="text/javascript"><!--
$('.colorbox').fancybox({
width:560,
height:560,
autoDimensions: false
});
//--></script>
Jetzt ist im Schritt 6 unter der Produktauflistung und über dem "Kaufen"-Button folgendes zu sehen:
Die Terms & Conditions habe ich gelesen und bin einverstanden. [ ] "Weiter"
Also gewünschter Text, Checkbox und Button. Soweit so gut. Jetzt scheitere ich an der Überprüfung.
Im Schritt 5 wird ja eine Warnmeldung ausgegeben, wenn die Checkbox nicht angehakt wurde. Bei mir im Schritt 6 funktioniert dies noch nicht. Ich kann die Checkbox anhaken und auf den Button "Weiter", dann wird der Haken in der Checkbox lediglich gelöscht, keine Warnmeldung...
Was muss ich in config.php und ggf. in config.tpl noch ändern / ergänzen, damit die Prüfung funktioniert und der "Weiter"-Button den "Kaufen"-Button ersetzt?
Gruß
Andreas
P.S.: Ist vielleicht auch für Dein Modul "Legal" interessant...