Hello @ronen24
Thank you for choosing our plugin.
We apologize for the inconvenience.
Please try to add the below code to your child theme functions.php file and try again.
// Remove attributes name from the product title.
function asnp_wepb_prepare_product_data( $data, $product, $item, $extra_data ) {
if ( empty( $data ) || empty( $data['name'] ) ) {
return $data;
}
if ( $product->is_type( 'variation' ) ) {
$data['name'] = $product->get_title();
if ( ! empty( $extra_data['attributes'] ) ) {
$attributes = [];
foreach ( $extra_data['attributes'] as $attribute ) {
$attributes[] = sanitize_text_field( $attribute['label'] );
}
if ( ! empty( $attributes ) ) {
$data['name'] .= ' ' . implode( ', ', $attributes );
}
} else {
$data['name'] .= ' ' . wc_get_formatted_variation( $product, true, false );
}
$data['name'] = sanitize_text_field( $data['name'] );
}
return $data;
}
add_filter( 'asnp_wepb_prepare_product_data', 'asnp_wepb_prepare_product_data', 10, 4 );
I hope it helps.
Best Regards