OPC numbering set incorrect?

Please post your issues and questions about One Page Checkout for Virtuemart 2 to this forum.

OPC numbering set incorrect?

Postby retrogamedealer » Tue May 05, 2015 3:16 pm

Hi there,

So I wanted to enable the custom OPC numbering so the order and invoice numbers will be something like 2015000001, 2015000002, 2015000003 instead of virtuemart default numbering (1a4f023, 7445024, 9a21025).

To make this work I first went to:
-Configuration of RuposTel One Page Checkout---> OnePage Extensions

and installed
-plg_system_opc One Page Checkout for VirtueMart 2

Then I went to:
-Configuration of RuposTel One Page Checkout---> After checkout ---> OPC Numbering

and clicked on the dropdown menu of the order numbering and choose "new"

A new menu opened

The available format codes suggested that I use
-E-ORDER{YYYY}{nnnnnn} to generate the number E-ORDER2015000001 on the order

So I did that for the order and used E-INVOICE{YYYY}{nnnnnn} for the invoice.

Look at the picture below for the settings I used
Image

But now when the customer makes an order, the order number looks like this
-E-ORDER{YYYY}{nnnnnn}

instead of
- E-ORDER2015000001

question 1:
What did I do wrong or forget? How can I make sure the numbers will be E-ORDER2015000001 instead of the joomla default?

question 2:
Also, lets say I want the order number to start from E-ORDER2015000055 instead of E-ORDER2015000001, how do I fix this?

Best regards,
retrogamedealer
 
Posts: 4
Joined: Tue May 05, 2015 2:54 pm

Re: OPC numbering set incorrect?

Postby admin » Wed May 06, 2015 3:18 pm

hello, this is a very new feature in OPC and any sort of feedback or bug report is very welcome here.

i noticed that VM asks for the numbering BEFORE the order is actually stored within the database which makes is more complicated, but still possible, so maybe a few more lines are needed to finish this to the perfection.

i will try to add a "next autoincrement" value option into the new opc view.

i will send you an update in this matter after i do a few more tests for this.

best regards, stan, rupostel.com
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm

Re: OPC numbering set incorrect?

Postby retrogamedealer » Fri May 08, 2015 3:54 pm

Well thnx Stan I am looking foward to the solution of this problem ;) :) :D

To give u some more feedback on this matter:

- As you know I set the numbering to: {YYYY}{nnnnnn}
- Allthough before I mentioned that the tool numbering displays the orders as YYYYnnnnnn, the order that I made after that one got number YYYYnnnnnn-1, YYYYnnnnnn-2, YYYYnnnnnn-3, YYYYnnnnnn-4 ect ect

Hope this information helps you
retrogamedealer
 
Posts: 4
Joined: Tue May 05, 2015 2:54 pm

Re: OPC numbering set incorrect?

Postby admin » Mon May 11, 2015 3:34 pm

hello, thanks for further feedback, i am going to further test

for now, please change it to:
{ITm}nnnnnn

i need to re-test the logic of the wrappers ({ } ) and see on what would be the simplest and cleanest solution for this.

best regards, stan
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm


Return to One Page Checkout for Virtuemart 2

cron