Add custom suffix to prices

Use this code to attach a suffix to all prices. For example, you might sell wine only by the mixed case, so you could add ” in any mixed dozen” after the bottle price.

 * Add suffix to prices

add_filter('woocommerce_get_price_suffix', 'cc_add_price_suffix', 99, 4);

function cc_add_price_suffix($html, $product, $price, $qty) {

  $html .= ' in any mixed dozen';
  return $html;

View Raw Code ID: 9921