Skip to content

Add to cart without ajax #270

Answered by crftwrk
iPolska asked this question in Q&A
Discussion options

You must be logged in to vote

Not in a simple way because bootScore's focus is on ajax cart. We're refactor the ajax cart in a further release #215. Then it is possible to disable ajax with a simple function in child. But for now I suggest roughly delete functions in main-theme, of course you have to do this again when updating the theme.

1. Remove ajax cart function

Delete snippet https://github.com/bootscore/bootscore/blob/main/woocommerce/woocommerce-functions.php line 29

// Register Ajax Cart
if (!function_exists('register_ajax_cart')) :

  function register_ajax_cart() {
    require_once('ajax-cart/ajax-add-to-cart.php');
  }
  add_action('after_setup_theme', 'register_ajax_cart');

endif;
// Register Ajax Cart End

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by iPolska
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #269 on September 29, 2022 15:18.