Home / Forums / WoodMart support forum / Product not adding to cart
Home › Forums › WoodMart support forum › Product not adding to cart
Product not adding to cart
- This topic has 9 replies, 2 voices, and was last updated 8 years, 1 month ago by
Artem Temos.
-
AuthorPosts
-
October 26, 2017 at 12:36 pm #22607
PernillaParticipantI 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.
October 26, 2017 at 12:59 pm #22610
Artem TemosKeymasterHi,
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
October 28, 2017 at 10:02 am #22760
PernillaParticipantThank 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' );October 28, 2017 at 10:49 am #22762
Artem TemosKeymasterCould you please provide us your FTP access so we can check it?
October 28, 2017 at 11:39 am #22764
PernillaParticipantHere they come, thank you!!!
October 28, 2017 at 12:13 pm #22766
Artem TemosKeymasterPlease, check how it works now.
October 28, 2017 at 12:18 pm #22768
PernillaParticipantYes, 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!
October 28, 2017 at 1:57 pm #22771
Artem TemosKeymasterSorry, but this function works with AJAX add to cart only.
October 28, 2017 at 5:56 pm #22780
PernillaParticipantThank you. I am happy anyway =)
October 29, 2017 at 1:25 pm #22804
Artem TemosKeymasterYou are welcome! 🙂
-
AuthorPosts
Tagged: adding to cart
- You must be logged in to create new topics. Login / Register