Community Add-Ons

Maintainers: angel2005
Add file to this package
Top » Other

multi orders update
for osCommerce Online Merchant v2.2



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.

Legend:  Download   Report
Expand All / Collapse All
multiorders js fix angel2005 21 Feb 2008  

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');">&nbsp;&nbsp;</td>

remplace with this

<td colspan="4" class="main"><input type="button" value="Fermer" onclick="infoMailing('fermer');">&nbsp;&nbsp;</td>


now when you clic on 'fermer' the box is hidden.

thepackage contain the multioders fixed.

Small JavaScript ; fix expert 19 Dec 2007  
bug fix for multiorders angel2005 19 Dec 2007  
Multiorders update V2 angel2005 17 Dec 2007  
multi orders update angel2005 17 Nov 2007