Hi,
I added this to function.php to display the estimate in the product archive pages. It works but unfortunately if I insert a different range in a specific product, it is not displayed but what is set in the general estimated delivery settings page is always displayed. Any ideas to solve it?
add_filter(‘woocommerce_get_price_html’, ‘add_estimated_delivery_to_price’, 99, 2);
function add_estimated_delivery_to_price($price, $product) {
if (is_shop() || is_product_category() || is_product_tag()) { // Only in the shop and categories page
$price .= ‘
‘ . do_shortcode(‘[etheme_sales_booster_estimated_delivery]’) . ‘
‘;
}
return $price;
}