Subversion Repositories wpShopGermany4

Rev

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

Rev 7261 Rev 7435
Line 79... Line 79...
79
 
79
 
80
	</div>
80
	</div>
81
 
81
 
82
	<?php if (wpsg_isSizedArray($this->view['arProducts'])) { ?>
82
	<?php if (wpsg_isSizedArray($this->view['arProducts'])) { ?>
83
 
83
 
84
		<?php $i = 0; foreach ($this->view['arProducts'] as $p) { $i ++; ?>
84
		<?php $i = 0; foreach ($this->view['arProducts'] as $p); $oProduct = wpsg_product::getInstance($p['product_key']); { $i ++; ?>
85
 
85
 
86
			<?php if (($i - 1) % $col == 0) { ?><div class="wpsg_mod_productindex_productrow"><?php } ?>
86
			<?php if (($i - 1) % $col == 0) { ?><div class="wpsg_mod_productindex_productrow"><?php } ?>
87
 
87
 
88
			<div class="wpsg_mod_productindex_product <?php echo (($i == sizeof($this->view['arProducts']))?'wpsg_mod_productindex_product_last':''); ?> <?php echo (($i == 1)?'wpsg_mod_productindex_product_first':''); ?>" style="width:<?php echo round((100 / $col), 2) ?>%;">
88
			<div class="wpsg_mod_productindex_product <?php echo (($i == sizeof($this->view['arProducts']))?'wpsg_mod_productindex_product_last':''); ?> <?php echo (($i == 1)?'wpsg_mod_productindex_product_first':''); ?>" style="width:<?php echo round((100 / $col), 2) ?>%;">
89
				<div class="wpsg_mod_productindex_product_inner">
89
				<div class="wpsg_mod_productindex_product_inner">
Line 133... Line 133...
133
							</div>
133
							</div>
134
						<?php } ?>
134
						<?php } ?>
135
 
135
 
136
						<?php /*Abfrage Preisanzeige nur für eingeloggte Benutzer START*/?>
136
						<?php /*Abfrage Preisanzeige nur für eingeloggte Benutzer START*/?>
137
						<?php if (($this->callMod('wpsg_mod_kundenverwaltung', 'isLoggedIn') && ($this->get_option('wpsg_mod_kundenverwaltung_preisAnzeige') == '1')) || ($this->get_option('wpsg_mod_kundenverwaltung_preisAnzeige') == '0')) { ?>
137
						<?php if (($this->callMod('wpsg_mod_kundenverwaltung', 'isLoggedIn') && ($this->get_option('wpsg_mod_kundenverwaltung_preisAnzeige') == '1')) || ($this->get_option('wpsg_mod_kundenverwaltung_preisAnzeige') == '0')) { ?>
-
 
138
							<?php if ($this->hasMod('wpsg_mod_discount') && $this->get_option('wpsg_mod_discount_productindex') == '1') { ?>
-
 
139
    							
-
 
140
    							<?php $oldPrice = $oProduct->getOldPrice();  ?>
-
 
141
                    			
-
 
142
                    			<?php if ($oldPrice !== false && $oldPrice != $oProduct->getPrice($this->view['data']['product_key'])) { ?>
-
 
143
                    				<span class="wpsg_mod_productview_newprice wpsg_mod_productview_price wpsg_mod_productview_current"><?php echo wpsg_ff($oProduct->getPrice($this->view['data']['product_key']), $this->get_option('wpsg_currency')); ?></span><br />
-
 
144
                    				<span class="wpsg_mod_productview_oldprice"><?php echo wpsg_ff($oldPrice, $this->get_option('wpsg_currency')); ?></span>
-
 
145
                    			<?php } else { ?>
-
 
146
                    				<span class="wpsg_mod_productview_price"><?php echo wpsg_ff($oProduct->getPrice($this->view['data']['product_key']), $this->get_option('wpsg_currency')); ?></span>
-
 
147
                    			<?php } ?>   
-
 
148
                    			            			
-
 
149
							<?php }else{?>
138
							<div class="wpsg_mod_productindex_price">
150
							<div class="wpsg_mod_productindex_price">
139
								<?php if ($p['min_preis'] == $p['max_preis']) { ?>
151
								<?php if ($p['min_preis'] == $p['max_preis']) { ?>
140
									<?php echo wpsg_ff($p['preis'], $this->get_option('wpsg_currency')); ?>
152
									<?php echo wpsg_ff($p['preis'], $this->get_option('wpsg_currency')); ?>
141
								<?php } else { ?>
153
								<?php } else { ?>
142
									<?php echo wpsg_translate(__('ab #1#', 'wpsg'), wpsg_ff($p['min_preis'], $this->get_option('wpsg_currency'))); ?>
154
									<?php echo wpsg_translate(__('ab #1#', 'wpsg'), wpsg_ff($p['min_preis'], $this->get_option('wpsg_currency'))); ?>
143
								<?php } ?>
155
								<?php } ?>
144
							</div>
156
							</div>
-
 
157
							<?php } ?>
145
							<?php if ($this->get_option('wpsg_kleinunternehmer')) { /* Kleinunternehmerregelung aktiviert START */ ?>
158
							<?php if ($this->get_option('wpsg_kleinunternehmer')) { /* Kleinunternehmerregelung aktiviert START */ ?>
146
							<div class="wpsg_produkt_preishinweis">
159
							<div class="wpsg_produkt_preishinweis">
147
								<?php echo wpsg_translate(__('#2# zzgl. #1#', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'">'.__('Versandkosten', 'wpsg').'</a>', '<a href="#kkhint" title="'.wpsg_hspc($this->get_option('wpsg_kleinunternehmer_text')).'">Endpreis</a>'); ?>
160
								<?php echo wpsg_translate(__('#2# zzgl. #1#', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'">'.__('Versandkosten', 'wpsg').'</a>', '<a href="#kkhint" title="'.wpsg_hspc($this->get_option('wpsg_kleinunternehmer_text')).'">Endpreis</a>'); ?>
148
							</div>
161
							</div>
149
							<?php } else { /* Kleinunternehmerregelung aktiviert ENDE */ ?>
162
							<?php } else { /* Kleinunternehmerregelung aktiviert ENDE */ ?>
Line 166... Line 179...
166
							<span class="wpsg_produkt_soldout"><?php echo __('Produkt ausverkauft', 'wpsg'); ?></span>
179
							<span class="wpsg_produkt_soldout"><?php echo __('Produkt ausverkauft', 'wpsg'); ?></span>
167
							<?php } else { ?>
180
							<?php } else { ?>
168
							<a class="wpsg_button" title="<?php echo __('Zur Detailseite des Produkts', 'wpsg'); ?>" href="<?php echo wpsg_url($p['url']); ?>"><?php echo __('Zum Produkt', 'wpsg'); ?></a>
181
							<a class="wpsg_button" title="<?php echo __('Zur Detailseite des Produkts', 'wpsg'); ?>" href="<?php echo wpsg_url($p['url']); ?>"><?php echo __('Zum Produkt', 'wpsg'); ?></a>
169
							<?php } ?>
182
							<?php } ?>
170
 
183
 
171
						</div>
184
						</div>		
172
 
-
 
173
					</div>
185
					</div>
174
					<div class="wpsg_clear"></div>
186
					<div class="wpsg_clear"></div>
175
				</div>
187
				</div>
176
			</div>
188
			</div>
177
 
189