Aleš Sýkora wrote

Translate labels in Iconic Delivery Slots

21. 1. 2021 in

If you need to change labels of fields added by Iconic Delivery Slots to WooCommerce checkout, use this snippet:

 * Replace WooCommerce Delivery Slots labels. 
 * @param array $labels An array of labels.
 * @param WC_Order $order The WooCommerce order object.
 * @return array
function iconic_modify_delivery_slots_label( $labels, $order ) {
	$labels['details']           = 'Způsob doručení';
	$labels['date']              = 'Datum doručení';
	$labels['select_date']       = 'Vybrat datum nebo doručení ihned';
	$labels['choose_date']       = 'Vyberte datum, kdy chcete Poke dovézt';
	$labels['select_date_first'] = 'Prosím vyberte nejdříve datum';
	$labels['choose_time_slot']  = 'Zvolte čas doručení';
	$labels['time_slot']  = 'Čas dovozu Poke';
	$labels['select_time_slot']  = 'Zvolte čas doručení';
	$labels['not_time_slots']  = 'Bohužel, nejsou volné žádné časy';
	return $labels;

add_filter( 'iconic_wds_labels', 'iconic_modify_delivery_slots_label', 10, 2 );

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

More from category
Aleš Sýkora wrote
Custom SCROLLBAR with Oxygen Builder
7. 12. 2020 in ,
Are you looking for some cool scroollbar, like on CSS-Tricks website? for a specific DIV use this in your custom CSS: for a whole document use body instead.
Read More
Aleš Sýkora wrote
Toggle Table Row with jQuery (usable in Toolset)
31. 12. 2019 in
If you want toggle to open a new row in the table, then you need to use some jQuery with Toolset again. First – create the table (you can use it in view, content tempate, etc.). All credit for this example goes to jsfiddle: And use it with this jQuery script. Do not forget […]
Read More
Aleš Sýkora wrote
Taxonomy Post Count for Custom Post Type
16. 5. 2019 in
Add this snippet to your functions.php or create your own plugin...
Read More
magnifiercross linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram