Dear Andrea,
We hope this message finds you well.
Kindly update the custom code to the following:
add_filter('woocommerce_get_price_html', 'add_estimated_delivery_to_price', 999, 2);
function add_estimated_delivery_to_price($price, $product) {
if (is_product()) { // Only on the product page
ob_start();
add_filter('etheme_sales_booster_estimated_delivery', '__return_true');
$estimated_delivery = \Etheme_Sales_Booster_Estimated_Delivery::get_instance();
$estimated_delivery->init($product);
$estimated_delivery->args['in_quick_view'] = true;
$estimated_delivery->add_actions();
$original_tag = $estimated_delivery->args['tag'];
$estimated_delivery->args['tag'] = 'div';
$estimated_delivery->output();
$estimated_delivery->args['tag'] = $original_tag;
remove_filter('etheme_sales_booster_estimated_delivery', '__return_true');
$estimate = ob_get_clean();
$price .= $estimate;
}
return $price;
}
Additionally, please include the following custom CSS under XStore > Theme Options > Theme Custom CSS > Global CSS:
.elementor-widget-woocommerce-product-etheme_price .sales-booster-estimated-delivery {
display: none !important;
}
Thank you in advance for your assistance.
Best regards,
The 8Theme Team















