in. Group controls add // the post_type as a prefix when added by a skin. if ( method_exists( $this, 'get_control_id' ) ) { $control_id = $this->product_query_control_args['post_type'] . '_' . $control_id; } return $control_id; } private function add_query_controls( $name ) { $this->init_query_settings( $name ); $this->add_group_control( Group_Control_Query::get_type(), $this->product_query_control_args ); $this->add_control( 'related_products_note', [ 'type' => Controls_Manager::ALERT, 'alert_type' => 'info', 'content' => esc_html__( 'Note: The Related Products Query is available when creating a Single Product template', 'elementor-pro' ), 'condition' => [ $this->product_query_post_type_control_id => 'related_products', ], ] ); $this->add_control( 'upsells_products_note', [ 'type' => Controls_Manager::ALERT, 'alert_type' => 'info', 'content' => esc_html__( 'Note: The Upsells Query is available when creating a Single Product template', 'elementor-pro' ), 'condition' => [ $this->product_query_post_type_control_id => 'upsells', ], ] ); $this->add_control( 'cross_sells_products_note', [ 'type' => Controls_Manager::ALERT, 'alert_type' => 'info', 'content' => esc_html__( 'Note: The Cross-Sells Query is available when creating a Cart page', 'elementor-pro' ), 'condition' => [ $this->product_query_post_type_control_id => 'cross_sells', ], ] ); } }