Home Forums WoodMart support forum Ajax add to cart not working Reply To: Ajax add to cart not working


samer zayer

i saw this user having the same issue and im also having my site hosted in godaddy

so i added this :

add_filter(‘woocommerce_add_to_cart_redirect’, function( $url ) {
if( strpos( $url, ‘product-added-to-cart’ ) > 0 || strpos( $url, ‘product_added_to_cart’ ) > 0) {
return ”;
return $url;

it worked fine but i want to make sure if im doing the right thing.. because i disabled all plugins before and it didnt work