From 5409d46312b5f4b357943d7e0c7390a1402e1666 Mon Sep 17 00:00:00 2001 From: Daniel Schmitzer Date: Tue, 2 May 2017 12:50:23 +0000 Subject: - Bestellbedingungen nach Versandarten gruppieren git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6244 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/mods/mod_ordercondition/list.phtml | 39 ++++++++++++++++++++++++++++++-- 1 file changed, 37 insertions(+), 2 deletions(-) (limited to 'views/mods') diff --git a/views/mods/mod_ordercondition/list.phtml b/views/mods/mod_ordercondition/list.phtml index 00eabc0..a8fc581 100644 --- a/views/mods/mod_ordercondition/list.phtml +++ b/views/mods/mod_ordercondition/list.phtml @@ -99,6 +99,7 @@ if ($oc['typ'] == '1') echo __('Jede Bestellung', 'wpsg'); else if ($oc['typ'] == '2') echo __('Bestimmte Produkte', 'wpsg'); + else if ($oc['typ'] == '3') echo __('Bestimmte Versandarten', 'wpsg'); else echo __('Inaktiv', 'wpsg'); ?> @@ -107,10 +108,16 @@ jQuery('#oc_typ_').wpsg_editable('wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_ordercondition&do=inlinedit&noheader=1', { type: 'select', - data: __('Inaktiv', 'wpsg'), '1' => __('Jede Bestellung', 'wpsg'), '2' => __('Bestimmte Produkte', 'wpsg'))); ?>, + data: __('Inaktiv', 'wpsg'), '1' => __('Jede Bestellung', 'wpsg'), '2' => __('Bestimmte Produkte', 'wpsg'), '3' => __('Bestimmte Versandarten'))); ?>, submitdata: { field: 'typ', oc_id: '' + }, + callback: function(e, params) { + + if (params == 3) jQuery('.wpsg_mod_ordercondition_shipping_').show(); + else jQuery('.wpsg_mod_ordercondition_shipping_').hide(); + } }); @@ -145,7 +152,35 @@ }); /* ]]> */ - + +
+ + view['arShipping'])) echo $this->view['arShipping'][$shipping_id].'
'; + + } + + ?>
+ + +
+ view['wpsg_mod_ordercondition']['data'])) { ?>
-- cgit v1.2.3