diff options
| author | hartmut <noreply@maennchen1.de> | 2017-06-21 11:08:41 +0000 |
|---|---|---|
| committer | hartmut <noreply@maennchen1.de> | 2017-06-21 11:08:41 +0000 |
| commit | 067e84052f44f7199d4fb10befd9c441ebd8d610 (patch) | |
| tree | 7c324aec9149029ab85baf94c2f3ec81dd424769 /views/warenkorb | |
| parent | 2347725c60c11bad75711fc66337ae1595871a72 (diff) | |
Produktkategorie und Warenkorb responsive
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6338 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/warenkorb')
| -rw-r--r-- | views/warenkorb/basket.phtml | 145 |
1 files changed, 72 insertions, 73 deletions
diff --git a/views/warenkorb/basket.phtml b/views/warenkorb/basket.phtml index 3320550..0670534 100644 --- a/views/warenkorb/basket.phtml +++ b/views/warenkorb/basket.phtml @@ -3,23 +3,23 @@ /**
* Template für den Warenkorb
*/
-
+
//wpsg_debug($this->view['basket']);
//wpsg_debug($_SESSION);
//wpsg_debug($this->arShipping);
//wpsg_debug(__('Deutschland', 'wpsg'));
-
+
?>
<div class="wpsg wpsg_basket <?php echo ((isset($_REQUEST['wpsg_basket_ajax']))?'wpsg_basket_ajax':''); ?>">
-
+
<?php if ($this->hasMod('wpsg_mod_onepagecheckout') && ($this->get_option('wpsg_mod_onepagecheckout_basket') == 1)) { ?>
<?php } else {?>
<?php echo $this->writeFrontendMessage(); ?>
<?php } ?>
-
+
<?php $this->callMods('basket_top'); ?>
-
+
<?php if (sizeof($this->view['basket']['produkte']) > 0) { ?>
<?php if ($this->hasMod('wpsg_mod_onepagecheckout') && ($this->get_option('wpsg_mod_onepagecheckout_basket') == 1)) { ?>
@@ -30,28 +30,28 @@ <?php if (!isset($this->view['noFormTag'])) { ?>
<form id="wpsg_basket_form" name="wpsg_basket_form" method="post" action="<?php echo $this->getURL(wpsg_ShopController::URL_CHECKOUT); ?>">
<?php } ?>
-
+
<h2><?php echo __('Bestellte Produkte', 'wpsg'); ?></h2>
-
+
<div class="wpsg_spacer"></div>
-
+
<div class="basket_product_wrap">
-
+
<?php $i = 0; foreach ($this->view['basket']['produkte'] as $k => $product_data) { $i ++; ?>
<div class="basket_product_row">
-
+
<?php $this->view['$bPicture'] = false; ?>
<?php if ($this->get_option('wpsg_mod_produktbilder_basketimage') == '1' && $this->hasMod('wpsg_mod_produktbilder')) {
-
+
if (wpsg_isSizedString($product_data['varianten_image'])) $arImages = array($product_data['varianten_image']);
else $arImages = $this->callMod('wpsg_mod_produktbilder', 'getProduktBilder_MT', array($this->getProduktID($product_data['id'])));
-
+
?>
<div class="productimage">
<?php if (wpsg_isSizedString($arImages[0]['guid'])) { ?>
-
+
<?php
if (isset($product_data['product_key'])) {
$arr = $this->callMod('wpsg_mod_productvariants', 'getKombiVariImages', array($product_data['product_key']));
@@ -75,32 +75,32 @@ <?php } ?>
<div class="product_content">
-
+
<div class="product_name">
<?php if ($this->getProduktLink($product_data)) { ?>
<a href="<?php echo $this->getProduktLink($product_data); ?>"><?php echo wpsg_hspc((($product_data['detailname'] != '')?$product_data['detailname']:$product_data['name'])); ?></a>
<?php } else { ?>
<?php echo wpsg_hspc((($product_data['detailname'] != '')?$product_data['detailname']:$product_data['name'])); ?>
<?php } ?>
-
+
<?php if (wpsg_isSizedString($product_data['shortdesc'])) { ?>
<div class="product_shortdesc"><?php echo $product_data['shortdesc']; ?></div>
<?php } ?>
-
+
<a class="wpsg_basket_removelink" href="<?php echo $this->getRemoveLinkURL($product_data['product_index']); ?>" title="<?php echo __('Produkt aus dem Warenkorb entfernen', 'wpsg'); ?>" onclick="return confirm('<?php echo __('Sind Sie sich sicher, dass sie das Produkt aus dem Warenkorb entfernen möchten?', 'wpsg'); ?>');">
- <img src="<?php echo WPSG_URL; ?>views/gfx/bin_x.png" alt="<?php echo __('Löschen', 'wpsg'); ?>" />
+ <!-- <img src="<?php echo WPSG_URL; ?>views/gfx/bin_x.png" alt="<?php echo __('Löschen', 'wpsg'); ?>" /> -->
+ <span class="glyphicon glyphicon-trash"></span>
</a>
-
+
</div>
-
+
<div class="product_action">
<div class="title">
<?php echo __("Anzahl", "wpsg"); ?>
</div>
<div class="amount">
-
+
<input class="wpsg_form_submit_return" type="text" name="wpsg[menge][<?php echo $product_data['product_index']; ?>]" <?php echo ((wpsg_isTrue($product_data['oneOnly']) || wpsg_isSizedInt($product_data['basket_multiple'], 4))?'readonly="readonly"':''); ?> value="<?php echo wpsg_hspc($product_data['menge']); ?>" size="3" />
-
</div>
</div>
<div class="product_action">
@@ -119,10 +119,10 @@ <?php echo wpsg_ff($product_data['menge'] * $product_data['preis'], $this->get_option('wpsg_currency')); ?>
</div>
</div>
-
+
<?php if (sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
<div class="product_info">
- <div
+ <div
<?php if ($this->view['$bPicture'] == true) { ?>class="titlep"><?php } else { ?>class="title"><?php } ?>
<?php echo __("MwSt.", "wpsg"); ?>
</div>
@@ -132,25 +132,25 @@ <div class="dummyr">
<?php echo __(' '); ?>
</div>
-
+
</div>
<?php } ?>
<?php $strBasketRow = ''; ob_start(); $this->callMods('basket_row', array(&$product_data, $i)); $strBasketRow = ob_get_contents(); ob_end_clean(); ?>
<?php echo $strBasketRow; ?>
-
+
</div>
-
+
</div>
-
+
<?php } // foreach products ?>
-
+
</div>
-
+
<div class="basket_sum_wrap">
-
+
<?php $this->callMods('basket_row_afterproducts', array(&$p, $i)); ?>
-
+
<?php $bLine = false; ?>
<?php if (isset($this->view['basket']['gs'])) { $bLine = true; ?>
<div class="basket_sum_row">
@@ -158,8 +158,9 @@ <?php echo __('Gutschein', 'wpsg'); ?> <?php echo ($this->view['basket']['gs']['code'] != '')? '('.$this->view['basket']['gs']['code'].')':'' ?>
</div>
<div class="wpsg_basket_removelink">
- <a href="<?php echo str_replace('&', '&', $this->getRemoveLinkURL('gs')); ?>" title="<?php echo __('Gutschein aus dem Warenkorb entfernen', 'wpsg'); ?>" onclick="return confirm('<?php echo __('Sind Sie sich sicher, dass sie den Gutschein aus dem Warenkorb entfernen möchten?', 'wpsg'); ?>');">
- <img src="<?php echo WPSG_URL; ?>views/gfx/bin_x.png" alt="<?php echo __('Löschen', 'wpsg'); ?>" />
+ <a class="wpsg_basket_removelink" href="<?php echo str_replace('&', '&', $this->getRemoveLinkURL('gs')); ?>" title="<?php echo __('Gutschein aus dem Warenkorb entfernen', 'wpsg'); ?>" onclick="return confirm('<?php echo __('Sind Sie sich sicher, dass sie den Gutschein aus dem Warenkorb entfernen möchten?', 'wpsg'); ?>');">
+ <!-- <img src="<?php echo WPSG_URL; ?>views/gfx/bin_x.png" alt="<?php echo __('Löschen', 'wpsg'); ?>" /> -->
+ <span class="glyphicon glyphicon-trash"></span>
</a>
</div>
</div>
@@ -179,7 +180,7 @@ <div class="colgsr"><?php echo '-'.wpsg_ff($this->view['basket']['sum']['gs'], $this->get_option('wpsg_currency')); ?></div>
</div>
<?php } ?>
-
+
<div class="basket_sum_row">
<?php if (isset($this->view['basket']['sum']['preis_rabatt']) && wpsg_tf($this->view['basket']['sum']['preis_rabatt']) > 0) { ?>
<div class="title">
@@ -206,7 +207,7 @@ <?php echo wpsg_translate(__('Summe (zzgl. #1#)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'">'.__('Versandkosten', 'wpsg').'</a>'); ?>:
<?php } else { ?>
<?php if ($this->getFrontendTaxview() == WPSG_NETTO) { ?>
- <?php echo wpsg_translate(__('Summe (zzgl. #1#, zzgl. MwSt.)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'">'.__('Versandkosten', 'wpsg').'</a>'); ?>:
+ <?php echo wpsg_translate(__('Summe (zzgl. #1#, zzgl. MwSt.)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'">'.__('Versandkosten', 'wpsg').'</a>'); ?>:
<?php } else { ?>
<?php echo wpsg_translate(__('Summe (zzgl. #1#, inkl. MwSt.)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'">'.__('Versandkosten', 'wpsg').'</a>'); ?>:
<?php } ?>
@@ -216,7 +217,7 @@ <?php echo wpsg_ff($this->view['basket']['sum']['preis'], $this->get_option('wpsg_currency')); ?>
</div>
</div>
-
+
<div class="basket_sum_row">
<div class="title">
<?php echo wpsg_translate(__('<a href="#1#">Versandkosten</a>:', 'wpsg'),
@@ -248,15 +249,15 @@ <?php if (sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') {
if (isset($this->view['basket']['shipping']['tax_rata']) && $this->view['basket']['shipping']['tax_rata'] === true)
{
-
+
echo __('anteilig', 'wpsg');
-
+
}
else if (array_key_exists($this->view['basket']['checkout']['shipping'], $this->arShipping))
{
-
+
echo wpsg_ff($this->arShipping[$this->view['basket']['checkout']['shipping']]['mwst_value'], '%');
-
+
}
}
?>
@@ -265,7 +266,7 @@ <?php echo wpsg_ff($this->view['basket']['sum']['preis_shipping'], $this->get_option('wpsg_currency')); ?>
</div>
</div>
-
+
<?php /* Zeile für Zahlungsart BEGIN */ ?>
<?php if (!$this->hasMod('wpsg_mod_crefopay')) { ?>
<div class="basket_sum_row">
@@ -286,20 +287,20 @@ </div>
<div class="value">
<?php if (sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') {
-
+
if (isset($this->view['basket']['payment']['tax_rata']) && $this->view['basket']['payment']['tax_rata'] === true)
{
-
+
echo __('anteilig', 'wpsg');
-
+
}
else if (array_key_exists(wpsg_getStr($this->view['basket']['checkout']['payment']), $this->arPayment))
{
-
+
echo wpsg_ff($this->arPayment[$this->view['basket']['checkout']['payment']]['mwst_value'], '%');
-
+
}
-
+
} ?>
</div>
<div class="value">
@@ -359,44 +360,42 @@ </div>
<div class="wpsg_spacer"></div>
<?php } ?>
-
+
<?php $this->callMods('basket_row_end', array(&$this->view)); ?>
-
+
<br />
<div class="wpsg_spacer"></div>
<?php $this->callMods('basket_inner_prebutton', array(&$this->view)); ?>
-
+
</div>
-
+
<input type="hidden" name="wpsg_basket_submit" value="1" />
-
+
<input type="submit" class="wpsg_button wpsg_refreshbutton" value="<?php echo __('aktualisieren', 'wpsg'); ?>" name="wpsg_basket_refresh" />
<?php if ($this->hasMod('wpsg_mod_onepagecheckout') && ($this->get_option('wpsg_mod_onepagecheckout_basket') == 1)) { ?>
<?php } else { ?>
<input type="submit" class="wpsg_button wpsg_checkoutbutton" value="<?php echo __('zur Kasse', 'wpsg'); ?>" name="wpsg_checkout" />
-
+
<br /><br />
-
- <a href="<?php echo WPSG_URL_WP;?>" class="wpsg_basket_weiter_shoppen"><?php echo __('weiter shoppen', 'wpsg'); ?></a>
+
+ <a href="<?php echo WPSG_URL_WP;?>" class="wpsg_basket_weiter_shoppen2"><?php echo __('weiter shoppen', 'wpsg'); ?></a>
<?php } ?>
<div class="wpsg_clear"></div>
-
+
<?php $this->ClearSessionErrors(); ?>
<?php if (!isset($this->view['noFormTag'])) { ?>
</form>
<?php } ?>
-
+
<br />
<?php $this->callMods('basket_after', array(&$this->view)); ?>
-
- <br />
<?php } else { ?>
<p><?php echo __('Keine Produkte im Warenkorb.', 'wpsg'); ?></p>
<?php } ?>
-
+
</div>
<script type="text/javascript">/* <![CDATA[ */
@@ -411,38 +410,38 @@ {
jQuery('.wpsg_refreshbutton').click(); return false;
-
+
}
-
+
} );
-
+
jQuery('.wpsg_form_submit').bind('change', function() {
-
+
jQuery('.wpsg_refreshbutton').click();
-
+
} );
jQuery('#set_land').bind('change', function() {
-
+
land = jQuery('#set_land').val();
jQuery('#wpsg_land').val(land);
-
+
} );
// Land der Rechnungsadresse setzen
land = jQuery('#set_land').val();
jQuery('#wpsg_land').val(land);
-
+
} );
- <?php if (isset($_REQUEST['wpsg_basket_ajax'])) { ?>
+ <?php if (isset($_REQUEST['wpsg_basket_ajax'])) { ?>
jQuery(document).ready(function() {
-
- jQuery('.wpshopgermany_widget').load('<?php echo $this->getURL(wpsg_ShopController::URL_WIDGET_AJAX); ?>');
-
+
+ jQuery('.wpshopgermany_widget').load('<?php echo $this->getURL(wpsg_ShopController::URL_WIDGET_AJAX); ?>');
+
} );
<?php } ?>
-
+
/* ]]> */</script>
\ No newline at end of file |
