Adding new order status

  • Posts: 2
  • Thank you received: 0
10 years 5 months ago #159665

We are working to use HikaShop Business for internal ordering from our own warehouse. Therefore there is no need for payment processing, but all orders need to be approved by the employee's cost center manager before being submitted to the warehouse for packing and delivery. I created a status of Pending, intending to use off-line processing to query the HikaShop orders database to send emails to the relevant cost center managers, and upon receiving approval, change the order status to Confirmed.

What is the best way to accomplish what I am trying to do with minimal changes to the HikaShop code?

Any and all help / suggestions would be appreciated. We are HikaShop neophytes!

Thanks in advance!!

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

  • Posts: 2334
  • Thank you received: 403
10 years 5 months ago #159672

Hi there,

Reading your message, I think that you might be interested in HikaMarket: www.hikashop.com/extensions/hikamarket-multi-vendor.html
This Hikashop extension allows you to create multiple vendors (in your case the warehouse) with different products. Once this done, when your vendors will go on the website and order something, you can directly set the status of the order to confirmed and send an email to the warehouse (the email will be the one of the vendor). As Hikashop automatically send an email when an order is passed, the warehouse should receive the notification.

Tell me if it sounds good to you or if you had something else in mind!

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

  • Posts: 2
  • Thank you received: 0
10 years 5 months ago #159769

It turns out that I already purchased HikaMarket because I actually have more than one warehouse, each of which handles a different category of supply. My issue is that I don't want the vendor (the warehouse) to see the order until after it has been approved by a third party (the cost center manager). I will have to handle that offline, but I was hoping that HikaShop could help with setting the status for me. Specifically, I don't want the status to become "confirmed" automatically, but, if anything, "pending" (the new status I created). I presume there is some php code where I could make an easy change to do this, but I haven't looked for it yet. I am concerned that future updates might override any change that I make.

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
10 years 5 months ago #159786

Hi,

Directly editing the files is indeed not a good idea if you plan to update HikaShop in the future.

The default status of orders is "created". You can change that with the option "Default order status" of the configuration.
Next to it, you'll find other options regarding the status at different stage of the order process.
Otherwise, it's always possible to plug yourself in the process in order to set the order status you want by developping a small HikaShop plugin implementing one of the triggers we provide:
www.hikashop.com/support/support/documen...r-documentation.html

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

Time to create page: 0.071 seconds
Powered by Kunena Forum