imageknitting

Author Topic: Update Order Status in bulk  (Read 37273 times)

Joseph Kwan

  • Advanced
  • Hero Member
  • *****
  • Posts: 2343
Update Order Status in bulk
« on: July 03, 2007, 23:06:57 PM »
I've developed a mod to update the order status in bulk. Instead of posting order status changes one by one in the order list, you can now change each order status that need to be modified and click SAVE to save the changes in one step.
This probject is a result of the Joined Force proposal detailed in this thread
http://virtuemart.net/index.php?option=com_smf&Itemid=71&topic=28964.0
and is funded by a generous donation of John - Australia.
Please post your bug reports and feature request here.

Joseph
Joomla/VM Upgrade Services. Problems with your migration? We can help.
Custom extensions to VM. Performance Tuning. Template modifications and advices.
Pay service to make VM work according to your needs. Your Joomla/VM solutions are just a PM away.

Robin

  • Beginner
  • *
  • Posts: 16
Re: Update Order Status in bulk
« Reply #1 on: July 25, 2007, 05:50:13 AM »
hey people,

the batch update of order status mod contained in this thread is great and works well,
I have also found a mod located here :

http://virtuemart.net/index.php?option=com_smf&Itemid=71&topic=22397

it the printing of multiple orders.

I'm a code 'hacker', no coder, i have combined these 2 mods and they work well, but for some reason the date is not showing correctly  on the order.order_list page (it's not showing the year), can someone please take a look at the package i have attached in the above mention thread and tell what's wrong.

Thanks in anticipation.....

theprincy

  • Jr. Member
  • **
  • Posts: 58
    • Powerpcweb
Re: Update Order Status in bulk
« Reply #2 on: September 09, 2007, 10:33:59 AM »
 Attachment Not Found

Soeren

  • Administrator
  • Hero Member
  • *
  • Posts: 3104
  • VirtueMart Starter
    • virtuemart.net
Re: Update Order Status in bulk
« Reply #3 on: September 10, 2007, 13:29:21 PM »
Attachments fixed....
The future of eCommerce: VirtueMart & Joomla!
http://virtuemart.net

Bruce Morgan

  • Sr. Member
  • ****
  • Posts: 672
Re: Update Order Status in bulk
« Reply #4 on: October 24, 2007, 17:44:02 PM »
I updated to the latest VM version a few days ago and now I am unable to update my orders at all.  Could you proved an updated version that will work?

Bruce

Joseph Kwan

  • Advanced
  • Hero Member
  • *****
  • Posts: 2343
Re: Update Order Status in bulk
« Reply #5 on: October 24, 2007, 19:03:39 PM »
If you can't update order, you should seek help elsewhere. If your problem is specific to this hack, please give more detail. For example, please specify what functions does not work and any error message you get.
Joomla/VM Upgrade Services. Problems with your migration? We can help.
Custom extensions to VM. Performance Tuning. Template modifications and advices.
Pay service to make VM work according to your needs. Your Joomla/VM solutions are just a PM away.

Bruce Morgan

  • Sr. Member
  • ****
  • Posts: 672
Re: Update Order Status in bulk
« Reply #6 on: October 25, 2007, 18:15:59 PM »
Of course my problem was specific to this hack.   Why do you think I posted it here?  If you install your hack and then update VM the update feaure will not work at all.  I was able to fix it by using "Winmerge" abnd opasting your code into the "ps.order.php" file.  That file was updated as part of the sucrity update for VM1.13a

Bruce

Joseph Kwan

  • Advanced
  • Hero Member
  • *****
  • Posts: 2343
Re: Update Order Status in bulk
« Reply #7 on: October 25, 2007, 18:29:33 PM »
Thanks Bruce.
When you update to a new version, of course the file may not be compatible. If you have done the hack, why not upload it here.
Joomla/VM Upgrade Services. Problems with your migration? We can help.
Custom extensions to VM. Performance Tuning. Template modifications and advices.
Pay service to make VM work according to your needs. Your Joomla/VM solutions are just a PM away.

Bruce Morgan

  • Sr. Member
  • ****
  • Posts: 672
Re: Update Order Status in bulk
« Reply #8 on: October 25, 2007, 19:06:17 PM »
Here it is. 

Bruce

Bruce Morgan

  • Sr. Member
  • ****
  • Posts: 672
Re: Update Order Status in bulk
« Reply #9 on: February 13, 2008, 19:51:36 PM »
I updated Joomla and VM a few days ago and now the order update function does not work as well.  Has anyone else had the same problem?

Bruce

Rico Suave

  • Full Member
  • ***
  • Posts: 223
    • JoomingDales.com
Re: Update Order Status in bulk
« Reply #10 on: February 23, 2008, 17:32:50 PM »
compare the 2 files and move josephs lines into the new file. Then it works...

Rico Suave

  • Full Member
  • ***
  • Posts: 223
    • JoomingDales.com
Re: Update Order Status in bulk
« Reply #11 on: March 16, 2008, 15:34:39 PM »
@joseph: is it possible to make a header checkbox also to check all boxes sending a notify message to the users? Now there is a select all box for orders but I still have to manually select all users ...

Joseph Kwan

  • Advanced
  • Hero Member
  • *****
  • Posts: 2343
Re: Update Order Status in bulk
« Reply #12 on: March 16, 2008, 17:11:36 PM »
Yep. But you need an extra javascript function to make that work. You can make notify customer the default by replacing this line (around line 168 in the order.order_list.php file)

   $listObj->addCell( "<input type=\"checkbox\" name=\"notify_customer$order_id\" class=\"inputbox\" value=\"Y\" />"   );

to

   $listObj->addCell( "<input checked=\"checked\" type=\"checkbox\" name=\"notify_customer$order_id\" class=\"inputbox\" value=\"Y\" />"   );

Joomla/VM Upgrade Services. Problems with your migration? We can help.
Custom extensions to VM. Performance Tuning. Template modifications and advices.
Pay service to make VM work according to your needs. Your Joomla/VM solutions are just a PM away.

Rico Suave

  • Full Member
  • ***
  • Posts: 223
    • JoomingDales.com
Re: Update Order Status in bulk
« Reply #13 on: March 17, 2008, 15:35:30 PM »
thnx...i have added it and it works (ofcourse)

Benny

  • Beginner
  • *
  • Posts: 10
Re: Update Order Status in bulk
« Reply #14 on: May 24, 2008, 03:24:05 AM »
Hej Joseph,

your hack seems to be great!! :-)
Unfortunately I just updated my VM to 1.1 before I saw this great hack.
Is there any similar to this for VM 1.1 as well? Or are there posibilities to hack the current one?

Thanks in advance

Greetings Benny

VirtueMart Forum

Re: Update Order Status in bulk
« Reply #14 on: May 24, 2008, 03:24:05 AM »