Subversion Repositories wpShopGermany4

Rev

Rev 7596 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
7589 daniel 1
<?php
2
 
3
	declare(strict_types=1);
4
 
5
	/**
7787 daniel 6
	 * User: Daschmi (https://daschmi.de)
7589 daniel 7
	 * Date: 25.10.2019
8
	 * Time: 09:35
9
	 */
10
 
11
	/** @var wpsg_product $oProduct */
12
	$oProduct = $this->view['oProduct'];
13
 
14
    $min = wpsg_tf($oProduct->__get('wpsg_mod_voucherproduct_flexprice_min'));
15
    $max = wpsg_tf($oProduct->__get('wpsg_mod_voucherproduct_flexprice_max'));
16
 
17
    if ($min > 0 && $max > 0) $strInterval = __('#1# bis #2# #3#', 'wpsg');
7596 daniel 18
    else if ($min > 0) $strInterval = __('ab #1# #3#', 'wpsg');
19
	else if ($max > 0) $strInterval = __('bis #2# #3#', 'wpsg');
20
	else $strInterval = "";
7589 daniel 21
 
22
	$strInterval = wpsg_translate($strInterval, wpsg_ff($min), wpsg_ff($max), $this->get_option('wpsg_currency'));
23
 
24
?>
25
 
26
<div class="wpsg_product_buttonarea">
27
	<label>
28
		<strong><?php echo wpsg_translate(__('Gutscheinwert (#1#)', 'wpsg'), $strInterval); ?></strong><br />
29
		<input class="wpsg_menge" type="text" name="wpsg_mod_voucherproduct_value" />
30
	</label>
31
</div>
32
 
33
<div class="wpsg_clear"></div><br />