This commit is contained in:
Mike Jolley 2018-03-07 11:47:42 +00:00
parent 46862deb17
commit 07e17aafd5
1 changed files with 1 additions and 1 deletions

View File

@ -492,7 +492,7 @@ function wc_shipping_methods_have_changed( $key, $package ) {
*/
function wc_get_cart_item_data_hash( $product ) {
return md5( wp_json_encode( apply_filters( 'woocommerce_cart_item_data_to_validate', array(
'price' => $product->get_type(),
'type' => $product->get_type(),
'attributes' => 'variation' === $product->get_type() ? $product->get_variation_attributes() : '',
) ) ) );
}