Skip Navigation

[Resolved] Woocommerce order number showing as [Order Number – 1] on Classifieds site

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.

This thread is resolved. Here is a description of the problem and solution.

Problem: It seems like the Package Order number is incorrect on the Classifieds site "Manage My Listing Packages" page. It shows the WooCommerce Order number minus 1. It seems like these should be the same number.

Solution: The reason these numbers are different is that WooCommerce "Orders" and post type "Packages" are not the same thing. In the admin area, these two concepts are represented by two different Post Types - the WooCommerce Order and the Package post type. They are related, but not identical. Orders are used by WooCommerce to track purchases, Packages are used in the system to manage advertisements. The reason the numbers are sequential is because these two things are created sequentially when you submit the CRED Commerce form and then checkout, and WordPress uses sequential numeric IDs. A hidden field connects these two posts in the database so the Package can be updated automatically when the Order status changes.

You can see the two different items by going to WooCommerce > Orders, or by going to Packages > All items.

This support ticket is created 6 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 3 replies, has 2 voices.

Last updated by stephanieK-2 6 years, 10 months ago.

Assisted by: Christian Cox.

Author
Posts
#608157

I am trying to: show the packages that are active on the site (as per the toolset classifieds reference site).
On the front end, users see packages like this (after logging in, and assuming they have purchased packages):
see: hidden link

One the backend the orders are as follows:
hidden link

The views code is here: hidden link

I would expect that the numbers would match, but somehow they are being subtracted by 1. I haven't changed the code in this view... Any thoughts on this?

Thanks!

Stephanie

#608158

Just as a further to this, if I go in to the Woocommerce orders tab, the orders appear correctly:
hidden link

Thanks!

#608352

Hi, the reason these numbers are different is that WooCommerce "Orders" and post type "Packages" are not the same thing. In the admin area, these two concepts are represented by two different Post Types - the WooCommerce Order and the Package post type. They are related, but not identical. Orders are used by WooCommerce to track purchases, Packages are used in the system to manage advertisements. The reason the numbers are sequential is because these two things are created sequentially when you submit the CRED Commerce form and then checkout, and WordPress uses sequential numeric IDs. A hidden field connects these two posts in the database so the Package can be updated automatically when the Order status changes.

You can see the two different items by going to WooCommerce > Orders, or by going to Packages > All items.

#609409

Cool - very good to know that. Many thanks!

The forum ‘Types Community Support’ is closed to new topics and replies.