Home Forums WoodMart support forum Disable estimate delivery for products with backorder enabled

Disable estimate delivery for products with backorder enabled

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #660238

    dcyc
    Participant

    Hey, is there a way to disable estimate delivery for products with backorder or backorder, but notify client enabled?
    Im using custom layout created with elementor. Thanks, love your theme.

    #660401

    Luke Nielsen
    Keymaster

    Hello,

    Add the code below to the child theme, then recheck how it works.

    add_filter(
    	'woodmart_est_del_ignore',
    	function ( $ignore, $product ) {
    		if ( $product && $product->is_on_backorder() ) {
    			return true;
    		}
    		return $ignore;
    	},
    	10,
    	2
    );

    Kind Regards

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