Subversion Repositories wpShopGermany4

Rev

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

Rev 6891 Rev 7096
Line 27... Line 27...
27
        		<th class="col_artnr"><?php echo __('Artikelnummer', 'wpsg'); ?></th>
27
        		<th class="col_artnr"><?php echo __('Artikelnummer', 'wpsg'); ?></th>
28
        		<th class="col_price"><?php echo __('Preis', 'wpsg'); ?></th>
28
        		<th class="col_price"><?php echo __('Preis', 'wpsg'); ?></th>
29
        		
29
        		
30
				<?php if ($this->hasMod('wpsg_mod_stock')) { ?>
30
				<?php if ($this->hasMod('wpsg_mod_stock')) { ?>
31
        		<th class="col_stock"><?php echo __('Lagerbestand', 'wpsg'); $colspan ++; ?></th>
31
        		<th class="col_stock"><?php echo __('Lagerbestand', 'wpsg'); $colspan ++; ?></th>
-
 
32
		        <th class="col_stock col_min_stock"><?php echo __('Minimallagerbestand', 'wpsg'); $colspan ++; ?></th>
32
        		<?php } ?>
33
		        <?php } ?>
33
 
34
 
34
				<?php if ($this->hasMod('wpsg_mod_weight')) { ?>
35
				<?php if ($this->hasMod('wpsg_mod_weight')) { ?>
35
        		<th class="col_stock"><?php echo __('Gewicht', 'wpsg'); $colspan ++; ?></th>
36
        		<th class="col_stock"><?php echo __('Gewicht', 'wpsg'); $colspan ++; ?></th>
36
        		<?php } ?>
37
        		<?php } ?>
37
 
38
 
Line 44... Line 45...
44
		        <?php if (!wpsg_isSizedInt($this->view['product_id']) || wpsg_isSizedInt($this->view['variant']['product_id'])) { $colspan ++; ?>
45
		        <?php if (!wpsg_isSizedInt($this->view['product_id']) || wpsg_isSizedInt($this->view['variant']['product_id'])) { $colspan ++; ?>
45
			    <th class="col_action"></th>
46
			    <th class="col_action"></th>
46
		        <?php } ?>
47
		        <?php } ?>
47
        		
48
        		
48
      		</tr>
49
      		</tr>
49
    	</thead>    	
50
    	</thead>
50
    	<?php $i = 0; foreach ($this->view['arVariation'] as $vari) { $i ++; ?>
51
    	<?php $i = 0; foreach ($this->view['arVariation'] as $vari) { $i ++; ?>
51
    	<tbody id="vari_<?php echo $vari['id']; ?>">
52
    	<tbody id="vari_<?php echo $vari['id']; ?>">
52
    		<tr>    		
53
    		<tr>    		
53
    		
54
    		
54
    			<?php if (wpsg_isSizedInt($this->view['product_id'])) { ?>
55
    			<?php if (wpsg_isSizedInt($this->view['product_id'])) { ?>
Line 116... Line 117...
116
					    		product_id: jQuery('#wpsg_mod_productvariants_product_id').val(),
117
					    		product_id: jQuery('#wpsg_mod_productvariants_product_id').val(),
117
					    		field_id: '<?php echo $vari['id']; ?>'
118
					    		field_id: '<?php echo $vari['id']; ?>'
118
							}
119
							}
119
						});
120
						});
120
 
121
 
-
 
122
					    jQuery('#productvariation_min_stock_<?php echo $vari['id']; ?>').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_productvariants&subaction=admin_inlineEdit&noheader=1', {
-
 
123
						    submitdata: {
-
 
124
							    field: 'vari_min_stock',
-
 
125
							    product_id: jQuery('#wpsg_mod_productvariants_product_id').val(),
-
 
126
							    field_id: '<?php echo $vari['id']; ?>'
-
 
127
						    }
-
 
128
					    });
-
 
129
 
