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

Disable estimate delivery for products with backorder enabled

Viewing 4 posts - 1 through 4 (of 4 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

    #660509

    dcyc
    Participant

    Works perfectly. Thank you.

    #660559

    Luke Nielsen
    Keymaster

    Hello,

    Thank you for confirming that the solution worked perfectly for you. We are glad to hear that you are satisfied with the theme and our support. If you have any more questions or need further assistance, feel free to reach out.

    Kind regards

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

The topic ‘Disable estimate delivery for products with backorder enabled’ is closed to new replies.