Advertisement
sparkweb

FoxyShop: Pricing Variation Filter

Dec 13th, 2011
487
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //This will remove the parentheses from the price variation: XXL (+$2.00) becomes XXL +$2.00
  2. //Hook added in 3.7.2
  3.  
  4. add_filter('foxyshop_variation_price_change', 'my_foxyshop_variation_price_change');
  5. function my_foxyshop_variation_price_change($input) {
  6.     return str_replace(array("(", ")"), "", $input);
  7. }
  8.  
Advertisement
RAW Paste Data Copied
Advertisement