Advertisement
sparkweb

FoxyShop: Customize Quantity Title

Dec 29th, 2011
382
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //This code goes in your functions.php file and will change "Quantity" to "Number of Bears" for the "code1" product
  2.  
  3. add_filter("foxyshop_quantity_title", "my_quantity_title");
  4. function my_quantity_title($q) {
  5.     global $product;
  6.     if ($product['code'] == "code1") {
  7.         return "Number of Bears";
  8.     } else {
  9.         return $q;
  10.     }
  11. }
Advertisement
RAW Paste Data Copied
Advertisement