-
Is there any way to handle adding to cart without ajax? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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 functionDelete snippet https://github.com/bootscore/bootscore/blob/main/woocommerce/woocommerce-functions.php line // 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 OR Place the empty function in your child's function register_ajax_cart() {
}
add_action('after_setup_theme', 'register_ajax_cart'); 2. Remove offcanvas open on click
|
Beta Was this translation helpful? Give feedback.
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