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'] ); } ?>