Home Forums WoodMart – Premium Template Product not adding to cart

This topic contains 9 replies, has 2 voices, and was last updated by Artem Temos Artem Temos 3 years, 12 months ago.

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

    Pernilla
    Customer

    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.

    Private Content Hidden
    #22610

    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
    Customer

    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

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

    #22764

    Pernilla
    Customer

    Here they come, thank you!!!

    Private Content Hidden
    #22766

    Please, check how it works now.

    #22768

    Pernilla
    Customer

    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

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

    #22780

    Pernilla
    Customer

    Thank you. I am happy anyway =)

    #22804

    You are welcome! 🙂

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

OUTDATED. You cannot reply to this topic since it is created more than 6 months ago. If you still have any questions related to the topic don't hesitate to create a new one. Our support specialists would be happy to help!