Change the Quantity column text of the bulk table
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
add_filter('adp_verbose_discount_product_table_cell_qty', function($value, $range, $product,$priceProcessor){ if ($range->getFrom() == $range->getTo()) { $value = $range->getFrom(); } else { if (is_infinite($range->getTo())) { $value = $range->getFrom() . ' +'; } else { $value = 'from ' . $range->getFrom() . ' to ' . $range->getTo(); } } return $value; },10,4); |