diff --git a/admin/class-informatiq-sp-admin.php b/admin/class-informatiq-sp-admin.php index 48af8d62..a0d12219 100644 --- a/admin/class-informatiq-sp-admin.php +++ b/admin/class-informatiq-sp-admin.php @@ -886,8 +886,14 @@ class Informatiq_SP_Admin { // Get brand and cost from post meta. $brand = get_post_meta( $product_id, '_brand', true ); - $cost = get_post_meta( $product_id, '_cost', true ); - $cost = ( $cost !== '' && $cost !== false ) ? round( (float) $cost, 2 ) : null; + $cost_raw = get_post_meta( $product_id, '_cost', true ); + + // Convert cost to tax-inclusive to match other prices. + $cost = null; + if ( $cost_raw !== '' && $cost_raw !== false ) { + $cost = wc_get_price_including_tax( $product, array( 'price' => (float) $cost_raw ) ); + $cost = round( $cost, 2 ); + } // Get local price (tax-inclusive for comparison with Google). $sale_price = $product->get_sale_price();