• wpexthemes

    (@wpexthemes)


    We dont know why you product type from “variable” to “variation”
    This update make us lose a lot of time for full of bug

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

    (@mikejolley)

    No this did not change. You have always purchased variations, not variable. Variations are children of variable products.

    Thread Starter wpexthemes

    (@wpexthemes)

    Ok, i understand now.
    When i call
    $_product = apply_filters( ‘woocommerce_cart_item_product’, $cart_item[‘data’], $cart_item, $cart_item_key );

    In checkout page then in will receive variable id instead of product id.

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    If you use the ->get_id() method yes.

    Thread Starter wpexthemes

    (@wpexthemes)

    How can i get product id instead of variable ID ?

    Thank you.

    • This reply was modified 7 years ago by wpexthemes.
    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    $variation->get_parent_id()

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Why you change “variable” to “variation” ??’ is closed to new replies.