Product not adding to cart
-
I have problems adding product to the cart. I am using gravity forms and when using woo commerce theme it works fine but when activating WoodMart theme it does not work. What can cause this problem. I really am in love with the theme and hope you can help me to make it work.
Hi,
It will not work with our theme AJAX adding to cart since our scripts are not aware about any custom fields that added externally and not related to WooCommerce. So you need to disable AJAX add to cart on single product adding the following code snippet to the functions.php file in your child theme
add_filter( 'basel_ajax_add_to_cart', '__return_false' );
Regards
Thank you but it still does not work ;(
Did I add it correctly into functions.php?
It looks like this:
<?php
add_action( 'wp_enqueue_scripts', 'woodmart_child_enqueue_styles', 1000 );
function woodmart_child_enqueue_styles() {
if( woodmart_get_opt( 'minified_css' ) ) {
wp_enqueue_style( 'woodmart-style', get_template_directory_uri() . '/style.min.css', array('bootstrap') );
} else {
wp_enqueue_style( 'woodmart-style', get_template_directory_uri() . '/style.css', array('bootstrap') );
}
wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array('bootstrap') );
}
add_filter( 'basel_ajax_add_to_cart', '__return_false' );
Could you please provide us your FTP access so we can check it?
Here they come, thank you!!!
Please, check how it works now.
Yes, it does!!!
So what I am missing without AJAX is the function that opens the cart at the right side of the page when adding something to the cart?
Thank you for quick support and a great theme!
Sorry, but this function works with AJAX add to cart only.
Thank you. I am happy anyway =)