Can’t redirect to previous page after using GET
Do you have exit(); after the header(… ? Do you issue the header() before any headers are sent already? If that’s a WooCommerce then I believe you are doing it wrong. Instead, you should enable AJAX adding to cart (that’s not straightforward on the individual product listings, and you may need to modify the default … Read more