Home Forums WoodMart support forum Product not adding to cart

Product not adding to cart

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #22607

    Pernilla
    Participant

    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.

    #22610

    Artem Temos
    Keymaster

    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

    #22760

    Pernilla
    Participant

    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' );
    
    #22762

    Artem Temos
    Keymaster

    Could you please provide us your FTP access so we can check it?

    #22764

    Pernilla
    Participant

    Here they come, thank you!!!

    #22766

    Artem Temos
    Keymaster

    Please, check how it works now.

    #22768

    Pernilla
    Participant

    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!

    #22771

    Artem Temos
    Keymaster

    Sorry, but this function works with AJAX add to cart only.

    #22780

    Pernilla
    Participant

    Thank you. I am happy anyway =)

    #22804

    Artem Temos
    Keymaster

    You are welcome! 🙂

Viewing 10 posts - 1 through 10 (of 10 total)