Author Topic: change order number format  (Read 362 times)

serge-web54

  • Jr. Member
  • **
  • Posts: 53
change order number format
« 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

jflash

  • 3rd party VirtueMart Developer
  • Beginner
  • *
  • Posts: 48
Re: change order number format
« Reply #1 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?

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28147
  • Always on vacation
    • Jenkin Hill Internet
Re: change order number format
« Reply #2 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
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

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

Currently using VirtueMart 3.8.9.10473 on Joomla 3.9.24 PHP 7.4.14

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10170
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: change order number format
« Reply #3 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
         
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation