WordPress.org

Support

Support » Plugins and Hacks » Variation Add to Cart button reloads entire page.

Variation Add to Cart button reloads entire page.

  • I’m using a css customized product_page shortcode inserted into a post, because I need to show it in the index.php page (not setted as store and with a cart widget). Works normally except it’s not loading dynamically; all the index page reloads and a suffix like “?add-to-cart=variation&product_id=…” is appended in the index page url.

    I want to do something like this: http://www.youtube.com/watch?v=NFmpDhinuCI.

    I know that’s using the WooCommerce AJAX add to cart functionality, but I do not know how to make it works.

    Does anybody could help me?

    (This product is a variation type.)

    http://wordpress.org/extend/plugins/woocommerce/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Your example link needs to be edited a bit, it isn’t going straight to youtube.

    What is the link to your badly-behaving post/product, and the permalink to the product?

    Now fixed (sorry). I’m using an offline PHP host, so there’s no way to send links. But the central idea is show an Add-To-Cart button (variations product) in the index page, that works dynamically, not reloading the entire page, as the link example. Initially worked properly, but now isn’t. Sad.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Variation Add to Cart button reloads entire page.’ is closed to new replies.