How to Display a Call-to-action when a Specific Product is Added to the Cart?

If you want to trigger a call-to-action when a specific product is added to the cart, you just need to add the 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 7 with […]

How to Display a Call-to-action when a Specific Product is Added to the Cart? Read More »