| 开发者 | bigloopdev |
|---|---|
| 更新时间 | 2026年10月27日 03:13 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[dleta_estimate] on a product page, or [dleta_estimate id="123"] anywhere.dleta_start_date – change the date counting starts from (for example to add an order cut-off time).dleta_is_skipped_day – mark extra non-delivery days, such as public holidays.dleta_resolved_rule – change which rule applies to a product.dleta_show_for_product – show or hide the estimate for a product.dleta_formatted_dates, dleta_product_html, dleta_icon_html – change the output.dleta_date_format_presets – change the ready-made date formats offered in the settings.dleta_style_css – change the generated styling. The estimate uses the CSS custom properties --dleta-font, --dleta-size, --dleta-color, --dleta-date-color, --dleta-icon-size and --dleta-icon-color, so themes can also override them in CSS.dleta_product_positions – add product page positions.dleta_cart_context – adjust cart/checkout detection.dleta_cart_dates – change the combined cart estimate. The Cart and Checkout blocks receive it in the Store API cart response under extensions.dleta./wp-content/plugins/ or install it from Plugins > Add New.No. All calculations happen on your server. The plugin makes no external requests, loads no remote files and does not track anything.
If you use a page cache, product pages may be cached with yesterday's date. Set your cache to expire at least once a day, or exclude product pages from the cache.
WooCommerce runs the classic product page hooks inside its block templates, so the positions work in most block themes. If a position does not show in your theme, choose "Shortcode only" and add a Shortcode block with [dleta_estimate] where you want it.
Not from the settings screen yet. Developers can use the dleta_is_skipped_day filter.
It looks at every product in the cart that shows an estimate. Example: item A takes 2–4 days and item B takes 5–7 days. "Earliest to latest" shows days 2–7. "Complete order" shows days 5–7, the window in which everything should have arrived. Virtual products and products set to "Do not show" are left out.
WooCommerce > Settings > Estimated Delivery. The settings are split into four sections: Delivery time (with a live calendar showing what customers will see), Placement (with wireframes of the product, cart and checkout pages showing exactly where the estimate appears), Appearance (with a live preview) and Advanced.
Yes, if your theme (or a font plugin) already loads it. Choose "Custom" under Font and type the font name, for example "Open Sans", sans-serif. The plugin itself never loads fonts from outside your site.
To the estimate on the product page and in the [dleta_estimate] shortcode. On the cart and checkout pages the estimate follows your theme's styling, so it matches the rest of the cart.
Yes, with simple and variable subscription products. The estimate shows on the product page, in the cart and at checkout like any other product. The subscription itself does not store a date (it is not shipped); instead each renewal order gets a fresh estimate. You can switch that off under Placement > Orders and stock. Virtual subscriptions (for example memberships) show no estimate.
Yes. The plugin includes a wpml-config.xml. Estimates set on products, variations and categories are copied to their translations. Translate the label, the order label and the date format in WPML > String Translation; month and day names follow each language automatically.
Yes. Under WooCommerce > Settings > Estimated Delivery, set Icon to "Custom image (Media Library)" and choose an image. A small square SVG or PNG works best. The built-in icons follow your text color, or a color you pick.
Virtual products are not delivered, so no estimate is shown for them.
By default, settings are kept. To remove all settings and category/product estimates on deletion, tick "Uninstall" under WooCommerce > Settings > Estimated Delivery before deleting the plugin. Estimates already saved on orders are always kept as part of the order history.