Support » Plugin: WooCommerce » Unable to place order. No parent product set for Variation.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Mike Jolley

    (@mikejolley)

    The product you are purchasing – is it published etc? The error is thrown if it has no ID, but has a variation ID. Would be a problem with the product itself or a plugin..

    Thread Starter cgt16

    (@cgt16)

    Yes it is published & has a SKU (is that the ID that you mean?).
    I maybe thought that it could be an issue with the UK shipping as we have had a European order in the mean time?

    I have the same problem after update woocommerce. Single products with no issues before all get that error. NO possibilty to go to the payment page.

    Plugin Author Mike Jolley

    (@mikejolley)

    Post your status reports. Must be something 🙂

    https://github.com/woothemes/woocommerce/blob/33346938855b334861678bccecef4a58e5fc0cfa/includes/class-wc-product-variation.php#L84-L85

    ID is and always have been required for variations. Variations must have a parent variable product.

    Thread Starter cgt16

    (@cgt16)

    Looks like I can access to payment page (and place an order) but only on “variable products”. “Simple products” with no variations come up with the error message (no parent product set for variation #0).

    Plugin Author Mike Jolley

    (@mikejolley)

    Simple products are not variations – they would not be affected by the code I referenced.

    You must have either a plugin or theme conflict. There is no other explanation.

    I found out that the WooCommerce Gift Card plugin causes the problem. Hope that helps.

    It does help! you saved my life, my client was freaking out because orders would be all blocked with $0 amount but disabling giftcard put every thing back to work. Thank you.

    This fixed my issue also! Whew, I’ve been dealing with this for a long time, glad to have it finally resolved.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Unable to place order. No parent product set for Variation.’ is closed to new replies.