Estimated delivery visible in page archive product

This topic has 1 reply, 1 voice, and was last updated 19 seconds ago ago by Andrea

  • Avatar: Redgall
    Andrea
    Participant
    March 6, 2025 at 18:17

    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;
    }

    Files is visible for topic creator and
    support staff only.
  • Viewing 1 results - 1 through 1 (of 1 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.