Support » Plugin: WooCommerce » How to Change Product ID

  • we need to change the product ID for woocommerce,right now it is 12 digit random number.Presently website is using orbital payment gateway and it appends 13 more digits to the product ID, that results in a error.

    Error:Validating Order ID

    Gateway guy are asking us to reduce down on Order ID length, only possible way is to shorten Product ID’s length. how do we do it? did a search no useful results.

    we are stuck due to this. Any Assistance or Guidance in this matter will be Appreciated

    https://wordpress.org/plugins/woocommerce/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Why you have that 12-digit product-ID at first?
    It is too much bigger than it has to be, I mean, for a “post-id”, as the products are only a custom-post-type where it gets its product-id from the post-id (from the wp_posts table, ID value).
    By default, that value is “auto-increment”, so why is yours “random” and “12-digit”?

    And for the “Order-ID” part,
    there is an extension for making it differ from the default-random generated IDs and make it sequential and custom controlled:
    http://docs.woothemes.com/document/sequential-order-numbers/

    Thread Starter Lalit Nagrath

    (@laliz)

    You are right, i installed woocommerce on localhost and for that product ID starts at single digit. for my client’s website the value is auto-increment but is 12 digit long right now, not sure how it got so big.

    so i suppose fix is to reinstall woocommerce and add all these products again?

    Thread Starter Lalit Nagrath

    (@laliz)

    installed WordPress afresh and migrated db, works fine now. no more 12 digit Product_ID’s

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to Change Product ID’ is closed to new replies.