No results found. Try again with different words?

Search must be at least 3 characters.

    How to Trigger a Call-to-action only on Woo-commerce order received page?

    If you want to trigger a design only on Woo-commerce order received page, you just need to add following code snippet in your theme’s functions.php file.

    add_filter( 'cp_pro_target_page_settings', 'cp_is_display_popup', 10, 2 );
    
    function cp_is_display_popup( $display_style, $style_id ) {
       
    	// if style is to display on this page ( replace 10304 with your style id ) 
    	if( $display_style && 10304 == $style_id ) {
    		
    		$display_style = false;  
    		
    		if( function_exists( 'is_wc_endpoint_url' ) ) {
    			if( is_wc_endpoint_url( 'order-received' ) ) {
    				$display_style = true;
    			}
    		}
    	}	
            return $display_style;
    }

    Note: Adding above code will disable style to display on all other pages but order received page.

    Was this article helpful?

    Did not find a solution? We are here to help you succeed.

    Related Docs

    Grab Our Biggest Discount Of All Time. Don’t Miss Out!

    00
    Months
    00
    Days
    00
    Hours
    00
    Minutes
    00
    Seconds

    Grab this rare opportunity to save up to 50%

    WOAH, HOLD ON THERE!

    Don't Miss Our Biggest Discount

    00
    Months
    00
    Days
    00
    Hours
    00
    Minutes
    00
    Seconds

    You are backed by 100% risk-free money-back guarantee.

    Compare Convert Pro with...

    29439
    29440
    Scroll to Top