| @@ 1456-1462 (lines=7) @@ | ||
| 1453 | _wc_save_product_price( $variation_id, $regular_price, $sale_price, $date_from, $date_to ); |
|
| 1454 | ||
| 1455 | // Tax class. |
|
| 1456 | if ( isset( $variation['tax_class'] ) ) { |
|
| 1457 | if ( $variation['tax_class'] !== 'parent' ) { |
|
| 1458 | update_post_meta( $variation_id, '_tax_class', wc_clean( $variation['tax_class'] ) ); |
|
| 1459 | } else { |
|
| 1460 | delete_post_meta( $variation_id, '_tax_class' ); |
|
| 1461 | } |
|
| 1462 | } |
|
| 1463 | ||
| 1464 | // Downloads. |
|
| 1465 | if ( 'yes' === $is_downloadable ) { |
|
| @@ 1716-1722 (lines=7) @@ | ||
| 1713 | } |
|
| 1714 | ||
| 1715 | // Tax class |
|
| 1716 | if ( isset( $variation['tax_class'] ) ) { |
|
| 1717 | if ( $variation['tax_class'] !== 'parent' ) { |
|
| 1718 | update_post_meta( $variation_id, '_tax_class', wc_clean( $variation['tax_class'] ) ); |
|
| 1719 | } else { |
|
| 1720 | delete_post_meta( $variation_id, '_tax_class' ); |
|
| 1721 | } |
|
| 1722 | } |
|
| 1723 | ||
| 1724 | // Downloads |
|
| 1725 | if ( 'yes' == $is_downloadable ) { |
|