• Resolved joshgreenert

    (@joshgreenert)


    We use a connection from WooCommerce to Solid Commerce where orders are sent through the WooCommerce API to be sent; from Solid Commerce, the orders are able to shipped and then the order data is passed back to WooCommerce to update the order status and tracking number.

    Recently, we noticed that our client had orders in the system that matched the numbers already within their database. To correct this, I used the Custom Order Numbers For WooCommerce plugin to update the numbers to include ‘WC’ at the beginning of every order number.

    While this allowed the numbers to be sent over, it doesn’t allow the numbers to be sent back from Solid Commerce most likely because the API uses the wp_post order number ID instead of the newly created order number listed on the orders screen from wp_postmeta.

    Is there a way to correct this issue? Like even by modifying the API call?

    TLDR: Orders weren’t coming into our 3rd party shipping application. Began using custom Orders for WooCommerce and now orders won’t return to woocommerce.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author tychesoftwares

    (@tychesoftwares)

    Hi @joshgreenert,

    Would you try the below solution on your site for getting back the orders to WooCommerce?

    For getting the Custom Order Number using the Rest API response you need to use the “number” variable instead of “id” variable. As you can see in this screenshot: https://prnt.sc/1tuxgqe which shows the API response, the number variable shows the correct custom order number.

    So in the code from where you are fetching the order id from the API response there, you will need to use the number variable and then it should be passed.

    Thread Starter joshgreenert

    (@joshgreenert)

    Solid Commerce uses their own connection that uses the standard WooCommerce API endpoints; hence, there is no way to make modifications on their end since none of that code can be accessed by myself personally.

    The only possible solution that I see is where I have to connect to the Solid Commerce API to pull the orders that meet my criteria from the names that i have in my database for wp_postmeta from the custom number plugin. Then confirm if the order has shipped and get the data over.

    @tychesoftwares This type of scenario should be covered in BOLD text on the top of your plugin data about 3rd party connections. Other users who aren’t familiar with how to make these calls will just think they have to use manual labor from now on.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom Numbers Plugin Won’t Allow Orders To Come Back For Update’ is closed to new replies.