Your account is limited to posting only in the Pre-Sales Questions forum.
Support forum access is limited to members with a purchase history.

If you are working on behalf of another member, please contact us with the name of the license holder and we will upgrade your account.
   
 
Starting Order Number
Posted: 16 March 2012 11:24 AM   [ Ignore ]
Is a Really Great Dancer
RankRank
Total Posts:  87
Joined  2011-09-23

What is the easiest way to make order #‘s start at a custom number 1700 and then increment from there?

Thanks,
James

Profile
 
 
Posted: 19 March 2012 08:53 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  10241
Joined  2008-09-29

1. in orders settings set “Order/Invoice Numbers” to “Create sequential order/invoice numbers”

2. Set the most recent order’s entry’s title to Order #1699

Future orders will increment from there.

 Signature 

We’re moving away from the forums, though not entirely and not immediately. Lack of support lately is coincidental to that. Unfortunately we’ve had a bad month with it, but we do not forsee that we will have any continued problems with support through our portal going forward, or on forums while we’re still transitioning. We will send out a newsletter and make additional notifications through twitter and other outlets over the coming weeks.

Moving forward; things returning to normal.

Profile
 
 
Posted: 19 March 2012 09:13 AM   [ Ignore ]   [ # 2 ]
Is a Really Great Dancer
RankRank
Total Posts:  87
Joined  2011-09-23

I tried that by changing the title and url_title and the next sequential number generated was still incrementing from the previous sequential number. Do I need to change to entry ID and then save back as sequential?

Thanks,
James

Profile
 
 
Posted: 20 March 2012 01:56 PM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

Hey James,

A quick sql query will take care of it:

UPDATE exp_cartthrob_settings SET value 1700 WHERE `key` = 'last_order_number' AND site_id 

If you have MSM you’ll have to look up the correct site id.

Profile
 
 
Posted: 21 March 2012 05:37 AM   [ Ignore ]   [ # 4 ]
Is a Really Great Dancer
RankRank
Total Posts:  87
Joined  2011-09-23

Excellent, Thanks Rob.

Profile
 
 
Posted: 11 May 2012 06:22 AM   [ Ignore ]   [ # 5 ]
Is a Really Great Dancer
RankRank
Total Posts:  72
Joined  2011-07-18

This seems like a structural flaw, I tried to set the invoice number several times, also by completely removing the suffix in the settings, but it did not change anything. Changing last_order_number did however.

Profile
 
 
Posted: 14 May 2012 05:06 AM   [ Ignore ]   [ # 6 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  10241
Joined  2008-09-29

When CT was upgraded, the ability to change the title and update the Order ID that way was removed. I think we’d intended to add a setting for the last order number, but It doesn’t look like it was implemented. I’ll ask Rob if he knows the status.

 Signature 

We’re moving away from the forums, though not entirely and not immediately. Lack of support lately is coincidental to that. Unfortunately we’ve had a bad month with it, but we do not forsee that we will have any continued problems with support through our portal going forward, or on forums while we’re still transitioning. We will send out a newsletter and make additional notifications through twitter and other outlets over the coming weeks.

Moving forward; things returning to normal.

Profile
 
 
Posted: 14 May 2012 09:06 AM   [ Ignore ]   [ # 7 ]
Administrator
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

The advice at the top of this thread no longer applies, the order numbering was changed a while back. Now it uses the hidden last_order_id setting to determine the position of the order numbering.

Profile
 
 
Posted: 21 May 2012 05:23 AM   [ Ignore ]   [ # 8 ]
Wallflower
Rank
Total Posts:  23
Joined  2010-07-19

Where would one find this hidden setting?

Profile
 
 
Posted: 22 May 2012 04:59 AM   [ Ignore ]   [ # 9 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  10241
Joined  2008-09-29

config.php. change last_order_number to your order number. Create a new order… then set that back to 0. I don’t’ know if rob has a smoother way of doing that… but I believe that should work.

 Signature 

We’re moving away from the forums, though not entirely and not immediately. Lack of support lately is coincidental to that. Unfortunately we’ve had a bad month with it, but we do not forsee that we will have any continued problems with support through our portal going forward, or on forums while we’re still transitioning. We will send out a newsletter and make additional notifications through twitter and other outlets over the coming weeks.

Moving forward; things returning to normal.

Profile
 
 
Posted: 22 May 2012 05:45 AM   [ Ignore ]   [ # 10 ]
Wallflower
Rank
Total Posts:  23
Joined  2010-07-19

Don’t know if that will work Chris but I (under Rob’s direction) updated the last_order_number field in the ct_settings table. Seems to work OK.

Profile
 
 
Posted: 22 May 2012 07:51 AM   [ Ignore ]   [ # 11 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  10241
Joined  2008-09-29

sweet.

 Signature 

We’re moving away from the forums, though not entirely and not immediately. Lack of support lately is coincidental to that. Unfortunately we’ve had a bad month with it, but we do not forsee that we will have any continued problems with support through our portal going forward, or on forums while we’re still transitioning. We will send out a newsletter and make additional notifications through twitter and other outlets over the coming weeks.

Moving forward; things returning to normal.

Profile
 
 
Posted: 16 July 2012 04:45 PM   [ Ignore ]   [ # 12 ]
Is a Really Great Dancer
RankRank
Total Posts:  92
Joined  2011-08-01

I’d also like to reset or at least alter the order numbers. I looked for the ct_settings table and poked my head in other tables that sounded promising but couldn’t find the last_order_number field. Where exactly is it?

Thanks and Cheers!

Profile
 
 
Posted: 17 July 2012 04:56 AM   [ Ignore ]   [ # 13 ]
Administrator
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

The setting is stored in the exp_cartthrob_settings table, where the `key` is equal to last_order_number. To reset, you’d perform this SQL query:

UPDATE exp_cartthrob_settings SET value 0 WHERE `key` = 'last_order_number'

I’m going to add a setting to the CP where you can change this, so we can be done with this problem once and for all smile

Profile
 
 
Posted: 17 July 2012 03:29 PM   [ Ignore ]   [ # 14 ]
Is a Really Great Dancer
RankRank
Total Posts:  92
Joined  2011-08-01

Ok, I went into the db but a setting in the CP would be sweet nonetheless. Thanks!

Profile