Support » Plugin: WP eCommerce » [Plugin: WP e-Commerce] Disable ajax on add to cart

Viewing 2 replies - 1 through 2 (of 2 total)
  • A quick workaround, without hacking WP E-Commerce core :

    Open these files (located in your current theme) :

    • wpsc-grid_view
    • wpsc-list_view
    • wpsc-products_page
    • wpsc-single_product

    And find the product form in each of them :

    <form class="product_form" ... >

    All you need to do is to add within this form is :

    <input type="file" name="fake_file_to_disable_ajax" style="display: none;" />

    Why this workaround ? The Javascript function in wp-content/plugins/wp-e-commerce/wpsc-core/js/wp-e-commerce.js verifies that there is not file field before starting the ajax request.

    Nice! what a cool way to avoid messing with core files!

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WP e-Commerce] Disable ajax on add to cart’ is closed to new replies.