Support » Plugin: PW WooCommerce Gift Cards » Unable to retrieve variation 0

  • Resolved mattialeoni


    when there’s an order with status “processing”, if i’m manually select the status “completed”, after the update of the order instead of sending the email with the gift card code it show the message “Unable to retrieve variation 0”.

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


    Based on the error message, the purchased Variation ID that should belong with the order is missing.

    The PW Gift Card product type is an extension of the Variable Product type that is built into WooCommerce. The Order contains the “variation_id” in the order item record.

    The error message indicates that the variation_id is blank (zero) and therefore the variation cannot be retrieved.

    It’s possible that this order is corrupt or another plugin might be interfering. As a quick test, delete this order and place another to see if the issue persists. If it does, try temporarily disabling any plugins that you have which interact with the WooCommerce order process to see if you can find the culprit.

    Thread Starter mattialeoni


    I didn’t correctly put the variation ID during the add to cart function, solved.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Unable to retrieve variation 0’ is closed to new replies.