1
vote
Remove "?add-to-cart=product-id" from Add to Cart URL when on the Cart page
Combining @xnagyg's hook and @dev_masta's JS, this gets rid of ?add-to-cart in the cart page so you can freely use refresh and back button. Also doesn't affect AJAX functionality
add_action('...
- 277
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
woocommerce-offtopic × 3936php × 551
plugins × 424
functions × 234
plugin-development × 216
categories × 193
hooks × 168
customization × 160
wp-query × 134
filters × 120
custom-field × 106
ajax × 84
theme-development × 71
custom-taxonomy × 70
css × 69
rest-api × 68
email × 68
javascript × 67
actions × 66
custom-post-types × 65
loop × 63
search × 62
templates × 59
order × 59
shortcode × 58