News:

Support the VirtueMart project and become a member

Main Menu

VM3: How to set the starting order number to 3000?

Started by hhtmp88, December 04, 2014, 13:52:07 PM

Previous topic - Next topic

hhtmp88

JMY(晉明夷)
http://mfyoga.org -- Mindfulness Yoga Association 靜觀瑜伽協會
http://yogajm.com -- YogaJM 晉明瑜伽
http://jinmy.me -- JMY 晉明日誌
http://jm3ime.com -- JinMing 3-Key Chinese Input Method 晉明三鍵輸入法

GJC Web Design

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

hhtmp88

JMY(晉明夷)
http://mfyoga.org -- Mindfulness Yoga Association 靜觀瑜伽協會
http://yogajm.com -- YogaJM 晉明瑜伽
http://jinmy.me -- JMY 晉明日誌
http://jm3ime.com -- JinMing 3-Key Chinese Input Method 晉明三鍵輸入法

reinhold

The default order number is hardcoded in Virtuemart (file administrator/components/com_virtuemart/models/orders.php, function generateOrderNumber) as:
  -) Count of existing orders in the database
  -) Plus the constant VM_ORDER_OFFSET

That constant offset VM_ORDER_OFFSET is defined in administrator/components/com_virtuemart/helpers/config.php with a value of 3.

So to change the default VM order number counter, all you can do is to modify that config.php file from the VM code base, which will, however, be overwritten when you update VM...

Best regards,
Reinhold

hhtmp88

Thanks reinhold for your comments!
-> will try it out!
JMY(晉明夷)
http://mfyoga.org -- Mindfulness Yoga Association 靜觀瑜伽協會
http://yogajm.com -- YogaJM 晉明瑜伽
http://jinmy.me -- JMY 晉明日誌
http://jm3ime.com -- JinMing 3-Key Chinese Input Method 晉明三鍵輸入法