Rev 7596 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<?php
declare(strict_types=1);
/**
* User: Daschmi (daschmi@daschmi.de)
* Date: 25.10.2019
* Time: 09:35
*/
/** @var wpsg_product $oProduct */
$oProduct = $this->view['oProduct'];
$min = wpsg_tf($oProduct->__get('wpsg_mod_voucherproduct_flexprice_min'));
$max = wpsg_tf($oProduct->__get('wpsg_mod_voucherproduct_flexprice_max'));
if ($min > 0 && $max > 0) $strInterval = __('#1# bis #2# #3#', 'wpsg');
else if ($min > 0) $strInterval = __('Mindestens #1# #3#', 'wpsg');
else if ($max > 0) $strInterval = __('Maximal #2# #3#', 'wpsg');
else throw new \Exception(__('Systemfehler'));
$strInterval = wpsg_translate($strInterval, wpsg_ff($min), wpsg_ff($max), $this->get_option('wpsg_currency'));
?>
<div class="wpsg_product_buttonarea">
<label>
<strong><?php echo wpsg_translate(__('Gutscheinwert (#1#)', 'wpsg'), $strInterval); ?></strong><br />
<input class="wpsg_menge" type="text" name="wpsg_mod_voucherproduct_value" />
</label>
</div>
<div class="wpsg_clear"></div><br />