• Resolved jerrypoweri3iotnet

    (@jerrypoweri3iotnet)


    I want to put the product table and the shopping cart on one page. When I do this the cart section of the page does not update after adding a product to the cart. I need to add a hook so the entire page refreshes after an add to cart action. The following code is supposed to work for woocommerce but it appears that Woo product table uses a different add_to_cart process. How do I change the following code to work in a Product Table environment…

    add_action('woocommerce_add_to_cart', 'refresh_function'); 
    function refresh_function(){	
    header("Refresh:0");
    }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘shopping cart hook’ is closed to new replies.