funnel = sellkit_funnel(); add_action( 'woocommerce_thankyou', [ $this, 'check_order_page' ] ); remove_action( 'woocommerce_thankyou', [ $this, 'check_order_page' ] ); } /** * Order details widget. * * Holds the Order details widget instance. * * @access public * * @var array */ public $widget; /** * Item field. * * Holds all the Items attributes. * * @access public * * @var array */ public $field; /** * Get Item ID. * * Retrieve the Item type. * * @since 1.1.0 * @access public * * @return string Item ID. */ public function get_id() { return $this->field['_id']; } /** * Get item type. * * Retrieve the item type. * * @since 1.1.0 * @access public * * @return string Field type. */ public function get_type() { return $this->field['type']; } /** * Get item label. * * Retrieve the item label. * * @since 1.1.0 * @access public * * @return string item label. */ public function get_label() { return $this->field['label']; } /** * Get item icon. * * Retrieve the item icon. * * @since 1.1.0 * @access public * * @return string item icon. */ public function get_icon() { return $this->field['detail_item_icon']; } /** * Get item class. * * Retrieve the item class. * * @since 1.1.0 * @access public * * @return string item class. */ public function get_class() { return 'sellkit-field'; } /** * Get item width. * * Retrieve the item width. * * @since 1.1.0 * @access public * * @return integer Field width. */ public function get_width() { return $this->field['detail_item_width']; } /** * Get item title. * * Retrieve the item title. * * @since 1.1.0 * @access public * * @return string Field title. */ public function get_title() { return ''; } /** * Render item. * * Render item label and content. * * @since 1.1.0 * @access public * * @param object $widget Widget instance. * @param array $field Field. */ public function render( $widget, $field ) { $this->widget = $widget; $this->field = $field; $this->add_field_render_attribute(); $this->widget->add_render_attribute( 'item-group-' . $this->get_id(), [ 'id' => 'sellkit-order-details-items-group-' . $this->get_id(), 'class' => 'order_details woocommerce-order-overview__' . $this->get_class_name() . ' ' . $this->get_class_name() . ' sellkit-flex-wrap sellkit-item-type-' . $this->get_type() . ' sellkit-order-details-items-group elementor-column elementor-col-' . $this->get_width(), ] ); if ( ! empty( $field['width_tablet'] ) ) { $this->widget->add_render_attribute( 'item-group-' . $this->get_id(), 'class', 'elementor-md-' . $field['width_tablet'] ); } if ( ! empty( $field['width_mobile'] ) ) { $this->widget->add_render_attribute( 'item-group-' . $this->get_id(), 'class', 'elementor-sm-' . $field['width_mobile'] ); } ?>
  • widget->get_render_attribute_string( 'item-group-' . esc_attr( $this->get_id() ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Elementor-generated attributes. ?>>
    render_icon(); $this->render_label(); ?>
    check_order_page(); ?>
  • get_title(); $attributes = [ 'id' => 'order-details-item-' . $this->get_id(), 'class' => $this->get_class(), ]; if ( ! empty( $title ) ) { $attributes['title'] = $title; } $this->widget->add_render_attribute( 'order-details-item-' . $this->get_id(), $attributes ); } /** * Render label. * * Render the label for each item. * * @since 1.1.0 * @access public */ public function render_label() { if ( empty( $this->get_label() ) ) { return; } ?>
    get_label() ); ?>
    get_icon() ) ) { return; } ?> icons_manager->render_icon( $this->get_icon() ); ?> funnel->funnel_id ) || $key && $global_thankyou ) { $order = wc_get_order( $id ); $order_data = $order->get_data(); $this->render_content( $order_data ); } } /** * Render content. * * Render the item content. * * @since 1.1.0 * @access public * @abstract * * @return string The field content. * @param object $order_data Order data. */ abstract public function render_content( $order_data ); /** * Render dummy content. * * Render the item dummy content. * * @since 1.1.0 * @access public * @abstract * * @return string The field dummy content. */ abstract public function render_dummy_content(); /** * Render class name. * * Render the item class name. * * @since 1.1.0 * @access public * @abstract * * @return string The field class name. */ abstract public function get_class_name(); }