Advanced Ordernumbers for VirtueMart

IMPORTANT ANNOUNCEMENT: Plugin development ceased, all plugins made available freely (GPL)

With great sadness we have to announce that we are ceasing development of all our VirtueMart, WooCommerce and Joomla plugins. Effective immediately, all our plugins -- even those that were paid downloads -- are made available for free from our homepage (GPL license still applies), but we cannot and will not provide any support anymore.

It has been a great pleasure to be part of the thriving development communities of VirtueMart as well as WooCommerce. However, during the last year it became painstakingly clear that in addition to a full-time job, a young family and several other time-consuming hobbies at professional level (like being a professional singer) the plugin development and the support that it requires is not sustainable and is taking its toll. It has been an honor, but it is now time to say good bye!



The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1


Product count incorrect after declined transaction 21 Dec 2018 05:21 #1

  • webcando
  • webcando's Avatar Topic Author
- Advanced Ordernumbers for VirtueMart Version 4.0.6
- VirtueMart version: 3.2.14
- Joomla version: 3.8.12
- PHP version: 7.1.25
- Webserver: Apache
- Log files do not contain any related PHP messages or warnings

We use advanced ordernumbers for Virtuemart plugin to generate custom order numbers of the format: 9[####]-[userID]-[orderDiscount]-[Products]

This works fine except when the user's credit card is declined for any reason such as they mis-type the credit card number. In those cases, the last digit of the order number [Products] which should represent the count of the number of products in the cart is always 0.

For example, on a successful purchase and checkout order numbers are generated such as 90380-6371-0-1 , where the last digit tells us that only 1 product was purchased. However, if the same user were to mistype there credit card number causing the transaction to be declined, and then they subsequently complete the checkout by correcting the error, the order number is generated as 90380-6371-0-0 , where the last digit is now 0 even though they competed the transaction with 1 product in the cart.

In summary, if the purchase is declined for any reason, and the user then corrects the issue and successfully checks out, the order number which is generated always has a 0 in the last position regardless of how many products where purchased in the cart.

Please help with a solution for this as this last digit is critical in our application.
  • Page:
  • 1