Mass update orders

  • Posts: 10
  • Thank you received: 0
13 years 4 weeks ago #49743

So I am working with a fulfillment center to process my orders as I can no longer handle the workload, (great problem =)

Is there anyway to mass update orders other than running a sql statement to the database? I would love to have some kind of import update feature. Mainly to update the order from "Confirmed" to "Shipped" and notify the customer. With the amount of orders we are having it is becoming way to difficult to manually update or manually ship and we are trying to integrate with a shipping system.

Please Log in or Create an account to join the conversation.

  • Posts: 83933
  • Thank you received: 13588
  • MODERATOR
13 years 4 weeks ago #49851

You can do it with a few lines of code from anywhere in joomla:

if(!include_once(rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikashop'.DS.'helpers'.DS.'helper.php')) return true;
$orderClass = hikashop_get('class.order');
$order = null;
$order->order_id = 190;
//$order->history->history_notified = 1;
$order->order_status = 'confirmed';
$orderClass->save($order);
uncomment the history line if you want the user to be notified.

Please Log in or Create an account to join the conversation.

Time to create page: 0.055 seconds
Powered by Kunena Forum