Subversion Repositories wpShopGermany4

Rev

Rev 7210 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7210 Rev 7974
Line 41... Line 41...
41
    
41
    
42
    <?php echo wpsg_drawForm_Input('add_price', __('Produktpreis', 'wpsg').' '.(($this->getBackendTaxView() === WPSG_BRUTTO)?'(BRUTTO)':'(NETTO'), wpsg_ff((($oOrderProduct !== false)?$oOrderProduct->getPrice($this->getBackendTaxView()):$oProduct->getPrice($this->getBackendTaxView())), $this->get_option('wpsg_currency'))); ?>
42
    <?php echo wpsg_drawForm_Input('add_price', __('Produktpreis', 'wpsg').' '.(($this->getBackendTaxView() === WPSG_BRUTTO)?'(BRUTTO)':'(NETTO'), wpsg_ff((($oOrderProduct !== false)?$oOrderProduct->getPrice($this->getBackendTaxView()):$oProduct->getPrice($this->getBackendTaxView())), $this->get_option('wpsg_currency'))); ?>
43
    <?php echo wpsg_drawForm_Input('add_amount', __('Menge', 'wpsg'), (($oOrderProduct !== false)?$oOrderProduct->getCount():'1')); ?>
43
    <?php echo wpsg_drawForm_Input('add_amount', __('Menge', 'wpsg'), (($oOrderProduct !== false)?$oOrderProduct->getCount():'1')); ?>
44
    <?php echo wpsg_drawForm_Checkbox('add_eu',__('EU-Leistungsortregel anwenden', 'wpsg'),(($oOrderProduct !== false)?$oOrderProduct->euleistungsortregel:'1')) ?>
44
    <?php echo wpsg_drawForm_Checkbox('add_eu',__('EU-Leistungsortregel anwenden', 'wpsg'),(($oOrderProduct !== false)?$oOrderProduct->euleistungsortregel:'1')) ?>
45
	
45
	
-
 
46
    <?php if ($this->hasMod('wpsg_mod_scaleprice')) { ?>
-
 
47
        <?php if ($this->callMod('wpsg_mod_scaleprice', 'product_has_scaleprice', [$oProduct->getId()])) { ?>
-
 
48
            
-
 
49
            <?php echo wpsg_drawForm_Checkbox('set_scaleprice', __('Produktpreis anhand Preisstaffel ermitteln', 'wpsg'), false); ?>
-
 
50
            
-
 
51
            <script>
-
 
52
                
-
 
53
                document.getElementById('set_scaleprice').addEventListener('change', (event) => {
-
 
54
					
-
 
55
					if (event.target.checked) {
-
 
56
						
-
 
57
						document.getElementById('add_price').setAttribute('disabled', 'disabled');
-
 
58
						
-
 
59
                    } else {
-
 
60
						
-
 
61
						document.getElementById('add_price').removeAttribute('disabled');
-
 
62
						
-
 
63
                    }
-
 
64
					
-
 
65
                });
-
 
66
                
-
 
67
            </script>
-
 
68
            
-
 
69
        <?php } ?>
-
 
70
    <?php } ?>
-
 
71
    
46
    <?php if ($this->callMod('wpsg_mod_productvariants', 'isVariantsProduct', [$oProduct->id])) { 
72
    <?php if ($this->callMod('wpsg_mod_productvariants', 'isVariantsProduct', [$oProduct->id])) { 
47
    	
73
    	
48
    	$arVariants = $this->callMod('wpsg_mod_productvariants', 'getVariants', [$oProduct->id, true, true, true]); 
74
    	$arVariants = $this->callMod('wpsg_mod_productvariants', 'getVariants', [$oProduct->id, true, true, true]); 
49
    	
75
    	
50
    	if ($oOrderProduct !== false) $arVariantenInfoArray = $this->callMod('wpsg_mod_productvariants', 'getVariantenInfoArray', [$oOrderProduct->getProductKey()]);
76
    	if ($oOrderProduct !== false) $arVariantenInfoArray = $this->callMod('wpsg_mod_productvariants', 'getVariantenInfoArray', [$oOrderProduct->getProductKey()]);