Contributions
multi orders update
Multi Orders Update V1.0
Based on Batch Update Status from the original author.
Fix sending mail by angel
fix comments by orders by shoprun
thank to padaben for his help.
forum support for french
http://www.oscommerce-fr.info/forum/index.php?showtopic=50231&st=0#entry256515What this contribution do:
it's simple, when you have a lot of orders, i'm sure you want to updates the pending or another status. btu the other contribution i found update only statuses;
this one updates statuses, you can add comments by orders, and when you submit the store send mail to customers with his new status and his own comment.
how to use it.
before select the view by status fro example 'pending', enter the comments, select the orders ansd submit.
it's important to select the view by statut, befor anything.
Expand All / Collapse All
here the code to hide the box aka 'fermer'. appli this
open admin/multiorders.php
look for this
function infoMailing(act, id, evt) {
var obj = 'infoMailing';
formCmd = document.forms['updateStatus'];
formBox = document.forms['infoMail'];
switch (act) {
just after add this just before: case 'supprimer' :
case 'fermer' :
var id = formBox.elements['key'].value;
setVisibilityObj(obj, 'cacher');
formCmd.elements['update_oID[' + id + ']'].checked = false;
if (theObj2 = getObjectClasse('tr_' + id)) {
if (theObj2.className !== 'dataTableRow') theObj2.className = 'dataTableRow';
}
break
the result look like this for this part
function infoMailing(act, id, evt) {
var obj = 'infoMailing';
formCmd = document.forms['updateStatus'];
formBox = document.forms['infoMail'];
switch (act) {
case 'fermer' :
var id = formBox.elements['key'].value;
setVisibilityObj(obj, 'cacher');
formCmd.elements['update_oID[' + id + ']'].checked = false;
if (theObj2 = getObjectClasse('tr_' + id)) {
if (theObj2.className !== 'dataTableRow') theObj2.className = 'dataTableRow';
}
break
case 'supprimer' :
var id = formBox.elements['key'].value;
setVisibilityObj(obj, 'cacher');
formCmd.elements['update_oID[' + id + ']'].checked = false;
if (theObj2 = getObjectClasse('tr_' + id)) {
if (theObj2.className !== 'dataTableRow2') theObj2.className = 'dataTableRow2';
}
break
look for this
<td colspan="4" class="main"><input type="button" value="Fermer" onclick="java script:infoMailing('fermer');"> </td>
remplace with this
<td colspan="4" class="main"><input type="button" value="Fermer" onclick="infoMailing('fermer');"> </td>
now when you clic on 'fermer' the box is hidden.
thepackage contain the multioders fixed.
Minor bug but avoids browser JavaScript error.
Added ; after JavaScript ingoMailing() function call.
Find:
Line 176
<td colspan="4" class="main"><input type="button" value="Fermer" onclick="java script:infoMailing('fermer')"> </td>
Replace:
<td colspan="4" class="main"><input type="button" value="Fermer" onclick="java script:infoMailing('fermer');"> </td>
---------------
Attached file has same information.
here a bug fix, cause i upload the wrong file:
the bug is if you update a status but you dont' want to notify the mail is send.
english
open admin/multiorders.php
look for:
if (isset($_POST['notify'][$key])) {
$notify_comments = '';
if (tep_not_null($comments))
and remplace with:
if ($notify == 'true') {
$notify_comments = '';
if (tep_not_null($comments))
that' all
french
un bug est apparus, j'ai uploder le mauvais fihier.
quand vous mettea a jour une commande sans pour autant vouloir notifier le client le mail est quand meme envoyer.
ouvrir
admin/multiorders.php
chercher
if (isset($_POST['notify'][$key])) {
$notify_comments = '';
if (tep_not_null($comments))
et remplacer par
if ($notify == 'true') {
$notify_comments = '';
if (tep_not_null($comments))
c'est tout.
fiel attache conaint the same fix
this is a new version, mini bug are fixed, only 2 minute to install. screenshot added.
more simple, more light.
compatible with html orders send mail, creload.
this contribution was made on a snapshot of oscommerce ms2.
support in french:
http://www.oscommerce-fr.info/forum/index.php?showtopic=51553
english support
http://forums.oscommerce.com/index.php?showtopic=283698&st=0&gopid=1179974&#entry1179974
Multi Orders Update V1.0
Based on Batch Update Status from the original author.
Fix sending mail by angel
fix comments by orders by shoprun
thank to padaben for his help.
forum support for french
http://www.oscommerce-fr.info/forum/index.php?showtopic=50231&st=0#entry256515What this contribution do:
it's simple, when you have a lot of orders, i'm sure you want to updates the pending or another status. btu the other contribution i found update only statuses;
this one updates statuses, you can add comments by orders, and when you submit the store send mail to customers with his new status and his own comment.
how to use it.
before select the view by status fro example 'pending', enter the comments, select the orders ansd submit.
it's important to select the view by statut, befor anything.
Note: Contributions are used at own risk.