VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: serge-web54 on June 08, 2021, 06:30:55 AM

Title: change order number format
Post by: serge-web54 on June 08, 2021, 06:30:55 AM
hello, i migrated an 1.5 site to j3 for a personnal business
the orders were following as this : 132, 133,134 ... aso
now with vm3 it is randomized
i need to have the order numbers following
the plugin advanced order number from opentools is not maintainde and i have this error when installing :

Fatal error : require(): Failed opening required 'JPATH_VM ADMINISTRATOR/plugins/vmplugin.php' (include_path='.:/usr/lib/php7.4') in /homepages/24/d220609846/htdocs/clickandbuilds/Joomla/RC-Collector/tmp/install_60be0e85bdf44/ordernumber.script.php on line 46


so what should be the solution to change the format of the order
Title: Re: change order number format
Post by: jflash on June 08, 2021, 11:29:03 AM
For custom order numbers i use same plugin under PHP 7.3 and it works. Why you dont ask from Open Tools developer?
Title: Re: change order number format
Post by: jenkinhill on June 08, 2021, 11:43:09 AM
Rheinhold from Open Tools no longer supports his extensions and made them available for free in case anyone can use them.

The extension from iStraxx is supported:
https://extensions.virtuemart.net/automated-numbers-detail
Title: Re: change order number format
Post by: GJC Web Design on June 08, 2021, 15:00:11 PM
try adding 

VmConfig::loadConfig();

after

require(JPATH_ROOT.DS.'administrator'.DS.'components'.DS.'com_virtuemart'.DS.'helpers'.DS.'config.php');

in  ordernumber.script.php