diff options
| author | Daniel Schmitzer <noreply@maennchen1.de> | 2018-09-28 07:05:48 +0000 |
|---|---|---|
| committer | Daniel Schmitzer <noreply@maennchen1.de> | 2018-09-28 07:05:48 +0000 |
| commit | b6dd44ae23fe378b9d857ab38a9f1318d0d6274f (patch) | |
| tree | 112bd1d5ed740f01bf9341d5c0ed7db995eb4049 /views/order/view.phtml | |
| parent | 1b94e9e9c54019ee68f12accaac82a6971b555a6 (diff) | |
- Produktbearbeitung Backend
- Neue Calculation für das Backend
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7173 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/order/view.phtml')
| -rw-r--r-- | views/order/view.phtml | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/views/order/view.phtml b/views/order/view.phtml index c01a0c4..3a3c6d0 100644 --- a/views/order/view.phtml +++ b/views/order/view.phtml @@ -50,31 +50,26 @@ <?php } ?>
</div>
- <?php if(true) {?>
- <a href="" id="LinkProduktNeu" onclick="return WPSG_BE_Product.addProduct(<?php echo $_REQUEST['edit_id']; ?>, 0);"><span class="glyphicon glyphicon-plus"></span>
- <?php echo __("Neues Produkt", "wpsg"); ?>
- </a><br />
- <?php } ?>
-
- <br />
+ <a href="" id="LinkProduktNeu" onclick="return WPSG_BE_Product.addProduct();"><span class="glyphicon glyphicon-plus"></span>
+ <?php echo __("Neues Produkt", "wpsg"); ?>
+ </a><div class="wpsg_clear"></div>
+
<?php if ($this->hasMod('wpsg_mod_gutschein')) { ?>
<?php if (((array_key_exists('gs', $this->view['basket'])) && ($this->view['basket']['gs']['value'] == 0))) { ?>
<a href="" id="LinkGutscheinNeu" onclick="return wpsg_addVoucher(<?php echo $_REQUEST['edit_id']; ?>);"><span class="glyphicon glyphicon-plus"></span>
- <?php echo __("Neuer Gutschein", "wpsg"); ?>
- </a><br />
+ <?php echo __("Gutschein bearbeiten", "wpsg"); ?>
+ </a><div class="wpsg_clear"></div>
<?php } ?>
<?php } ?>
<div class="wpsg_clear"></div>
<?php if ($this->hasMod('wpsg_mod_discount')) { ?>
- <?php //if (((array_key_exists('preis_rabatt', $this->view['basket']['sum'])) && ($this->view['basket']['sum']['preis_rabatt'] == 0))) { ?>
- <a href="" id="LinkRabattNeu" onclick="return wpsg_addDiscount(<?php echo $_REQUEST['edit_id']; ?>);"><span class="glyphicon glyphicon-plus"></span>
- <?php echo __("Neuer Rabatt", "wpsg"); ?>
- </a><br />
- <?php //} ?>
+ <a href="" id="LinkRabattNeu" onclick="return WPSG_BE_Discount.editDiscount(<?php echo $_REQUEST['edit_id']; ?>);"><span class="glyphicon glyphicon-plus"></span>
+ <?php echo __("Rabatt bearbeiten", "wpsg"); ?>
+ </a><div class="wpsg_clear"></div>
<?php } ?>
- <div class="wpsg_clear"></div>
+
<a href="" id="LinkSendMail" onclick="return wpsg_sendMail(<?php echo $_REQUEST['edit_id']; ?>);"><span class="glyphicon glyphicon-envelope"></span>
<?php echo __("Bestellbestätigung", "wpsg"); ?><br /><?php echo __("erneut versenden", "wpsg"); ?>
</a><br />
@@ -129,8 +124,10 @@ jQuery.ajax( {
url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&subaction=discountData&do=add&edit_id=' + oid + '&noheader=1',
success: function(data) {
+
jQuery('#wpsg_produkte_table').replaceWith(data);
jQuery('#LinkRabattNeu').hide();
+
}
} );
|
