Customize add to cart message in Woocommerce 3
问题 I would like to change the '"[product name]" has been added to your basket' prompt to say 'x item(s) has/have been added to your basket'. This thread explains how to edit the add to cart message, but I cannot find any information about the variables which can be used. How can I show the number of products added rather than the name? 回答1: Since Woocommerce 3, the filter hook wc_add_to_cart_message is obsolete and it's now replaced by wc_add_to_cart_message_html… The function usable variables