Plugin pre WooCommerce ktorý slúži na zobrazenie odhadovaného času doručenia. Dobu dodania je možné nastaviť globálne, alebo pre každý produkt samostatne. Taktiež je možné pridať vylúčené dni.
WooCommerce plugin that displays estimated delivery times. Delivery times can be set globally or for each product individually. It is also possible to add excluded days.
List of shortcodes used by the plugin and their handlers
——————————————————–
1) [delivery_time]
– Handler function: display_delivery_time_shortcode
– Purpose: Displays the estimated delivery time for the global product on a product page.
– Notes: Uses global $product; returns empty string if no WC_Product available. Shows a short note only when stock > 0.
– Usage example: [delivery_time]
2) [wcdt_additional_quantity]
– Handler function: wcdt_additional_quantity_shortcode
– Purpose: Shows delivery time message for ordering multiple pieces (backorder/extra quantity).
– Attributes: id (optional) — pass product ID to render outside product context.
– Usage example: [wcdt_additional_quantity] or [wcdt_additional_quantity id=“123″]
3) [delivery_time_next_state]
– Handler: anonymous closure registered via add_shortcode (inline callback)
– Purpose: Calculates and shows when additional quantity (next stock state) will be delivered, taking excluded days/dates and cutoff into account.
– Notes: Uses WP site timezone (wp_timezone()) in the moved version; relies on global $product.
– Usage example: [delivery_time_next_state]
Additional notes
—————-
– Excluded days and dates, cutoff time and per-product overrides affect all shortcodes that compute dates.
– For shortcode usage outside product loop, use attributes where supported (wcdt_additional_quantity accepts id).
– If you change shortcode implementation files, clear any server opcode cache (OPcache) to ensure changes load immediately.
Recenzie
Nikto zatiaľ nepridal hodnotenie.