From be36a8b624645bae0cec45c4eb21d20512c65e2f Mon Sep 17 00:00:00 2001 From: thomas Date: Thu, 11 Jul 2019 06:43:43 +0000 Subject: - Einheit im Modul hinterlegbar git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7480 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/mods/mod_scaleprice/product_bottom.phtml | 8 ++++---- views/mods/mod_scaleprice/scaleList.phtml | 12 ++++++------ views/mods/mod_scaleprice/settings_edit.phtml | 9 +++++++++ 3 files changed, 19 insertions(+), 10 deletions(-) create mode 100644 views/mods/mod_scaleprice/settings_edit.phtml diff --git a/views/mods/mod_scaleprice/product_bottom.phtml b/views/mods/mod_scaleprice/product_bottom.phtml index a1cb620..e8e86db 100644 --- a/views/mods/mod_scaleprice/product_bottom.phtml +++ b/views/mods/mod_scaleprice/product_bottom.phtml @@ -21,12 +21,12 @@
  • view['wpsg_mod_scaleprice']['typ'] == wpsg_mod_scaleprice::TYP_QUANTITY) { ?> - view['wpsg_mod_scaleprice']['scale'][0]['scale'].' '.__('Stück', 'wpsg'); ?> + view['wpsg_mod_scaleprice']['scale'][0]['scale'], $this->get_option('wpsg_mod_scaleprice_unit')); ?> view['wpsg_mod_scaleprice']['typ'] == wpsg_mod_scaleprice::TYP_WEIGHT) { ?> view['wpsg_mod_scaleprice']['scale'][0]['scale'], $this->get_option('wpsg_mod_weight_unit')); ?> - view['wpsg_mod_scaleprice']['base'], $this->get_option('wpsg_currency')); ?> + view['wpsg_mod_scaleprice']['base'], $this->get_option('wpsg_currency')); ?> get_option('wpsg_mod_scaleprice_unit'); ?> callMod('wpsg_mod_fuellmenge', 'renderPriceInfo', array($this->view['wpsg_mod_scaleprice']['base'], $this->view['data']['fmenge'], $this->view['data']['feinheit'])); ?>
  • @@ -35,12 +35,12 @@
  • view['wpsg_mod_scaleprice']['typ'] == wpsg_mod_scaleprice::TYP_QUANTITY) { ?> - + get_option('wpsg_mod_scaleprice_unit')); ?> view['wpsg_mod_scaleprice']['typ'] == wpsg_mod_scaleprice::TYP_WEIGHT) { ?> get_option('wpsg_mod_weight_unit')); ?> - get_option('wpsg_currency')); ?> + get_option('wpsg_currency')); ?> get_option('wpsg_mod_scaleprice_unit'); ?> callMod('wpsg_mod_fuellmenge', 'renderPriceInfo', array($scale['value'], $this->view['data']['fmenge'] , $this->view['data']['feinheit'])); ?>
  • diff --git a/views/mods/mod_scaleprice/scaleList.phtml b/views/mods/mod_scaleprice/scaleList.phtml index 809c274..1d70e41 100644 --- a/views/mods/mod_scaleprice/scaleList.phtml +++ b/views/mods/mod_scaleprice/scaleList.phtml @@ -14,17 +14,17 @@
    -
    +
    view['wpsg_mod_scaleprice']['typ'] == wpsg_mod_scaleprice::TYP_WEIGHT) { ?> get_option('wpsg_mod_weight_unit'); ?> view['wpsg_mod_scaleprice']['typ'] == wpsg_mod_scaleprice::TYP_QUANTITY) { ?> - + get_option('wpsg_mod_scaleprice_unit'); ?>
    -
    +

    get_option('wpsg_currency'); ?>

    @@ -78,17 +78,17 @@
    - +
    view['wpsg_mod_scaleprice']['typ'] == wpsg_mod_scaleprice::TYP_WEIGHT) { ?> get_option('wpsg_mod_weight_unit'); ?> view['wpsg_mod_scaleprice']['typ'] == wpsg_mod_scaleprice::TYP_QUANTITY) { ?> - + get_option('wpsg_mod_scaleprice_unit'); ?>
    - +

    get_option('wpsg_currency'); ?>

    diff --git a/views/mods/mod_scaleprice/settings_edit.phtml b/views/mods/mod_scaleprice/settings_edit.phtml new file mode 100644 index 0000000..ed4f3fd --- /dev/null +++ b/views/mods/mod_scaleprice/settings_edit.phtml @@ -0,0 +1,9 @@ + +get_option('wpsg_mod_scaleprice_unit'), array('help' => 'wpsg_mod_scaleprice_unit')); ?> \ No newline at end of file -- cgit v1.2.3