Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter kjztuning

    (@kjztuning)

    go to

    woo-update-variations-in-cart/front/class-wc_update-variation_in-cart_ck.php

    Find the text and comment out the remove function.

    public function woo_ck_wuvic_update_product_in_cart() {
    
    		parse_str( $_POST[ 'form_data' ] );
    
    		global $wpdb,$woocommerce;
    
    		$cart_url = wc_get_cart_url();
    
    		if( '' != $variation_id){
    
    			//$woocommerce->cart->remove_cart_item($_POST['old_key']);
    			//Commented out to add new item to cart rathen than replace
    			//Keith - 23.6
    
    		}
    
    		wp_redirect($cart_url.'?'.$_POST['form_data']);die();

    Comment out remove function to leave the older item

    • This reply was modified 6 years, 12 months ago by kjztuning. Reason: wrong position of code tag
Viewing 1 replies (of 1 total)