Tekst in winkelmand / add to cart knop in WooCommerce wijzigen
Veel zaken in WooCommerce kun je vertalen in WooCommerce met bijv. de Loco Translate plugin. Dit zal vaak zonder problemen werken.
De in winkelmand knop kun je ook vertalen. Een andere optie is om de onderstaande code in je functions.php van je child-theme te plaatsen of in een plugin als bijvoorbeeld code snippets.
// To change add to cart text on single product page add_filter( 'woocommerce_product_single_add_to_cart_text', 'woocommerce_custom_single_add_to_cart_text' ); function woocommerce_custom_single_add_to_cart_text() { return__( 'In uw winkelwagen', 'woocommerce' ); } // To change add to cart text on product archives(Collection) page add_filter( 'woocommerce_product_add_to_cart_text', 'woocommerce_custom_product_add_to_cart_text' ); function woocommerce_custom_product_add_to_cart_text() { return__( 'In uw winkelwagen', 'woocommerce' ); }