summaryrefslogtreecommitdiff
path: root/views/order
diff options
context:
space:
mode:
authorhartmut <noreply@maennchen1.de>2016-12-14 11:58:21 +0000
committerhartmut <noreply@maennchen1.de>2016-12-14 11:58:21 +0000
commit95e6564917cddd2188fa945dc7102bd470818fbc (patch)
treea4501ed2cabfea691f0e06a1257293810bd16654 /views/order
parent7d11e7763038b8f847b150cd3a1eddc512798689 (diff)
BE Bestell-Mail an Kunde senden, Korrektur Aufteilung Payment-Kosten
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5979 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/order')
-rw-r--r--views/order/view.phtml21
1 files changed, 21 insertions, 0 deletions
diff --git a/views/order/view.phtml b/views/order/view.phtml
index 55e8386..5ae9a2e 100644
--- a/views/order/view.phtml
+++ b/views/order/view.phtml
@@ -58,6 +58,9 @@
<?php //} ?>
<?php } ?>
+ <a href="" id="LinkSendMail" onclick="return wpsg_sendMail(<?php echo $_REQUEST['edit_id']; ?>);"><span class="glyphicon glyphicon-envelope"></span>&nbsp;
+ <?php echo __("Mail an Kunde", "wpsg"); ?>
+ </a><br />
<div id='wpsg_kv_list'>
</div>
@@ -83,6 +86,24 @@
/**
* Fügt einen neuen Rabatt hinzu (nur wenn keiner da ist)
*/
+ function wpsg_sendMail(oid)
+ {
+ jQuery('#wpsg_produkte_table').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
+
+ jQuery.ajax( {
+ url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=sendMail&do=send&edit_id=' + oid + '&noheader=1',
+ success: function(data) {
+ jQuery('#wpsg_produkte_table').replaceWith(data);
+ }
+ } );
+
+ return false;
+
+ } // function wpsg_sendMail()
+
+ /**
+ * Fügt einen neuen Rabatt hinzu (nur wenn keiner da ist)
+ */
function wpsg_addDiscount(oid)
{
jQuery('#wpsg_produkte_table').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');