get_id() ); } else { $tiered_pricing = PriceManager::getFixedPriceRules( $product->get_id() ); } $str = ''; foreach ( $tiered_pricing as $quantity => $price ) { $str .= $quantity . ":" . $price . ","; } return ( mb_strlen( $str ) > 0 ? trim( $str, ',' ) : null ); } /** * Export fixed pricing rules * * @param mixed $value * @param WC_product $product * * @return mixed */ public function addExportFixedData( $value, $product ) { return $this->addExportData( $product, 'fixed' ); } /** * Export percentage pricing rules * * @param mixed $value * @param WC_product $product * * @return mixed */ public function addExportPercentageData( $value, $product ) { return $this->addExportData( $product, 'percentage' ); } }