<body <?php body_class(); ?> <?php if($type) code example
Example 1: add class to body class wordpress
<body <?php body_class( 'class-name' ); ?>>
Example 2: woocommerce body class in childtheme
<body <?php body_class(); ?>>
<body <?php body_class( 'class-name' ); ?>>
<body <?php body_class(); ?>>