Custom Order Number

  • Posts: 7
  • Thank you received: 0
9 years 6 months ago #201852

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.5.23
-- Browser(s) name and version -- : Chrome 42

Our site has a custom format order number which includes the customer's Joomla ID number ({user user_cms_id}-{date format="mdY"}-{id size="4"}). When customers purchase products through the public-facing side of the site, the order numbers are correct. However, if an administrator tries to create an order for a customer through the administrator side of the website, the Joomla ID of the customer is not included in the order number, even after the order is assigned to the correct customer.

Is there a way to "refresh" the order number after an order is created so that it contains the Joomla ID as intended?

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
9 years 6 months ago #201881

Hi,

There is no interface in order to change the order number when you edit an order.
There are two solutions:
- You could edit the order entry in the hikashop_order tabel of the database via your phpmyadmin in order to change the value in the order_number column.
- You could create a mass action via the menu System>Mass actions, set a filter on the order_id column equal to the id of your order and an action to update the values of the "order_number" column equal to the order_number you want and then just click on the "process" button of the mass action. Please do a backup before trying that as there is no going back and you could potentially mess up all your data if you make a mistake when using mass actions.

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

Time to create page: 0.113 seconds
Powered by Kunena Forum