- Posts: 10
- Thank you received: 0
Mass update orders
14 years 4 months ago #49743
by coleision
Mass update orders was created by coleision
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.

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.
14 years 4 months ago #49851
by nicolas
Replied by nicolas on topic Re: Mass update orders
You can do it with a few lines of code from anywhere in joomla:
uncomment the history line if you want the user to be notified.
Code:
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);
Please Log in or Create an account to join the conversation.
Time to create page: 0.206 seconds