Skip to main content

Order admin notification shows order code instead of numeric order ID

3 weeks 5 hours ago #100000613 by Reincidente
-- Browser(s) name and version -- : Chrome 156.0

Hello Nicolas,
After updating to HikaShop Business 6.7.1, I've noticed a change in the order notification emails sent to the administrator.
Previously, the first lines of the email included the numeric order ID, for example:
"Hello,
You can access the order details directly by clicking on the link below after logging into your administration: 92860."
Now, after the update, the same email displays an alphanumeric order code instead, for example: H9Q2N8K60.
This is a problem for us because we use the numeric order ID extensively in our daily order management and internal processes.
My questions are:
  1. Is this an intentional change introduced in the latest version, or could it be a bug?
  2. Is there a way to restore the numeric order ID in the administrator notification email, as it appeared before?
  3. Could both identifiers be displayed in the email, without changing the existing order numbering configuration?
We would prefer a solution that doesn't require modifying HikaShop core files and that will remain compatible with future updates.
Thank you for your help.
Best regards,
José Ángel
Hermanos Galiano
www.hermanosgaliano.es
The following user(s) said Thank You: oxido

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

3 weeks 2 hours ago #100000616 by nicolas
Hi,

It is an intentional change, not a bug. In the latest build of HikaShop 6.7.1 (and in 6.8), the link to the order in the administrator notification shows the order number instead of the full back end address. That address was very long and made the email wider than the page in Outlook on Windows, cutting its right side on screen and when printed. The numeric ID you used was the order_id at the end of that address; the link itself still points to the same page, so clicking it opens the order as before.

Good to know first: with the default order number format of HikaShop, which yours is, the order number already contains the numeric ID. It is the digits of the ID with letters between them: in H9Q2N8K60, take the digits only and you get 92860, the ID of that order.

If you prefer to see the numeric ID written out, you can show it next to the order number, without touching any core file and without changing your order numbering:

1. In the back end, go to System > Emails and open "Order admin notification".

2. In the HTML version, switch to the Code view and find {TXT:ORDER_BEGIN_MESSAGE}

3. Replace it with: {TXT:ORDER_BEGIN_MESSAGE} ({VAR:order.order_id})

4. Save.

The first lines of the email will then read, for example: "...después de iniciar sesión en su administración: H9Q2N8K60 (92860)", with the order number still being the link. You can use the Preview button of that screen with one of your orders to check it before the next order arrives.

The version you save is written as a separate .modified.php file in media/com_hikashop/mail, so it is kept when you update HikaShop. The email form is explained here: www.hikashop.com/support/documentation/2...shop-email-form.html

If you also want the ID in the "Payment notification" email, the same change works there: its HTML version has the same {TXT:ORDER_BEGIN_MESSAGE} tag.

Another way, if you ever want the order number itself to be the numeric ID everywhere (emails, invoices, customer account, back end), is the "Order number format" setting in System > Configuration > Main > Order: set it to {id} instead of {automatic_code}. It changes the numbering you asked to keep, though, and only for the orders created after the change, existing orders keeping their current number. It is described here: www.hikashop.com/support/documentation/54-hikashop-config.html

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

3 weeks 2 hours ago #100000617 by Reincidente
The following user(s) said Thank You: nicolas

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

Time to create page: 0.053 seconds
Powered by Kunena Forum