Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

Order Number instead Order ID
(1 viewing) (1) Guest
Support forum for customers who have purchased this product. Archive only, no new post can be added.

NOTE: This category has been locked. If you have purchased paid version, please, use our Support Ticket system instead. If you are using free edition, please see the Community Support section.
  • Page:
  • 1

TOPIC: Order Number instead Order ID

Order Number instead Order ID 11 years, 5 months ago #34087

In the order list of Artio Invoice I see the ORDER ID. But I would like to see the real Order Number (the same order number that customer can see on his account). Is itpossible?

View attachement to details
NOorderIDbutOrdernumber.JPG



Thanks
Mauro N.
www.ediprint.net
Last Edit: 11 years, 5 months ago by ediprint.
The topic has been locked.

Re: Order Number instead Order ID 11 years, 4 months ago #34790

The order numbers generated by VM Invoice follow a different pattern than use.

In VM I changed the numbering on file:
...\administrator\components\com_virtuemart\models\orders.php

in method changed:
private function generateOrderNumber($uid = 0,$length=10, $virtuemart_vendor_id)
{
// changed by numer ordering

$db = JFactory::getDBO();

$q = 'SELECT max(virtuemart_order_id) as maxOrder FROM #__virtuemart_orders';
$db->setQuery($q);

$count = $db->loadResult();


return $count+1;
}

I wonder if you can change the VM Invoice to follow the same pattern.
Thans
Attachments:
Last Edit: 11 years, 4 months ago by peterson.gomes.
The topic has been locked.

Re: Order Number instead Order ID 11 years, 4 months ago #35082

  • pama
  • OFFLINE
  • Posts: 489
Hello. Yes, you must edit by same way function generateOrderNumber, which is in administrator\components\com_vminvoice\tables\vm2order.php.

We could call the VM function directly, but it is marked as private in VM code, co cannot be accessed from outside.
ARTIO Support Team
The topic has been locked.
  • Page:
  • 1
User Login Empty