New Landing How can we help? Atelier Variable product , Not is removed from cart

Viewing 15 posts - 1 through 15 (of 17 total)
  • Posted in: Atelier
  • #179893
    saylife
    Member
    Post count: 161

    Hi!
    Not deleted variable product from the Cart.

    And when you choose a variable product,the function of the ajax cart doesn’t work, page is completely reloaded.

    I tested with the settings from the demo content was the same.

    Look here

    http://recordit.co/7LumHTkqDE

    #179894
    saylife
    Member
    Post count: 161
    This reply has been marked as private.
    #180017
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    It seems a plugin conflict. Can you try to deactivate all plugins except Woocommerce?
    Clear the browser cache and repeat the test.

    If it works you should activate the plugins one by one to figure out what plugin is causing it.

    -Rui

    #180172
    saylife
    Member
    Post count: 161

    Hi!
    I did as you suggest but doesn’t work.
    I try not to ask for your help on the little things, but this is a serious bug , and plug-ins are not to blame 100%.
    And I found another problem,my Global Header Banner breaks the entire site and doesn’t work.

    #180174
    saylife
    Member
    Post count: 161

    #180182
    saylife
    Member
    Post count: 161

    That would not waste your and my time .

    You make a Variable product on your demo web site.

    And you will understand,what I mean.

    Not deleted variable product from the Cart.

    And when you choose a variable product,the function of the ajax cart doesn’t work, page is completely reloaded.
    I tested with the settings from the demo content was the same.

    http://recordit.co/7LumHTkqDE

    #180233
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    I manage to replicate it in our demo site. Will have to check this with the development team.

    Thanks for the heads up.

    -Rui

    #180239
    saylife
    Member
    Post count: 161
    This reply has been marked as private.
    #180340
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Didn’t understand the observation about the team. Can I enable the Global banner in your site to see what is going on?

    We already fixed the remove of variable products.
    Can you add the code below to your functions.php of the child theme

    
    
    	/* WOO REMOVE PRODUCT FROM CART
        ================================================== */
    	if ( ! function_exists('sf_cart_product_remove')){
    		function sf_cart_product_remove() {
    
        		global $wpdb, $woocommerce;
    
    			$id = 0;
    
                if ( ! empty( $_REQUEST['product_id'] ) ) {
                    $id = $_REQUEST['product_id'];
                }
                            
                $cart = WC()->instance()->cart;
                $cart = $woocommerce->cart;
                $id = $_POST['product_id'];
                            
                foreach ( WC()->cart->get_cart() as $cart_item_key => $cart_item ) {
                	
                	    if ( $cart_item['product_id'] == $id ){
                	   		$cart->set_quantity($cart_item_key,0);	
    					}           
                }
                	
       			$totalamount =  $woocommerce->cart->get_cart_total();
       			echo $totalamount;
    
    			die();
        	}
    
        	add_action( 'wp_ajax_sf_cart_product_remove', 'sf_cart_product_remove' );
    		add_action( 'wp_ajax_nopriv_sf_cart_product_remove', 'sf_cart_product_remove' );
    	}

    -Rui

    #180344
    saylife
    Member
    Post count: 161

    Thank you , very quickly !!

    Variable product ,now is removed normally.

    That’s just not working,function of the ajax cart . Page is completely reloaded.

    #180345
    saylife
    Member
    Post count: 161
    This reply has been marked as private.
    #180348
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    can you check again your global banner? It was missing the closing tag of the icon in the 3 text widgets.

    That’s how it works the cart page, it’s reloaded.

    -Rui

    #180352
    saylife
    Member
    Post count: 161

    Cool , so quickly!!
    The background color should be changed also through the widget?

    —————

    Sorry I’m a little do not understand the translation of your words.

    That’s how it works the cart page, it’s reloaded.

    -Rui

    You mean nothing to do with this problem?
    Then why single product, it works and does not reloaded ?

    #180359
    saylife
    Member
    Post count: 161

    I found where to change the background of the Global Header Banner.

    Template”Atelier” super ,everything made logical and intuitive!!!
    You tried very hard guys, it’s cool.

    I can safely say that your work is good , more flexible than Template “Lobo”

    #180886
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Thanks. Appreciated your kind words.
    -Rui

Viewing 15 posts - 1 through 15 (of 17 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register