daily pastebin goal
47%
SHARE
TWEET

FoxyShop: Customize Quantity Title

sparkweb Dec 29th, 2011 115 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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top