custom add to cart redirection for a defined product category in WooCommerce 3
问题 On a WooCommerce website I would like to be redirect customers on checkout page just after a product is added to cart. However we want it to be for that specific product category instead of all the add to cart buttons. I have tried to look up past solutions but they either just crash my site when I update the functions.php or they are outdated and don't work anymore. I really appreciate any help. 回答1: Updated: Add to cart redirection will not work with ajax add to cart on shop and archives