News:

Support the VirtueMart project and become a member

Main Menu

change order number format

Started by serge-web54, June 08, 2021, 06:30:55 AM

Previous topic - Next topic

serge-web54

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

jflash

For custom order numbers i use same plugin under PHP 7.3 and it works. Why you dont ask from Open Tools developer?

jenkinhill

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
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

GJC Web Design

try adding 

VmConfig::loadConfig();

after

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

in  ordernumber.script.php
         
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation