diff options
| author | Daniel Schmitzer <noreply@maennchen1.de> | 2018-10-31 15:24:31 +0000 |
|---|---|---|
| committer | Daniel Schmitzer <noreply@maennchen1.de> | 2018-10-31 15:24:31 +0000 |
| commit | 6398c48f9d6b036b2555523b7525ed98eab18d41 (patch) | |
| tree | bf0cb7355c6d15a61d83eb64b4656e5beee9067e | |
| parent | 2d3070d7a4e2df0b733ede6e1820e56349bab725 (diff) | |
- Berechnung
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7197 0d5edaf7-2b12-4e95-93f4-047927463d4b
| -rw-r--r-- | views/order/product_table.phtml | 462 | ||||
| -rw-r--r-- | views/produkttemplates/standard_redirect.phtml | 382 |
2 files changed, 626 insertions, 218 deletions
diff --git a/views/order/product_table.phtml b/views/order/product_table.phtml index e30270d..83b682d 100644 --- a/views/order/product_table.phtml +++ b/views/order/product_table.phtml @@ -4,250 +4,276 @@ * Template für die Produkttabelle im Backend der Bestellverwaltung
*/
- $arCalculation = $this->view['oCalculation']->getCalculationArray($this->getBackendTaxView());
- $arTax = $this->view['oCalculation']->getTaxLabelArray();
- $arTaxShort = $this->view['oCalculation']->getTaxLabelArray(true);
-
+ $arCalculation = $this->view['oCalculation']->getCalculationArray(true);
+ $arTax = $this->view['oCalculation']->getTaxLabelArray();
+ $arTaxShort = $this->view['oCalculation']->getTaxLabelArray(true);
+
$this->view['colspan'] = 3;
if ($this->get_option('wpsg_showMwstAlways') == '1' || sizeof($arCalculation['tax']) > 1) $this->view['colspan'] ++;
$this->view['arCalculation'] = $arCalculation;
+ if ($this->getBackendTaxView() === WPSG_NETTO) $display = 'netto';
+ else $display = 'brutto';
+
?>
<style>
- .wpsg_row_small td { font-size:0.8em; }
+ .wpsg_row_small td { font-size:0.8em; }
#wpsg-bs .wpsg_row_small .wpsg-glyphlink-td > span { margin-top:0px; }
-
+
</style>
+
<table class="wpsg_produkte table">
- <tr class="wpsg_kopf">
- <th class="wpsg_cell_name"><?php echo __('Produktname', 'wpsg'); ?></th>
- <th class="wpsg_cell_preis"><?php echo __('Einzelpreis', 'wpsg'); ?></th>
- <?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
- <th class="wpsg_cell_mwst"><?php echo __("MwSt.", "wpsg"); ?></th>
- <?php } ?>
- <th class="wpsg_cell_menge"><?php echo __("Anzahl", "wpsg"); ?></th>
- <th class="wpsg_cell_gesamtpreis"><?php echo __("Gesamtpreis", "wpsg"); ?></th>
- </tr>
- <tr><td colspan="<?php echo $this->view['colspan'] + 1; ?>" style="line-height:2px; height:2px; background-color:#999999; padding:0px;"></td></tr>
- <?php $i = 0; foreach ($arCalculation['products'] as $p) { $i ++; $product_price = $p['price']; ?>
- <tr class="wpsg_<?php echo (($i % 2 == 0)?'odd':'even'); ?>">
- <td class="wpsg_cell_name">
- <a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=edit&edit_id=<?php echo $p['product_id']; ?>" title="<?php echo __('Zum Produkt', 'wpsg'); ?>">
- <?php echo wpsg_hspc($this->getProductName($p['product_id'])); ?>
- </a>
- <a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Produkt bearbeiten', 'wpsg'); ?>" onclick="return WPSG_BE_Product.editProduct(<?php echo $p['order_product_id']; ?>);"><span class="glyphicon glyphicon-pencil"></span></a>
- <a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Produkt löschen', 'wpsg'); ?>" onclick="return WPSG_BE_Product.remvoeProduct(<?php echo $p['order_product_id']; ?>);"><span class="glyphicon glyphicon-trash"></span></a>
- </td>
- <td class="wpsg_cell_preis"><?php echo wpsg_ff($product_price); ?> <?php echo $this->get_option('wpsg_currency'); ?></td>
- <?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
- <td class="wpsg_cell_mwst"><?php echo $arTaxShort[$p['tax_key']]; ?></td>
- <?php } ?>
- <td class="wpsg_cell_menge"><?php echo wpsg_hspc($p['amount']); ?></td>
- <td class="wpsg_cell_gesamtpreis"><?php echo wpsg_ff($p['amount'] * $product_price); ?> <?php echo $this->get_option('wpsg_currency'); ?></td>
- </tr>
- <?php /* if (wpsg_isSizedArray($p['order_allowedshipping'])) { ?>
- <tr class="wpsg_<?php echo (($i % 2 == 0)?'odd':'even'); ?>">
- <td class="wpsg_cell_name">
- <?php echo __('Mögliche Versandarten', 'wpsg'); ?>:
- </td>
- <td class="wpsg_cell_gesamtpreis" colspan="<?php echo ((sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1')?4:3); ?>">
- <?php $j = 0; foreach ($p['order_allowedshipping'] as $shipping) { $j ++; ?>
- <?php echo $this->getShippingName($shipping); ?><?php if ($j < sizeof($p['order_allowedshipping'])) { ?>, <?php } ?>
- <?php } ?>
- </td>
- </tr>
- <?php } */ ?>
- <?php $this->callMods('order_view_row', array(&$p, $i)); ?>
- <tr><td colspan="<?php echo $this->view['colspan'] + 1; ?>" style="line-height:2px; height:2px; background-color:#999999; padding:0px;"></td></tr>
- <?php } ?>
-
- <?php /* Gutscheine */ ?>
- <?php if (wpsg_isSizedArray($arCalculation['voucher'])) { ?>
+ <thead>
+ <tr class="wpsg_kopf">
+ <th class="wpsg_cell_name"><?php echo __('Produktname', 'wpsg'); ?></th>
+ <th class="wpsg_cell_preis"><?php echo __('Einzelpreis', 'wpsg'); ?></th>
+ <?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
+ <th class="wpsg_cell_mwst"><?php echo __("MwSt.", "wpsg"); ?></th>
+ <?php } ?>
+ <th class="wpsg_cell_menge"><?php echo __("Anzahl", "wpsg"); ?></th>
+ <th class="wpsg_cell_gesamtpreis"><?php echo __("Gesamtpreis", "wpsg"); ?></th>
+ </tr>
+ </thead>
+ <tbody>
+
+ <tr><td colspan="<?php echo $this->view['colspan'] + 1; ?>" style="line-height:2px; height:2px; background-color:#999999; padding:0px;"></td></tr>
+ <?php $i = 0; foreach ($arCalculation['product'] as $p) { $i ++; $product_price = $p[$display]; ?>
+ <tr class="wpsg_<?php echo (($i % 2 == 0)?'odd':'even'); ?>">
+ <td class="wpsg_cell_name">
+ <a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=edit&edit_id=<?php echo $p['product_id']; ?>" title="<?php echo __('Zum Produkt', 'wpsg'); ?>">
+ <?php echo wpsg_hspc($this->getProductName($p['product_id'])); ?>
+ </a>
+ <a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Produkt bearbeiten', 'wpsg'); ?>" onclick="return WPSG_BE_Product.editProduct(<?php echo $p['order_product_id']; ?>);"><span class="glyphicon glyphicon-pencil"></span></a>
+ <a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Produkt löschen', 'wpsg'); ?>" onclick="return WPSG_BE_Product.remvoeProduct(<?php echo $p['order_product_id']; ?>);"><span class="glyphicon glyphicon-trash"></span></a>
+ </td>
+ <td class="wpsg_cell_preis"><?php echo wpsg_ff($product_price); ?> <?php echo $this->get_option('wpsg_currency'); ?></td>
+ <?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
+ <td class="wpsg_cell_mwst"><?php echo $arTaxShort[$p['tax_key']]; ?></td>
+ <?php } ?>
+ <td class="wpsg_cell_menge"><?php echo wpsg_hspc($p['amount']); ?></td>
+ <td class="wpsg_cell_gesamtpreis"><?php echo wpsg_ff($p['amount'] * $product_price); ?> <?php echo $this->get_option('wpsg_currency'); ?></td>
+ </tr>
+ <?php $this->callMods('order_view_row', array(&$p, $i)); ?>
+ <tr><td colspan="<?php echo $this->view['colspan'] + 1; ?>" style="line-height:2px; height:2px; background-color:#999999; padding:0px;"></td></tr>
+ <?php } ?>
+
+ <?php // Gutscheine ?>
+ <?php if (wpsg_isSizedArray($arCalculation['voucher'])) { ?>
+
+ <?php foreach ($arCalculation['voucher'] as $v) { ?>
+
+ <tr class="wpsg_row_discount wpsg_row_small">
+ <td colspan="" class="wpsg_cell_mwst_label">
- <?php foreach ($arCalculation['voucher'] as $v) { ?>
+ <div>
+ <?php echo __('Gutschein', 'wpsg'); ?>
+
+ <?php if ($this->getBackendTaxView() === WPSG_BRUTTO) { ?>
+ <?php echo __('(inkl. MwSt.)', 'wpsg'); ?>
+ <?php } else { ?>
+ <?php echo __('(zzgl. MwSt.)', 'wpsg'); ?>
+ <?php } ?>
- <tr class="wpsg_row_discount wpsg_row_small">
- <td colspan="" class="wpsg_cell_mwst_label">
+ <a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Gutschein bearbeiten', 'wpsg'); ?>" onclick="return WPSG_BE_Voucher.editVoucher();"><span class="glyphicon glyphicon-pencil"></span></a>
+ <a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Gutschein löschen', 'wpsg'); ?>" onclick="return WPSG_BE_Voucher.removeVoucher();"><span class="glyphicon glyphicon-trash"></span></a>
+ </div>
+ <div>
+ Code: <?php echo $v['code']; ?>
+ </div>
+
+ </td>
+ <td class="wpsg_cell_preis">
+
+ <?php if (strpos($v['set'], '%') === false) { ?>
+ <?php echo wpsg_ff($arCalculation['sum']['voucher_'.$display], $this->get_option('wpsg_currency')); ?>
+ <?php } else { ?>
+ <?php echo wpsg_ff($v['set'], '%'); ?>
+ <?php } ?>
+
+ </td>
+ <?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
+ <td class="wpsg_cell_mwst"><?php echo $arTaxShort[$v['tax_key']]; ?></td>
+ <?php } ?>
+ <td>1</td>
+ <td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis">
+ <?php echo wpsg_ff($arCalculation['sum']['voucher_'.$display]); ?> <?php echo $this->get_option('wpsg_currency'); ?>
+ </td>
+ </tr>
+
+ <?php } ?>
+ <tr><td colspan="<?php echo $this->view['colspan'] + 1; ?>" style="line-height:2px; height:2px; background-color:#999999; padding:0px;"></td></tr>
+
+ <?php } ?>
+
+ <tr class="wpsg_row_summe">
+ <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_summe_label">
+
+ <?php if ($this->get_option('wpsg_kleinunternehmer') == '1') { ?>
- <div>
- <?php echo __('Gutschein', 'wpsg'); ?>
+ <?php echo wpsg_translate(__('Summe (zzgl. #1#)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'" target="_blank">'.__('Versandkosten', 'wpsg').'</a>'); ?>
+
+ <?php } else { ?>
+
+ <?php if ($this->get_option('wpsg_preisangaben') == WPSG_NETTO) { ?>
+ <?php echo wpsg_translate(__('Summe (zzgl. #1#, zzgl. MwSt.)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'" target="_blank">'.__('Versandkosten', 'wpsg').'</a>'); ?>
+ <?php } else { ?>
+ <?php echo wpsg_translate(__('Summe (zzgl. #1#, inkl. MwSt.)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'" target="_blank">'.__('Versandkosten', 'wpsg').'</a>'); ?>
+ <?php } ?>
+
+ <?php } ?>
+
+ </td>
+ <td class="wpsg_cell_summe_value wpsg_cell_gesamtpreis">
+
+ <?php echo wpsg_ff($arCalculation['sum']['productsum_'.$display]); ?> <?php echo $this->get_option('wpsg_currency'); ?>
+
+ </td>
+ </tr>
+
+ <?php // Versandkosten ?>
+ <?php $price_shipping = $arCalculation['sum']['shipping_'.$display]; ?>
+ <?php if ($price_shipping != 0 || $this->get_option('wpsg_hideemptyshipping') != '1') { ?>
+ <tr class="wpsg_row_shipping">
+ <td class="wpsg_cell_shipping_label" colspan="2">
+ <?php echo __('Versandkosten', 'wpsg'); ?>
+ <?php echo __(' ('.$this->arShipping[$arCalculation['shipping'][0]['shipping_key']]['name'].')', 'wpsg'); ?>
+ <a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Versandart ändern', 'wpsg'); ?>" onclick="return WPSG_BE_Pay_Ship.changeShippingPayment();"><span class="glyphicon glyphicon-pencil"></span></a>
+ </td>
+ <?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
+ <td><?php echo $arTaxShort[$arCalculation['shipping'][0]['tax_key']]; ?></td>
+ <?php } ?>
+ <td class="wpsg_cell_shipping_value wpsg_cell_gesamtpreis" colspan="2">
+ <span id="wpsg_cell_shipping_value"><?php echo wpsg_ff($price_shipping); ?> </span>
+ <?php echo $this->get_option('wpsg_currency'); ?>
+ </td>
+ </tr>
+ <?php } ?>
+
+ <?php // Zahlungskosten ?>
+ <?php $price_payment = $arCalculation['sum']['payment_'.$display]; ?>
+ <?php if ($price_payment != 0 || $this->get_option('wpsg_hideemptypayment') != '1') { ?>
+ <tr class="wpsg_row_payment">
+ <td colspan="2" class="wpsg_cell_payment_label">
+ <?php echo __('Zahlungsart', 'wpsg'); ?>
+ <?php echo __(' ('.$this->arPayment[$arCalculation['payment'][0]['payment_key']]['name'].')', 'wpsg'); ?>
+ <a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Zahlungsart ändern', 'wpsg'); ?>" onclick="return WPSG_BE_Pay_Ship.changeShippingPayment();"><span class="glyphicon glyphicon-pencil"></span></a>
+ </td>
+ <?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
+ <td><?php echo $arTaxShort[$arCalculation['payment'][0]['tax_key']]; ?></td>
+ <?php } ?>
+ <td class="wpsg_cell_payment_value wpsg_cell_gesamtpreis" colspan="2">
+ <span id="wpsg_cell_payment_value"><?php echo wpsg_ff($price_payment); ?> </span>
+ <?php echo $this->get_option('wpsg_currency'); ?>
+ </td>
+ </tr>
+ <?php } ?>
+
+ <?php // Rabatte ?>
+ <?php if (wpsg_isSizedArray($arCalculation['discount'])) { ?>
+ <?php foreach ($arCalculation['discount'] as $d) { ?>
+ <tr class="wpsg_row_discount wpsg_row_small">
+ <td colspan="" class="wpsg_cell_mwst_label">
+
+ <?php echo __('Rabatt', 'wpsg'); ?>
<?php if ($this->getBackendTaxView() === WPSG_BRUTTO) { ?>
<?php echo __('(inkl. MwSt.)', 'wpsg'); ?>
<?php } else { ?>
<?php echo __('(zzgl. MwSt.)', 'wpsg'); ?>
<?php } ?>
-
- <a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Gutschein bearbeiten', 'wpsg'); ?>" onclick="return WPSG_BE_Voucher.editVoucher();"><span class="glyphicon glyphicon-pencil"></span></a>
- <a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Gutschein löschen', 'wpsg'); ?>" onclick="return WPSG_BE_Voucher.removeVoucher();"><span class="glyphicon glyphicon-trash"></span></a>
- </div>
- <div>
- Code: <?php echo $v['code']; ?>
- </div>
+ <a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Rabatt bearbeiten', 'wpsg'); ?>" onclick="return WPSG_BE_Discount.editDiscount();"><span class="glyphicon glyphicon-pencil"></span></a>
+ <a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Rabatt löschen', 'wpsg'); ?>" onclick="return WPSG_BE_Discount.removeDiscount();"><span class="glyphicon glyphicon-trash"></span></a>
+
+ </td>
+ <td class="wpsg_cell_preis">
+
+ <?php if (strpos($v['set'], '%') === false) { ?>
+ <?php echo wpsg_ff($arCalculation['sum']['voucher_'.$display], $this->get_option('wpsg_currency')); ?>
+ <?php } else { ?>
+ <?php echo wpsg_ff($v['set'], '%'); ?>
+ <?php } ?>
+
+ </td>
+ <?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
+ <td class="wpsg_cell_mwst"><?php echo $arTaxShort[$d['tax_key']]; ?></td>
+ <?php } ?>
+ <td></td>
+ <td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis">
+ <?php echo wpsg_ff($arCalculation['sum']['discount_'.$display]); ?> <?php echo $this->get_option('wpsg_currency'); ?>
+ </td>
+ </tr>
+ <?php } ?>
+ <?php } ?>
+
+ <?php if ($this->getBackendTaxView() === WPSG_NETTO) { ?>
+
+ <tr class="wpsg_row_gesamt">
+ <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_summe_label">
+ <?php echo __('Summe', 'wpsg'); ?>
+ <?php echo __('(zzgl. MwSt.)', 'wpsg'); ?>
</td>
- <td class="wpsg_cell_preis">
- <?php echo wpsg_ff($v['set'], $this->get_option('wpsg_currency'), true); ?>
+ <td class="wpsg_cell_gesamt_value wpsg_cell_gesamtpreis">
+ <?php echo wpsg_ff($arCalculation['sum'][$display]); ?> <?php echo $this->get_option('wpsg_currency'); ?>
</td>
- <?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
- <td class="wpsg_cell_mwst"><?php echo $arTaxShort[$v['tax_key']]; ?></td>
- <?php } ?>
- <td>1</td>
- <td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis">
- <?php echo wpsg_ff($arCalculation['sum']['voucher_display']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
+ </tr>
+ <?php foreach ($arCalculation['tax'] as $tax) { if ($tax['sum'] > 0 && $tax['key'] != '0') { ?>
+ <tr class="wpsg_row_mwst wpsg_row_small">
+ <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_mwst_label">
+ <?php echo wpsg_translate(__('zuzüglich MwSt. (#1#)', 'wpsg'), $arTax[$tax['key']]); ?>
+ </td>
+ <td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis">
+ <?php echo wpsg_ff($tax['sum']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
+ </td>
+ </tr>
+ <?php } } ?>
+ <tr class="wpsg_row_gesamt">
+ <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_summe_label">
+ <strong><?php echo __('Gesamtsumme', 'wpsg'); ?></strong>
+ <?php echo __('(inkl. MwSt.)', 'wpsg'); ?>
+ </td>
+ <td class="wpsg_cell_gesamt_value wpsg_cell_gesamtpreis">
+ <strong><?php echo wpsg_ff($arCalculation['sum']['brutto']); ?> <?php echo $this->get_option('wpsg_currency'); ?></strong>
</td>
</tr>
- <?php } ?>
- <tr><td colspan="<?php echo $this->view['colspan'] + 1; ?>" style="line-height:2px; height:2px; background-color:#999999; padding:0px;"></td></tr>
-
- <?php } ?>
-
- <tr class="wpsg_row_summe">
- <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_summe_label">
-
- <?php if ($this->get_option('wpsg_kleinunternehmer') == '1') { ?>
-
- <?php echo wpsg_translate(__('Summe (zzgl. #1#)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'" target="_blank">'.__('Versandkosten', 'wpsg').'</a>'); ?>
-
- <?php } else { ?>
-
- <?php if ($this->get_option('wpsg_preisangaben') == WPSG_NETTO) { ?>
- <?php echo wpsg_translate(__('Summe (zzgl. #1#, zzgl. MwSt.)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'" target="_blank">'.__('Versandkosten', 'wpsg').'</a>'); ?>
- <?php } else { ?>
- <?php echo wpsg_translate(__('Summe (zzgl. #1#, inkl. MwSt.)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'" target="_blank">'.__('Versandkosten', 'wpsg').'</a>'); ?>
- <?php } ?>
-
- <?php } ?>
-
- </td>
- <td class="wpsg_cell_summe_value wpsg_cell_gesamtpreis">
-
- <?php echo wpsg_ff($arCalculation['sum']['product']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
-
- </td>
- </tr>
-
- <?php /* Versandkosten */ ?>
- <?php $price_shipping = $arCalculation['shipping']['price']; ?>
- <?php if ($price_shipping != 0 || $this->get_option('wpsg_hideemptyshipping') != '1') { ?>
- <tr class="wpsg_row_shipping">
- <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_shipping_label">
- <?php echo __('Versandkosten', 'wpsg'); ?>
- <?php echo __(' ('.$this->arShipping[$arCalculation['shipping']['key']]['name'].')', 'wpsg'); ?>
- <a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Versandart ändern', 'wpsg'); ?>" onclick="return WPSG_BE_Pay_Ship.changeShippingPayment();"><span class="glyphicon glyphicon-pencil"></span></a>
- </td>
- <td class="wpsg_cell_shipping_value wpsg_cell_gesamtpreis">
- <span id="wpsg_cell_shipping_value"><?php echo wpsg_ff($price_shipping); ?> </span>
- <?php echo $this->get_option('wpsg_currency'); ?>
- </td>
- </tr>
- <?php } ?>
-
- <?php /* Zahlungskosten */ ?>
- <?php $price_payment = $arCalculation['payment']['price']; ?>
- <?php if ($price_payment != 0 || $this->get_option('wpsg_hideemptypayment') != '1') { ?>
- <tr class="wpsg_row_payment">
- <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_payment_label">
- <?php echo __('Zahlungsart', 'wpsg'); ?>
- <?php echo __(' ('.$this->arPayment[$arCalculation['payment']['key']]['name'].')', 'wpsg'); ?>
- <a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Zahlungsart ändern', 'wpsg'); ?>" onclick="return WPSG_BE_Pay_Ship.changeShippingPayment();"><span class="glyphicon glyphicon-pencil"></span></a>
- </td>
- <td class="wpsg_cell_payment_value wpsg_cell_gesamtpreis" >
- <span id="wpsg_cell_payment_value"><?php echo wpsg_ff($price_payment); ?> </span>
- <?php echo $this->get_option('wpsg_currency'); ?>
- </td>
- </tr>
- <?php } ?>
-
- <?php if ($this->getBackendTaxView() === WPSG_NETTO && $this->get_option('wpsg_kleinunternehmer') != '1') { ?>
- <?php foreach ($arCalculation['tax'] as $tax) { if ($tax['sum_tax'] > 0) { ?>
- <tr class="wpsg_row_mwst">
- <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_mwst_label">
- <?php echo wpsg_translate(__('zuzüglich MwSt. (#1#)', 'wpsg'), $arTax[$tax['key']]); ?>
- </td>
- <td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis">
- <?php echo wpsg_ff($tax['sum_tax']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
- </td>
- </tr>
- <?php } } ?>
- <?php } ?>
-
- <?php /* Rabatte */ ?>
- <?php if ($arCalculation['sum']['prediscount_netto'] !== $arCalculation['sum']['netto']) { ?>
- <tr class="wpsg_row_discount">
- <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_mwst_label">
- <?php echo __('Gesamtpreis', 'wpsg'); ?>
- <?php if ($this->getBackendTaxView() === WPSG_BRUTTO) { ?>
- <?php echo __('(abzgl. Rabatt, inkl. MwSt.)', 'wpsg'); ?>
- <?php } else { ?>
- <?php echo __('(abzgl. Rabatt, zzgl. MwSt.)', 'wpsg'); ?>
- <?php } ?>
- </td>
- <td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis">
- <?php echo wpsg_ff($arCalculation['sum']['prediscount_display']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
- </td>
- </tr>
- <?php foreach ($arCalculation['discount'] as $d) { ?>
- <tr class="wpsg_row_discount wpsg_row_small">
- <td colspan="" class="wpsg_cell_mwst_label">
- <?php echo __('Rabatt', 'wpsg'); ?>
- <?php if ($this->getBackendTaxView() === WPSG_BRUTTO) { ?>
- <?php echo __('(inkl. MwSt.)', 'wpsg'); ?>
- <?php } else { ?>
- <?php echo __('(zzgl. MwSt.)', 'wpsg'); ?>
- <?php } ?>
+ <?php } else { ?>
- <a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Rabatt bearbeiten', 'wpsg'); ?>" onclick="return WPSG_BE_Discount.editDiscount();"><span class="glyphicon glyphicon-pencil"></span></a>
- <a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Rabatt löschen', 'wpsg'); ?>" onclick="return WPSG_BE_Discount.removeDiscount();"><span class="glyphicon glyphicon-trash"></span></a>
-
- </td>
- <td class="wpsg_cell_preis">
- <?php echo wpsg_ff($d['set'], $this->get_option('wpsg_currency'), true); ?>
- </td>
- <?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
- <td class="wpsg_cell_mwst"><?php echo $arTaxShort[$d['tax_key']]; ?></td>
- <?php } ?>
- <td></td>
- <td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis">
- <?php echo wpsg_ff($arCalculation['sum']['discount_display']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
- </td>
- </tr>
- <?php } ?>
- <?php } ?>
-
- <tr class="wpsg_row_gesamt">
- <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_gesamt_label">
- <strong><?php echo __('Gesamtpreis', 'wpsg'); ?></strong>
- <?php if ($this->getBackendTaxView() === WPSG_BRUTTO) { ?>
- <?php echo __('(inkl. MwSt.)', 'wpsg'); ?>
- <?php } else { ?>
- <?php echo __('(zzgl. MwSt.)', 'wpsg'); ?>
- <?php } ?>
- </td>
- <td class="wpsg_cell_gesamt_value wpsg_cell_gesamtpreis">
- <strong><?php echo wpsg_ff($arCalculation['sum']['display']); ?> <?php echo $this->get_option('wpsg_currency'); ?></strong>
- </td>
- </tr>
-
- <?php if ($this->get_option('wpsg_kleinunternehmer') == '1' || $this->getBackendTaxView() != WPSG_NETTO) { ?>
- <?php foreach ($arCalculation['tax'] as $tax) { if ($tax['sum_tax'] > 0 && $tax['key'] != '0') { ?>
- <tr class="wpsg_row_mwst wpsg_row_small">
- <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_mwst_label">
- <?php if ($this->get_option('wpsg_kleinunternehmer') == '1') { ?>
- <?php echo $this->get_option('wpsg_kleinunternehmer_text'); ?>
- <?php } else { ?>
- <?php echo wpsg_translate(__('darin enthaltene MwSt. (#1#)', 'wpsg'), $arTax[$tax['key']]); ?>
- <?php } ?>
- </td>
- <td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis">
- <?php echo wpsg_ff($tax['sum_tax']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
- </td>
- </tr>
- <?php } } ?>
- <?php } ?>
-</table>
\ No newline at end of file + <tr class="wpsg_row_gesamt">
+ <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_summe_label">
+ <strong><?php echo __('Gesamtsumme', 'wpsg'); ?></strong>
+ <?php if ($this->getBackendTaxView() === WPSG_BRUTTO) { ?>
+ <?php echo __('(inkl. MwSt.)', 'wpsg'); ?>
+ <?php } else { ?>
+ <?php echo __('(zzgl. MwSt.)', 'wpsg'); ?>
+ <?php } ?>
+ </td>
+ <td class="wpsg_cell_gesamt_value wpsg_cell_gesamtpreis">
+ <strong><?php echo wpsg_ff($arCalculation['sum']['brutto']); ?> <?php echo $this->get_option('wpsg_currency'); ?></strong>
+ </td>
+ </tr>
+ <?php foreach ($arCalculation['tax'] as $tax) { if ($tax['sum'] > 0 && $tax['key'] != '0') { ?>
+ <tr class="wpsg_row_mwst wpsg_row_small">
+ <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_mwst_label">
+ <?php if ($this->get_option('wpsg_kleinunternehmer') == '1') { ?>
+ <?php echo $this->get_option('wpsg_kleinunternehmer_text'); ?>
+ <?php } else { ?>
+ <?php echo wpsg_translate(__('darin enthaltene MwSt. (#1#)', 'wpsg'), $arTax[$tax['key']]); ?>
+ <?php } ?>
+ </td>
+ <td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis">
+ <?php echo wpsg_ff($tax['sum']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
+ </td>
+ </tr>
+ <?php } } ?>
+
+ <?php } ?>
+
+ </tbody>
+</table>
+
+<?php wpsg_debug($arCalculation); ?>
\ No newline at end of file diff --git a/views/produkttemplates/standard_redirect.phtml b/views/produkttemplates/standard_redirect.phtml new file mode 100644 index 0000000..392e997 --- /dev/null +++ b/views/produkttemplates/standard_redirect.phtml @@ -0,0 +1,382 @@ +<?php
+
+ /*
+ * Template für das Produkt im Frontend
+ */
+
+ //Ausgabe der verfügbaren Variablen
+ //wpsg_debug($this->view['data']);
+
+ // Damit keine Zubehörprodukte ausgegeben werden
+ //$this->noReleatedProducts = true;
+
+?>
+
+<div class="wpsg_produkt_wrapper">
+
+ <input type="hidden" name="wpsg_post_id" value="<?php echo get_the_ID(); ?>" />
+ <input type="hidden" name="titleDisplayed" value="<?php echo $this->titleDisplayed; ?>" />
+
+ <div class="wpsg_produkt wpsg_product_name">
+
+ <?php if (!$this->titleDisplayed) { ?>
+ <h1 itemprop="name" class="wpsg_producttitle"><?php echo $this->getProductName($this->view['data']['id']); ?></h1>
+ <h2 itemprop="detailname" class="wpsg_productdetailtitle"><?php echo $this->view['data']['detailname']; ?></h2>
+ <?php } ?>
+
+ <?php $this->callMods('product_top_afterheadline', array(&$this->view['data']['id'], $this->getTemplateIndex())); ?>
+
+ </div>
+
+ <?php $this->callMods('product_top', array(&$this->view['data']['id'], $this->getTemplateIndex())); ?>
+
+ <div itemscope itemtype="http://schema.org/Product" class="wpsg_produkt wpsg_produkt_<?php echo $this->view['data']['id']; ?>">
+
+ <?php /* Block für die Produktbilder START */ ?>
+ <?php
+
+ /* Das ist das primäre Anzeigebild des Produktes (AttachmentID) */
+ $arAttachmentID = $this->imagehandler->getAttachmentID($this->view['data']['product_key']);
+
+ /* Array mit allen AttachmentIDs der Produktbilder */
+ $arAttachmentIDsAll = $this->imagehandler->getAttachmentIDs($this->view['data']['product_id']);
+
+ ?>
+
+ <?php if (wpsg_isSizedArray($arAttachmentIDsAll)) { ?>
+ <div class="wpsg_productimages">
+
+ <div class="wpsg_produkt_produktbilder">
+
+ <?php if (sizeof($arAttachmentIDsAll) > 0) { for ($i = 0; $i < sizeof($arAttachmentIDsAll); $i ++) { ?>
+
+ <?php /* URL für die Lightbox */ ?>
+ <?php $att = wp_get_attachment_image_src($arAttachmentIDsAll[$i], array(800, 600), false); ?>
+
+ <a <?php if ($arAttachmentIDsAll[$i] != $arAttachmentID) echo 'style="display:none;"'; ?> rel="gallery-wpsg-<?php echo $this->getTemplateIndex(); ?>" title="<?php echo $this->getProductName($this->view['data']['id']); ?>" href="<?php echo $att[0]; ?>" class="thickbox">
+
+ <?php echo wp_get_attachment_image($arAttachmentIDsAll[$i], array(300, 300), false, array()); ?>
+
+ </a>
+
+ <?php } } ?>
+
+ </div>
+
+ </div>
+ <?php } ?>
+ <?php /* Block für die Produktbilder ENDE */ ?>
+
+ <?php if ($this->get_option('wpsg_showArticelnumber') == '1') { ?>
+ <div class="wpsg_artikelnummer">
+ <?php echo __('Artikelnummer', 'wpsg'); ?>: <span class="wpsg_anr"><?php echo wpsg_hspc($this->view['data']['anr']); ?></span><br />
+ <?php if (wpsg_isSizedInt($this->get_option('wpsg_mod_produktartikel_ean'))) {?>
+ <?php echo __('EAN','wpsg');?>:<span class="wpsg_ean"><?php echo wpsg_hspc($this->view['data']['ean']); ?></span><br />
+ <?php } ?>
+ <?php if (wpsg_isSizedInt($this->get_option('wpsg_mod_produktartikel_gtin'))) {?>
+ <?php echo __('GTIN','wpsg');?>:<span class="wpsg_gtin"><?php echo wpsg_hspc($this->view['data']['gtin']); ?></span><br />
+ <?php }?></div>
+ <?php } ?>
+
+ <?php /* Abfrage Preisanzeige nur für eingeloggte User aktiv und User eingeloggt START*/ ?>
+ <?php if ($this->view['oProduct']->canDisplayPrice()) { ?>
+
+ <div itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="wpsg_produkt_preis">
+
+ <meta itemprop="priceCurrency" content="<?php echo $this->get_option('wpsg_currency'); ?>" />
+
+ <?php echo __('Stückpreis:', 'wpsg'); ?>
+
+ <?php $oldPrice = $this->view['oProduct']->getOldPrice(); ?>
+ <?php if ($oldPrice !== false && $oldPrice != $this->view['oProduct']->getPrice()) { ?>
+ <span class="wpsg_mod_productview_price wpsg_mod_productview_current"><?php echo wpsg_ff($this->view['oProduct']->getPrice(), $this->get_option('wpsg_currency')); ?></span>
+ <span class="wpsg_mod_productview_oldprice"><?php echo wpsg_ff($oldPrice, $this->get_option('wpsg_currency')); ?></span>
+ <?php } else { ?>
+ <span class="wpsg_mod_productview_price"><?php echo wpsg_ff($this->view['oProduct']->getPrice(), $this->get_option('wpsg_currency')); ?></span>
+ <?php } ?>
+
+ </div>
+
+ <?php if ($this->get_option('wpsg_kleinunternehmer')) { /* Kleinunternehmerregelung aktiviert START */ ?>
+
+ <div class="wpsg_produkt_preishinweis">
+ <?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>'); ?>
+ </div>
+
+ <?php } else { /* Kleinunternehmerregelung aktiviert ENDE */ ?>
+
+ <div class="wpsg_produkt_preishinweis">
+ <?php if ($this->getFrontendTaxview() == WPSG_NETTO) { /* Frontend = NETTO Preise */ ?>
+ <?php if ($this->hasMod('wpsg_mod_freeshipping') && $this->get_option('wpsg_mod_freeshipping_aktiv') == '1') { /* Versandkostenfrei aktiv */?>
+ <?php echo wpsg_translate(__('(zzgl. #1#% MwSt. und versandkostenfrei)', 'wpsg'), wpsg_ff($this->view['data']['mwst_value'])); ?>
+ <?php } else { ?>
+ <?php echo wpsg_translate(__('(zzgl. #1#% MwSt. und zzgl. #2#)', 'wpsg'), wpsg_ff($this->view['data']['mwst_value']), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'">'.__('Versandkosten', 'wpsg').'</a>'); ?>
+ <?php }?>
+ <?php } else { /* Frontend = BRUTTO Preise */ ?>
+ <?php if ($this->hasMod('wpsg_mod_freeshipping') && $this->get_option('wpsg_mod_freeshipping_aktiv') == '1') { /* Versandkostenfrei aktiv */ ?>
+ <?php echo wpsg_translate(__('(inkl. #1#% MwSt. und versandkostenfrei)', 'wpsg'), wpsg_ff($this->view['data']['mwst_value'])); ?>
+ <?php } else { ?>
+ <?php echo wpsg_translate(__('(inkl. #1#% MwSt. und zzgl. #2#)', 'wpsg'), wpsg_ff($this->view['data']['mwst_value']), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'">'.__('Versandkosten', 'wpsg').'</a>'); ?>
+ <?php }?>
+ <?php } ?>
+ </div>
+
+ <?php } ?>
+
+ <?php } else {?>
+
+ <?php echo wpsg_translate(__('Die Produktpreise werden nur eingeloggten Benutzern angezeigt. Loggen Sie sich <a href="'.$this->getURL(wpsg_ShopController::URL_PROFIL).'">hier</a> bitte ein, um zu bestellen.')); ?>
+
+ <?php }?>
+ <?php /* Abfrage Preisanzeige nur für eingeloggte User aktiv und User eingeloggt ENDE */ ?>
+
+ <div itemprop="description" class="wpsg_produkt_shortdescription">
+
+ <span><?php echo $this->view['data']['shortdesc']; ?></span>
+
+ </div>
+
+ <div class="wpsg_clear"></div>
+
+ <?php /* Lagerbestand START*/?>
+ <?php if ($this->hasMod('wpsg_mod_stock') && $this->get_option('wpsg_mod_stock_showProduct') == '1') { ?>
+
+ <div class="wpsg_mod_produktindex_stock">
+
+ <?php if (($this->view['data']['stock']) > '0') {?>
+
+ <label><?php echo __('Lagerbestand', 'wpsg'); ?></label>
+ <?php echo wpsg_translate(__('#1# Artikel auf Lager','wpsg'), $this->view['data']['stock']); ?>
+
+ <?php } else { ?>
+
+ <label><?php echo wpsg_translate(__('', 'wpsg')); ?></label>
+
+ <?php } ?>
+
+ </div>
+ <?php } ?>
+ <?php /* Lagerbestand ENDE*/?>
+
+ <?php /* Füllmengenanzeige START */ ?>
+ <?php if ($this->hasMod('wpsg_mod_fuellmenge')) { ?>
+
+ <div class="wpsg_produkt_fuellmenge">
+
+ <?php if (($this->view['data']['fmenge']) > '0') { ?>
+
+ <span class="label label_fuellmenge"><?php echo wpsg_translate(__('Füllmenge:', 'wpsg')); ?></span>
+
+ <?php echo wpsg_translate(__('#1# (#2# / #3#)', 'wpsg'),
+ '<span class="wpsg_fmenge">'.wpsg_ff($this->view['data']['fmenge'], '', true).'</span> '.$this->view['data']['feinheit'],
+ '<span class="fmenge_preis">'.wpsg_ff($this->view['data']['fmenge_preis'], $this->get_option('wpsg_currency')).'</span> ',
+ wpsg_ff($this->get_option('wpsg_mod_fuellmenge_bezug'), $this->view['data']['feinheit'])
+ ); ?>
+
+ <?php } else { ?>
+
+ <label><?php echo wpsg_translate(__('', 'wpsg')); ?></label>
+
+ <?php } ?>
+
+ </div>
+
+ <?php } ?>
+ <?php /* Füllmengenanzeige ENDE */ ?>
+
+ <?php /* Gewichtsanzeige START */ ?>
+ <?php if ($this->hasMod('wpsg_mod_weight') && $this->get_option('wpsg_mod_weight_showProduct') === '1') { ?>
+ <div class="wpsg_mod_weight_produkt">
+
+ <?php if (($this->view['data']['weight']) > '0') { ?>
+ <span class="label label_weight"><?php echo wpsg_translate(__('Gewicht:', 'wpsg')); ?></span>
+ <?php echo wpsg_translate(__('#1# #2#', 'wpsg'), '<span class="wpsg_weight" id="weight_'.$this->view['data']['id'].'">'.wpsg_ff($this->view['data']['weight']).'</span>', $this->get_option('wpsg_mod_weight_unit')); ?>
+ <?php } else { ?>
+ <label><?php wpsg_translate(__('', 'wpsg'))?></label>
+ <?php } ?>
+ </div>
+ <?php } ?>
+ <?php /* Gewichtsanzeige ENDE */ ?>
+
+ <?php /* Lieferzeit Anzeige START */ ?>
+ <?php if ($this->hasMod('wpsg_mod_deliverytime') && $this->get_option('wpsg_mod_deliverytime_show_product') == '1') { ?>
+
+ <?php /* Produkt nur im Store, nicht im Onlineshop vorhanden */ ?>
+ <?php if ($this->callMod('wpsg_mod_deliverytime', 'isStoreProduct', array($this->view['data']['product_key']))) { ?>
+
+ <div class="wpsg_product_only_store"><?php echo __($this->callMod('wpsg_mod_deliverytime', 'displayStoreText', array($this->view['data']['product_key']))); ?></div>
+
+ <?php $stl = 0; $stl = $this->callMod('wpsg_mod_deliverytime', 'displayStoreLink', array($this->view['data']['product_key'])) ?>
+ <?php if (wpsg_isSizedInt($stl)) { ?>
+
+ <a href="<?php echo get_permalink($stl); ?>"><?php echo __('So erreichen Sie uns.'); ?></a>
+
+ <?php } ?>
+
+ <?php } else { ?>
+
+ <?php $strDelayNote = $this->callMod('wpsg_mod_deliverytime', 'displayDelayTime', array($this->view['data']['product_key'])); ?>
+ <?php if (wpsg_isSizedString($strDelayNote)) { ?>
+
+ <div class="wpsg_mod_deliverytime_offline">
+
+ <div class="wpsg_mod_deliverytime_delay"><?php echo wpsg_hspc($strDelayNote); ?></div>
+
+ </div>
+
+ <?php } else { ?>
+
+ <div class="wpsg_mod_deliverytime">
+ <span class="label label_deliverytime"><?php echo wpsg_translate(__('Lieferzeit:', 'wpsg')); ?></span>
+ <?php echo $this->callMod('wpsg_mod_deliverytime', 'displayDeliveryTime', array($this->view['data']['product_key'])); ?>
+ </div>
+
+ <?php } ?>
+
+ <?php } ?>
+
+ <?php } ?>
+ <?php /* Lieferzeit Anzeige ENDE */ ?>
+
+ <?php /* Produktkurzbeschreibung START */ ?>
+ <div class="wpsg_product_informationarea">
+
+ <?php if (strlen(trim($this->view['data']['beschreibung'])) > 0) { ?>
+ <div class="wpsg_product_information_short">
+ <div class="wpsg_produkt_additional_information">
+ <div itemprop="description" class="wpsg_produkt_shortdescription">
+ <span><?php echo $this->view['data']['beschreibung']; ?></span>
+ </div>
+ </div>
+ </div>
+ <?php } ?>
+
+ </div>
+ <?php /* Produktkurzbeschreibung ENDE */ ?>
+
+ <?php /* Varianten START */ ?>
+ <div class="wpsg_produkt_varianten">
+ <?php echo $this->callMod('wpsg_mod_productvariants', 'renderTemplate', array($this->view['data']['product_key'])); ?>
+ </div>
+ <?php /* Varianten ENDE */ ?>
+
+ <?php $this->callMods('product_bottom', array(&$this->view['data']['id'], $this->getTemplateIndex())); ?>
+
+ <div class="wpsg_product_buttonarea">
+ <div class="wpsg_product_buttons_add_basket">
+ <?php if ($this->view['oProduct']->canOrder()) { ?>
+ <div class="wpsg_produkt_add_basket_wrapper">
+
+ <label class="wpsg_amount_label" for="wpsg_menge_<?php echo $this->getTemplateIndex(); ?>"><?php echo __('Anzahl', 'wpsg'); ?></label>
+
+ <input type="text" value="<?php echo ((wpsg_isSizedInt($this->view['data']['menge']))?$this->view['data']['menge']:'1'); ?>" name="wpsg[menge]" class="wpsg_menge" id="wpsg_menge_<?php echo $this->getTemplateIndex(); ?>" <?php echo (($this->view['data']['basket_multiple'] == 4)?' readonly="readonly" ':''); ?> />
+
+ <?php /* Urlaubsmodus aktiv */ ?>
+ <?php if ($this->hasMod('wpsg_mod_deliverytime') && ($this->get_option('wpsg_mod_deliverytime_holiday') == '1')) { ?>
+
+ <?php if ($this->callMod('wpsg_mod_deliverytime', 'holiday', array($this->view['data']['product_key']))) { ?>
+
+ <div class="wpsg_product_deliverytime_holiday" style="height:50px; padding:10px; width:50%; float:right; border:1px solid #ff0000;">
+
+ <?php echo __($this->callMod('wpsg_mod_deliverytime', 'displayHolidaytext', array($this->view['data']['product_key']))); ?>
+
+ </div>
+
+ <?php } ?>
+
+ <?php } else {?>
+
+ <input class="wpsg_button wpsg_add_basket wpsg_add_basket_<?php echo $this->getTemplateIndex(); ?>" type="submit" value="<?php echo __('In den Warenkorb', 'wpsg'); ?>" name="wpsg[submit]" />
+
+ <?php } ?>
+
+ <script type="text/javascript">
+
+ jQuery(document).ready(function() {
+
+ jQuery('.wpsg_add_basket_<?php echo $this->getTemplateIndex(); ?>').bind('click', function() {
+
+ wpsg_blockProductTemplate(<?php echo $this->getTemplateIndex(); ?>);
+
+ jQuery.ajax( {
+ url: '<?php echo $this->getURL(wpsg_ShopController::URL_BASKET); ?>',
+ data:
+ {
+ 'wpsg_form_data': jQuery('#wpsg_produktform_<?php echo $this->getTemplateIndex(); ?>').serialize(),
+ 'wpsg[ajax]': '1',
+ 'wpsg[submit]': '1'
+ },
+ success: function(data)
+ {
+
+ location.href = "http://heko.home";
+
+ }
+ } );
+
+ return false;
+
+ } );
+
+ } );
+
+ </script>
+
+ </div>
+ <?php } ?>
+ </div>
+ </div>
+
+ <div class="wpsg_clear"></div>
+
+ <?php if ($this->hasMod('wpsg_mod_request') && $this->callMod('wpsg_mod_request', 'isRequestProduct', array($this->view['data']['id']))) { ?>
+ <label class="wpsg_amount_label" for="wpsg_menge_<?php echo $this->getTemplateIndex(); ?>"><?php echo __('Anzahl', 'wpsg'); ?></label>
+ <input type="text" value="<?php echo ((wpsg_isSizedInt($this->view['data']['menge']))?$this->view['data']['menge']:'1'); ?>" name="wpsg[menge]" class="wpsg_menge" id="wpsg_menge_<?php echo $this->getTemplateIndex(); ?>" <?php echo (($this->view['data']['basket_multiple'] == 4)?' readonly="readonly" ':''); ?> />
+
+ <input class="wpsg_button wpsg_add_requestlist" id="wpsg_add_requestlist_<?php echo $this->getTemplateIndex(); ?>" type="submit" value="<?php echo __('Auf die Anfrageliste', 'wpsg'); ?>" name="wpsg[submit_request]" />
+ <?php } ?>
+
+ <?php /* Produktlangbeschreibung START */ ?>
+ <div class="wpsg_product_informationarea">
+
+ <?php if (strlen(trim($this->view['data']['longdescription'])) > 0) { ?>
+ <div class="wpsg_product_information_large">
+ <div class="wpsg_produkt_additional_information">
+ <div itemprop="description" class="wpsg_produkt_longdescription">
+ <span><?php echo $this->view['data']['longdescription']; ?></span>
+ </div>
+ </div>
+ </div>
+ <?php } ?>
+
+ </div>
+ <?php /* Produktlangbeschreibung ENDE */ ?>
+
+ <?php /* zusätzliche Informationen START */ ?>
+ <div class="wpsg_product_informationarea">
+
+ <?php if (strlen(trim($this->view['data']['moreinfos'])) > 0) { ?>
+ <div class="wpsg_product_information_large">
+ <div class="wpsg_produkt_additional_information">
+ <div itemprop="description" class="wpsg_produkt_moreinfos">
+ <span><?php echo $this->view['data']['moreinfos']; ?></span>
+ </div>
+ </div>
+ </div>
+ <?php } ?>
+
+ </div>
+ <?php /* zusätzliche Informationen ENDE */ ?>
+
+ <div class="wpsg_clear"></div>
+
+ <?php /* Social Media Integration */ ?>
+ <div class="wpsg_product_social_media">
+ <?php if (is_plugin_active('plugin-directory/shariff.php')) {?>
+ <?php echo do_shortcode('[shariff]')?>
+ <?php } ?>
+ </div>
+
+ </div>
+
+</div>
\ No newline at end of file |
