From 6398c48f9d6b036b2555523b7525ed98eab18d41 Mon Sep 17 00:00:00 2001 From: Daniel Schmitzer Date: Wed, 31 Oct 2018 15:24:31 +0000 Subject: - Berechnung git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7197 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/order/product_table.phtml | 462 +++++++++++++------------ views/produkttemplates/standard_redirect.phtml | 382 ++++++++++++++++++++ 2 files changed, 626 insertions(+), 218 deletions(-) create mode 100644 views/produkttemplates/standard_redirect.phtml 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'; + ?> + - - - - 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?> - - - - - - - - - - - 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?> - - - - - - - - - - - - callMods('order_view_row', array(&$p, $i)); ?> - - - - - + + + + + 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?> + + + + + + + + + + + + + + 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?> + + + + + + callMods('order_view_row', array(&$p, $i)); ?> + + + + + + + + + + - + + 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?> + + + + + + + + + + + + + + + + + + + get_option('wpsg_hideemptyshipping') != '1') { ?> + + + 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?> + + + + + + + + + get_option('wpsg_hideemptypayment') != '1') { ?> + + + 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?> + + + + + + + + + + + + + 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?> + + + + + + + + + getBackendTaxView() === WPSG_NETTO) { ?> + + + - - 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?> - - - - + 0 && $tax['key'] != '0') { ?> + + + + + + + + - - - - - - - - - - - - - get_option('wpsg_hideemptyshipping') != '1') { ?> - - - - - - - - - get_option('wpsg_hideemptypayment') != '1') { ?> - - - - - - - getBackendTaxView() === WPSG_NETTO && $this->get_option('wpsg_kleinunternehmer') != '1') { ?> - 0) { ?> - - - - - - - - - - - - - - - - - - 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?> - - - - - - - - - - - - - - get_option('wpsg_kleinunternehmer') == '1' || $this->getBackendTaxView() != WPSG_NETTO) { ?> - 0 && $tax['key'] != '0') { ?> - - - - - - -
- - getProductName($p['product_id'])); ?> - - - - get_option('wpsg_currency'); ?> get_option('wpsg_currency'); ?>
- : - - - getShippingName($shipping); ?>, - -
+ + getProductName($p['product_id'])); ?> + + + + get_option('wpsg_currency'); ?> get_option('wpsg_currency'); ?>
- +
+ + + getBackendTaxView() === WPSG_BRUTTO) { ?> + + + + -
+ + + +
+ Code: +
+ +
+ + + get_option('wpsg_currency')); ?> + + + + + 1 + get_option('wpsg_currency'); ?> +
+ + get_option('wpsg_kleinunternehmer') == '1') { ?> -
- + getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'" target="_blank">'.__('Versandkosten', 'wpsg').''); ?> + + + + get_option('wpsg_preisangaben') == WPSG_NETTO) { ?> + getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'" target="_blank">'.__('Versandkosten', 'wpsg').''); ?> + + getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'" target="_blank">'.__('Versandkosten', 'wpsg').''); ?> + + + + +
+ + get_option('wpsg_currency'); ?> + +
+ + arShipping[$arCalculation['shipping'][0]['shipping_key']]['name'].')', 'wpsg'); ?> + + + + get_option('wpsg_currency'); ?> +
+ + arPayment[$arCalculation['payment'][0]['payment_key']]['name'].')', 'wpsg'); ?> + + + + get_option('wpsg_currency'); ?> +
+ + getBackendTaxView() === WPSG_BRUTTO) { ?> - - - - -
- Code: -
+ + + +
+ + + get_option('wpsg_currency')); ?> + + + + + + get_option('wpsg_currency'); ?> +
+ + - get_option('wpsg_currency'), true); ?> + + get_option('wpsg_currency'); ?> 1 - get_option('wpsg_currency'); ?> +
+ + + get_option('wpsg_currency'); ?> +
+ + + + get_option('wpsg_currency'); ?>
- - get_option('wpsg_kleinunternehmer') == '1') { ?> - - getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'" target="_blank">'.__('Versandkosten', 'wpsg').''); ?> - - - - get_option('wpsg_preisangaben') == WPSG_NETTO) { ?> - getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'" target="_blank">'.__('Versandkosten', 'wpsg').''); ?> - - getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'" target="_blank">'.__('Versandkosten', 'wpsg').''); ?> - - - - - - - get_option('wpsg_currency'); ?> - -
- - arShipping[$arCalculation['shipping']['key']]['name'].')', 'wpsg'); ?> - - - - get_option('wpsg_currency'); ?> -
- - arPayment[$arCalculation['payment']['key']]['name'].')', 'wpsg'); ?> - - - - get_option('wpsg_currency'); ?> -
- - - get_option('wpsg_currency'); ?> -
- - getBackendTaxView() === WPSG_BRUTTO) { ?> - - - - - - get_option('wpsg_currency'); ?> -
- - getBackendTaxView() === WPSG_BRUTTO) { ?> - - - - + - - - - - get_option('wpsg_currency'), true); ?> - - get_option('wpsg_currency'); ?> -
- - getBackendTaxView() === WPSG_BRUTTO) { ?> - - - - - - get_option('wpsg_currency'); ?> -
- get_option('wpsg_kleinunternehmer') == '1') { ?> - get_option('wpsg_kleinunternehmer_text'); ?> - - - - - get_option('wpsg_currency'); ?> -
\ No newline at end of file + + + + getBackendTaxView() === WPSG_BRUTTO) { ?> + + + + + + + get_option('wpsg_currency'); ?> + + + 0 && $tax['key'] != '0') { ?> + + + get_option('wpsg_kleinunternehmer') == '1') { ?> + get_option('wpsg_kleinunternehmer_text'); ?> + + + + + + get_option('wpsg_currency'); ?> + + + + + + + + + + \ 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 @@ +view['data']); + + // Damit keine Zubehörprodukte ausgegeben werden + //$this->noReleatedProducts = true; + +?> + +
+ + + + +
+ + titleDisplayed) { ?> +

getProductName($this->view['data']['id']); ?>

+

view['data']['detailname']; ?>

+ + + callMods('product_top_afterheadline', array(&$this->view['data']['id'], $this->getTemplateIndex())); ?> + +
+ + callMods('product_top', array(&$this->view['data']['id'], $this->getTemplateIndex())); ?> + +
+ + + imagehandler->getAttachmentID($this->view['data']['product_key']); + + /* Array mit allen AttachmentIDs der Produktbilder */ + $arAttachmentIDsAll = $this->imagehandler->getAttachmentIDs($this->view['data']['product_id']); + + ?> + + +
+ + + +
+ + + + get_option('wpsg_showArticelnumber') == '1') { ?> +
+ : view['data']['anr']); ?>
+ get_option('wpsg_mod_produktartikel_ean'))) {?> + :view['data']['ean']); ?>
+ + get_option('wpsg_mod_produktartikel_gtin'))) {?> + :view['data']['gtin']); ?>
+
+ + + + view['oProduct']->canDisplayPrice()) { ?> + +
+ + + + + + view['oProduct']->getOldPrice(); ?> + view['oProduct']->getPrice()) { ?> + view['oProduct']->getPrice(), $this->get_option('wpsg_currency')); ?> + get_option('wpsg_currency')); ?> + + view['oProduct']->getPrice(), $this->get_option('wpsg_currency')); ?> + + +
+ + get_option('wpsg_kleinunternehmer')) { /* Kleinunternehmerregelung aktiviert START */ ?> + +
+ getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'">'.__('Versandkosten', 'wpsg').'', 'Endpreis'); ?> +
+ + + +
+ getFrontendTaxview() == WPSG_NETTO) { /* Frontend = NETTO Preise */ ?> + hasMod('wpsg_mod_freeshipping') && $this->get_option('wpsg_mod_freeshipping_aktiv') == '1') { /* Versandkostenfrei aktiv */?> + view['data']['mwst_value'])); ?> + + view['data']['mwst_value']), ''.__('Versandkosten', 'wpsg').''); ?> + + + hasMod('wpsg_mod_freeshipping') && $this->get_option('wpsg_mod_freeshipping_aktiv') == '1') { /* Versandkostenfrei aktiv */ ?> + view['data']['mwst_value'])); ?> + + view['data']['mwst_value']), ''.__('Versandkosten', 'wpsg').''); ?> + + +
+ + + + + + getURL(wpsg_ShopController::URL_PROFIL).'">hier bitte ein, um zu bestellen.')); ?> + + + + +
+ + view['data']['shortdesc']; ?> + +
+ +
+ + + hasMod('wpsg_mod_stock') && $this->get_option('wpsg_mod_stock_showProduct') == '1') { ?> + +
+ + view['data']['stock']) > '0') {?> + + + view['data']['stock']); ?> + + + + + + + +
+ + + + + hasMod('wpsg_mod_fuellmenge')) { ?> + +
+ + view['data']['fmenge']) > '0') { ?> + + + + '.wpsg_ff($this->view['data']['fmenge'], '', true).' '.$this->view['data']['feinheit'], + ''.wpsg_ff($this->view['data']['fmenge_preis'], $this->get_option('wpsg_currency')).' ', + wpsg_ff($this->get_option('wpsg_mod_fuellmenge_bezug'), $this->view['data']['feinheit']) + ); ?> + + + + + + + +
+ + + + + + hasMod('wpsg_mod_weight') && $this->get_option('wpsg_mod_weight_showProduct') === '1') { ?> +
+ + view['data']['weight']) > '0') { ?> + + view['data']['id'].'">'.wpsg_ff($this->view['data']['weight']).'', $this->get_option('wpsg_mod_weight_unit')); ?> + + + +
+ + + + + hasMod('wpsg_mod_deliverytime') && $this->get_option('wpsg_mod_deliverytime_show_product') == '1') { ?> + + + callMod('wpsg_mod_deliverytime', 'isStoreProduct', array($this->view['data']['product_key']))) { ?> + +
callMod('wpsg_mod_deliverytime', 'displayStoreText', array($this->view['data']['product_key']))); ?>
+ + callMod('wpsg_mod_deliverytime', 'displayStoreLink', array($this->view['data']['product_key'])) ?> + + +   + + + + + + callMod('wpsg_mod_deliverytime', 'displayDelayTime', array($this->view['data']['product_key'])); ?> + + +
+ +
+ +
+ + + +
+ + callMod('wpsg_mod_deliverytime', 'displayDeliveryTime', array($this->view['data']['product_key'])); ?> +
+ + + + + + + + + +
+ + view['data']['beschreibung'])) > 0) { ?> +
+
+
+ view['data']['beschreibung']; ?> +
+
+
+ + +
+ + + +
+ callMod('wpsg_mod_productvariants', 'renderTemplate', array($this->view['data']['product_key'])); ?> +
+ + + callMods('product_bottom', array(&$this->view['data']['id'], $this->getTemplateIndex())); ?> + +
+
+ view['oProduct']->canOrder()) { ?> +
+ + + + view['data']['basket_multiple'] == 4)?' readonly="readonly" ':''); ?> /> + + + hasMod('wpsg_mod_deliverytime') && ($this->get_option('wpsg_mod_deliverytime_holiday') == '1')) { ?> + + callMod('wpsg_mod_deliverytime', 'holiday', array($this->view['data']['product_key']))) { ?> + +
+ + callMod('wpsg_mod_deliverytime', 'displayHolidaytext', array($this->view['data']['product_key']))); ?> + +
+ + + + + + + + + + + +
+ +
+
+ +
+ + hasMod('wpsg_mod_request') && $this->callMod('wpsg_mod_request', 'isRequestProduct', array($this->view['data']['id']))) { ?> + + view['data']['basket_multiple'] == 4)?' readonly="readonly" ':''); ?> /> + + + + + +
+ + view['data']['longdescription'])) > 0) { ?> +
+
+
+ view['data']['longdescription']; ?> +
+
+
+ + +
+ + + +
+ + view['data']['moreinfos'])) > 0) { ?> +
+
+
+ view['data']['moreinfos']; ?> +
+
+
+ + +
+ + +
+ + +
+ + + +
+ +
+ +
\ No newline at end of file -- cgit v1.2.3