121
						jQuery('#productvariation_weight_<?php echo $vari['id']; ?>').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_productvariants&subaction=admin_inlineEdit&noheader=1', {
130
					    jQuery('#productvariation_weight_<?php echo $vari['id']; ?>').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_productvariants&subaction=admin_inlineEdit&noheader=1', {
122
							submitdata: { 
131
							submitdata: { 
123
					    		field: 'vari_weight',
132
					    		field: 'vari_weight',
124
					    		product_id: jQuery('#wpsg_mod_productvariants_product_id').val(),
133
					    		product_id: jQuery('#wpsg_mod_productvariants_product_id').val(),
125
					    		field_id: '<?php echo $vari['id']; ?>'
134
					    		field_id: '<?php echo $vari['id']; ?>'
126
							}
135
							}
Line 144... Line 153...
144
    			<td class="col_shortname"><span class="wpsg_editable" id="productvariation_shortname_<?php echo $vari['id']; ?>"><?php echo wpsg_hspc($vari['shortname']); ?></span></td>
153
    			<td class="col_shortname"><span class="wpsg_editable" id="productvariation_shortname_<?php echo $vari['id']; ?>"><?php echo wpsg_hspc($vari['shortname']); ?></span></td>
145
    			
154
    			
146
    			<?php if (wpsg_isSizedInt($this->view['product_id'])) { ?>
155
    			<?php if (wpsg_isSizedInt($this->view['product_id'])) { ?>
147
    			<td class="col_artnr"><span class="wpsg_editable" id="productvariation_anr_<?php echo $vari['id']; ?>"><?php echo wpsg_hspc($vari['anr']); ?></span></td>    			
156
    			<td class="col_artnr"><span class="wpsg_editable" id="productvariation_anr_<?php echo $vari['id']; ?>"><?php echo wpsg_hspc($vari['anr']); ?></span></td>    			
148
    			<td class="col_price"><span class="wpsg_editable" id="productvariation_price_<?php echo $vari['id']; ?>"><?php echo wpsg_hspc(wpsg_ff($vari['price'], $this->get_option('wpsg_currency'))); ?></span></td>
157
    			<td class="col_price"><span class="wpsg_editable" id="productvariation_price_<?php echo $vari['id']; ?>"><?php echo wpsg_hspc(wpsg_ff($vari['price'], $this->get_option('wpsg_currency'))); ?></span></td>
149
 
158
 
150
				<?php if ($this->hasMod('wpsg_mod_stock')) { ?>
159
				<?php if ($this->hasMod('wpsg_mod_stock')) { ?>
151
    			<td class="col_stock"><span class="wpsg_editable" id="productvariation_stock_<?php echo $vari['id']; ?>"><?php echo wpsg_hspc($vari['stock']); ?></span></td>
160
    			<td class="col_stock"><span class="wpsg_editable" id="productvariation_stock_<?php echo $vari['id']; ?>"><?php echo wpsg_hspc($vari['stock']); ?></span></td>
-
 
161
    			<td class="col_stock"><span class="wpsg_editable" id="productvariation_min_stock_<?php echo $vari['id']; ?>"><?php echo wpsg_hspc($vari['min_stock']); ?></span></td>
152
        		<?php } ?>
162
        		<?php } ?>
153
 
163
 
154
				<?php if ($this->hasMod('wpsg_mod_weight')) { ?>
164
				<?php if ($this->hasMod('wpsg_mod_weight')) { ?>
155
    			<td class="col_stock"><span class="wpsg_editable" id="productvariation_weight_<?php echo $vari['id']; ?>"><?php echo wpsg_hspc($vari['weight']); ?></span></td>
165
    			<td class="col_stock"><span class="wpsg_editable" id="productvariation_weight_<?php echo $vari['id']; ?>"><?php echo wpsg_hspc($vari['weight']); ?></span></td>
156
        		<?php } ?>
166
        		<?php } ?>