diff options
| author | Daniel Schmitzer <noreply@maennchen1.de> | 2024-11-18 07:36:36 +0000 |
|---|---|---|
| committer | Daniel Schmitzer <noreply@maennchen1.de> | 2024-11-18 07:36:36 +0000 |
| commit | 2f9649c605bfafb9c205115a110fceb3068ab751 (patch) | |
| tree | eb80b01335a5f67a3cccc60de710ccc0220d2d9f /views/warenkorb/checkout.phtml | |
| parent | 479bd8b375aa031f2dc0a3750b1dd6c938ccfb6a (diff) | |
- Feature: eInvoice Rechnungsempfänger unabhängig von E-Mail des Kunden
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@8456 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/warenkorb/checkout.phtml')
| -rw-r--r-- | views/warenkorb/checkout.phtml | 32 |
1 files changed, 30 insertions, 2 deletions
diff --git a/views/warenkorb/checkout.phtml b/views/warenkorb/checkout.phtml index 6605b54..9a038cb 100644 --- a/views/warenkorb/checkout.phtml +++ b/views/warenkorb/checkout.phtml @@ -144,7 +144,14 @@ <label for="vname" class="wpsg_checkout"><?php echo __("Vorname:", "wpsg"); ?>
<?php if ($this->view['pflicht']['vname'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>
</label>
- <input class="<?php echo (($this->view['pflicht']['vname'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("vname", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="vname" name="wpsg[checkout][vname]" value="<?php echo htmlspecialchars(wpsg_getStr($this->view['basket']['checkout']['vname'])); ?>" />
+ <input
+ class="<?php echo (($this->view['pflicht']['vname'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("vname", (array)$this->view['error']))?'wpsg_error':''); ?>"
+ type="text"
+ id="vname"
+ autocomplete="vname"
+ name="wpsg[checkout][vname]"
+ value="<?php echo htmlspecialchars(wpsg_getStr($this->view['basket']['checkout']['vname'])); ?>"
+ />
</div>
<?php } ?>
@@ -153,7 +160,14 @@ <label for="name" class="wpsg_checkout"><?php echo __("Name:", "wpsg"); ?>
<?php if ($this->view['pflicht']['name'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>
</label>
- <input class="<?php echo (($this->view['pflicht']['name'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("name", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="name" name="wpsg[checkout][name]" value="<?php echo htmlspecialchars(wpsg_getStr($this->view['basket']['checkout']['name'])); ?>" />
+ <input
+ class="<?php echo (($this->view['pflicht']['name'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("name", (array)$this->view['error']))?'wpsg_error':''); ?>"
+ type="text"
+ id="name"
+ autocomplete="name"
+ name="wpsg[checkout][name]"
+ value="<?php echo htmlspecialchars(wpsg_getStr($this->view['basket']['checkout']['name'])); ?>"
+ />
</div>
<?php } ?>
@@ -191,6 +205,20 @@ <?php } ?>
<?php } ?>
+ <?php if (intval($this->view['pflicht']['eInvoice']??0) === 1) { ?>
+ <div class="wpsg_checkoutblock" id="wpsg_email_einvoice">
+ <label for="wpsg_email_einvoice_input" class="wpsg_checkout"><?php echo __("E-Mail (für eRechnung, optional)", "wpsg"); ?></label>
+ <input
+ class="wpsg_input_text wpsg_checkout <?php echo ((in_array("email_einvoice", (array)$this->view['error']))?'wpsg_error':''); ?>"
+ type="email"
+ id="wpsg_email_einvoice_input"
+ name="wpsg[checkout][email_einvoice]"
+ value="<?php echo htmlspecialchars($this->view['basket']['checkout']['email_einvoice']??''); ?>"
+ autocomplete="off"
+ />
+ </div>
+ <?php } ?>
+
<?php if ($this->view['pflicht']['geb'] != '2') { ?>
<div class="wpsg_checkoutblock" id="wpsg_geburtsdatum">
<label for="geb" class="wpsg_checkout"><?php echo __('Geburtsdatum (Format: TT.MM.JJJJ):',"wpsg"); ?>
|
