getValidFormForIntegratedPosition( $pricingRule ); if ( ! $form ) { return; } $isDivTable = strpos( $templateName, 'style-' ) !== false; $hasQty = ! empty( $settings['quantity_column_title'] ) || ! isset( $settings['quantity_column_title'] ); $hasDiscount = ! empty( $settings['discount_column_title'] ); // the table draws the discount column from its header only $hasPrice = ! empty( $settings['price_column_title'] ) || ! isset( $settings['price_column_title'] ); // the row spans the whole table: the base columns plus whatever the header hook adds (custom columns) ob_start(); do_action( 'tiered_pricing_table/tiered_pricing/header_columns', $pricingRule ); $extraColumns = (int) preg_match_all( '/