From 13e13f769d1a09744fb075eca8b337491c185719 Mon Sep 17 00:00:00 2001 From: florian Date: Fri, 10 Aug 2018 14:05:19 +0000 Subject: git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7096 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/mods/mod_productvariants/admin_edit.phtml | 18 +++++++++--- views/mods/mod_stock/stockmail.phtml | 31 +++++++++++++++------ views/mods/mod_stock/stockmail_html.phtml | 32 ++++++++++++++++------ .../mod_voucherproduct/gutschein_mail_html.phtml | 2 ++ 4 files changed, 63 insertions(+), 20 deletions(-) diff --git a/views/mods/mod_productvariants/admin_edit.phtml b/views/mods/mod_productvariants/admin_edit.phtml index 4f83d36..9d5eecf 100644 --- a/views/mods/mod_productvariants/admin_edit.phtml +++ b/views/mods/mod_productvariants/admin_edit.phtml @@ -29,7 +29,8 @@ hasMod('wpsg_mod_stock')) { ?> - + + hasMod('wpsg_mod_weight')) { ?> @@ -46,7 +47,7 @@ - + view['arVariation'] as $vari) { $i ++; ?> @@ -118,7 +119,15 @@ } }); - jQuery('#productvariation_weight_').wpsg_editable('wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_productvariants&subaction=admin_inlineEdit&noheader=1', { + jQuery('#productvariation_min_stock_').wpsg_editable('wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_productvariants&subaction=admin_inlineEdit&noheader=1', { + submitdata: { + field: 'vari_min_stock', + product_id: jQuery('#wpsg_mod_productvariants_product_id').val(), + field_id: '' + } + }); + + jQuery('#productvariation_weight_').wpsg_editable('wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_productvariants&subaction=admin_inlineEdit&noheader=1', { submitdata: { field: 'vari_weight', product_id: jQuery('#wpsg_mod_productvariants_product_id').val(), @@ -146,9 +155,10 @@ view['product_id'])) { ?> get_option('wpsg_currency'))); ?> - + hasMod('wpsg_mod_stock')) { ?> + hasMod('wpsg_mod_weight')) { ?> diff --git a/views/mods/mod_stock/stockmail.phtml b/views/mods/mod_stock/stockmail.phtml index d6f2ab8..efb9928 100644 --- a/views/mods/mod_stock/stockmail.phtml +++ b/views/mods/mod_stock/stockmail.phtml @@ -8,17 +8,32 @@ ?> - - - +

basket->arProdukte as $p) - $id = $p['id']; - echo (''); - echo __('Produkt').' : '.$p['id'].' '.$p['name']; + if(isset($GLOBALS['stockemail_prodvariant']) && wpsg_isSizedArray($GLOBALS['stockemail_prodvariant'])) + { + + echo wpsg_translate(__('Eine Produktvariation hat das Erreichen des minimalen Lagerbestands am #1# um #2# Uhr gemeldet.', 'wpsg'), date('d.m.Y'), date('H:i')); + echo (''); + echo __("Produkt").': '.$GLOBALS['stockemail_prodvariant']['produkt']['id'].' '.$GLOBALS['stockemail_prodvariant']['produkt']['name']; + echo (''); + echo __("Produktvariation").': '.$GLOBALS['stockemail_prodvariant']['variant']['id'].' '.$GLOBALS['stockemail_prodvariant']['variant']['name']; + + } + else + { + + echo wpsg_translate(__('Ein Produkt hat das Erreichen des minimalen Lagerbestand am #1# um #2# Uhr gemeldet.', 'wpsg'), date('d.m.Y'), date('H:i')); + echo (''); + foreach ((array)$this->basket->arProdukte as $p) + $id = $p['id']; + echo (''); + echo __('Produkt').': '.$p['id'].' '.$p['name']; + + } ?> + get_option('wpsg_shopdata_name'), 'wpsg'); ?> - \ No newline at end of file diff --git a/views/mods/mod_stock/stockmail_html.phtml b/views/mods/mod_stock/stockmail_html.phtml index 9d4a37a..e973fe9 100644 --- a/views/mods/mod_stock/stockmail_html.phtml +++ b/views/mods/mod_stock/stockmail_html.phtml @@ -6,18 +6,34 @@ $this->htmlMail = true; -?> + include(WPSG_PATH_VIEW . 'mailtemplates/html/logo.phtml'); -

+?> -

+

'); -foreach ((array)$this->basket->arProdukte as $p) - $id = $p['id']; - echo ('
'); - echo __('Produkt').' : '.$p['id'].' '.$p['name']; + if(isset($GLOBALS['stockemail_prodvariant']) && wpsg_isSizedArray($GLOBALS['stockemail_prodvariant'])) + { + + echo wpsg_translate(__('Eine Produktvariation hat das Erreichen des minimalen Lagerbestands am #1# um #2# Uhr gemeldet.', 'wpsg'), date('d.m.Y'), date('H:i')); + echo ('
'); + echo __("Produkt").': '.$GLOBALS['stockemail_prodvariant']['produkt']['id'].' '.$GLOBALS['stockemail_prodvariant']['produkt']['name']; + echo ('
'); + echo __("Produktvariation").': '.$GLOBALS['stockemail_prodvariant']['variant']['id'].' '.$GLOBALS['stockemail_prodvariant']['variant']['name']; + + } + else + { + + echo wpsg_translate(__('Ein Produkt hat das Erreichen des minimalen Lagerbestand am #1# um #2# Uhr gemeldet.', 'wpsg'), date('d.m.Y'), date('H:i')); + echo ('
'); + foreach ((array)$this->basket->arProdukte as $p) + $id = $p['id']; + echo ('
'); + echo __('Produkt').': '.$p['id'].' '.$p['name']; + + } ?>

diff --git a/views/mods/mod_voucherproduct/gutschein_mail_html.phtml b/views/mods/mod_voucherproduct/gutschein_mail_html.phtml index 9d4baa5..e48a658 100644 --- a/views/mods/mod_voucherproduct/gutschein_mail_html.phtml +++ b/views/mods/mod_voucherproduct/gutschein_mail_html.phtml @@ -4,6 +4,8 @@ * Template für die Mail, der die gekauften Gutscheine versendet (HTML) */ + include(WPSG_PATH_VIEW . 'mailtemplates/html/logo.phtml'); + ?>

view['customer']['vname'], $this->view['customer']['name']); ?>

-- cgit v1.2.3