• Resolved bkhan110

    (@bkhan110)


    Variations and products with attributes shows “No shipping method found” on checkout page.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter bkhan110

    (@bkhan110)

    Thread Starter bkhan110

    (@bkhan110)

    Plugin Author WC Lovers

    (@wclovers)

    Hi,

    Where it’s showing “No shipping method found”?

    It ask to insert to shipping address to show shipping option.

    Certainly that’s even for Admin’s item. It’s already showing “Free Shipping” for vendor’s item!

    Thank You

    Thread Starter bkhan110

    (@bkhan110)

    https://ibb.co/QFdqK6w

    admin didnt add this product. it was added by vendor. it happens with all the variations. and variations dont show store name under them but in store manager -> Products -> stores, store is selected.

    Plugin Author WC Lovers

    (@wclovers)

    Can you please contact us directly at [email protected]

    Plugin Author WC Lovers

    (@wclovers)

    It’s resolved!

    Issue happened due to “Ocean WP” theme “Ajax add to cart” bug.

    Fix code –

    add_filter( 'woocommerce_add_cart_item', function( $cart_item_data, $cart_item_key ) {
    	$product_id = $cart_item_data['product_id'];
    	if( !$product_id ) {
    		$variation_id 	= sanitize_text_field( $cart_item_data['variation_id'] );
    		if( $variation_id ) {
    			$product_id = wp_get_post_parent_id( $variation_id );
    			$cart_item_data['product_id'] = $product_id;
    		}
    	}
    	return $cart_item_data;
    }, 50, 2 );

    Thank You

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Shipping’ is closed to new replies.