Title: Change availability text
Last modified: August 30, 2016

---

# Change availability text

 *  Resolved [guit4eva](https://wordpress.org/support/users/guit4eva/)
 * (@guit4eva)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/change-availability-text/)
 * Hi there,
 * How can I change the message:
 * `In Stock: 7 available`
 * to
 * `7 left` ?
 * [https://wordpress.org/plugins/jigoshop/](https://wordpress.org/plugins/jigoshop/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [Jigoshop Support-Vasili](https://wordpress.org/support/users/vasiliborbis/)
 * (@vasiliborbis)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/change-availability-text/#post-6434554)
 * Hi guit4eva,
 * To do that you need to change the source files of Jigoshop, which is not recommended
   and with no minimum PHP knowledge you could cause fatal errors.
 * If you are familiar with PHP then you could do the following: go to Jigoshop 
   root folder and locate the following file : jigoshop_product_class.php
    If you
   have the latest version of Jigoshop it should be in directory – wp-content/plugins/
   jigoshop/classes locate the code line 570 and change the __(‘ available’, ‘jigoshop’);
   to __(‘ left’, ‘jigoshop’); Please remember that the changes will be gone ufter
   you will update Jigoshop.
 *  Thread Starter [guit4eva](https://wordpress.org/support/users/guit4eva/)
 * (@guit4eva)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/change-availability-text/#post-6434556)
 * Hi there,
 * thanks for your response. Is there no way to do this with a hook or such that
   will keep through updates? I more just want to get rid of the words “in stock”
   before the quantity text.
 *  [Jigoshop Support-Vasili](https://wordpress.org/support/users/vasiliborbis/)
 * (@vasiliborbis)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/change-availability-text/#post-6434611)
 * Hi guit4eva,
 * Yes there is a way of course, put the below code to your theme “functions.php”
   
   file: add_filter(‘jigoshop_product_availability’, ‘changeCustomAvailability’);
   function changeCustomAvailability($notice = array(), $_product = 0){ ; $product
   = new jigoshop_product($_product);
 *  if($product->is_in_stock()){
    $notice = array( ‘availability’ => __(‘In Stock’,‘
   jigoshop’), ‘class’ => null ); $notice[‘availability’] .= ‘: ‘. $product->stock.’‘.
   __(‘ Left’, ‘jigoshop’); }if(!$product->is_in_stock()){ $notice[‘availability’]
   = __(‘Out of Stock’, ‘jigoshop’); }
 *  return $notice;
    }
 *  Thread Starter [guit4eva](https://wordpress.org/support/users/guit4eva/)
 * (@guit4eva)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/change-availability-text/#post-6434612)
 * Awesome, thanks so much – I really appreciate it! 🙂
 *  [Jigoshop Support-Vasili](https://wordpress.org/support/users/vasiliborbis/)
 * (@vasiliborbis)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/change-availability-text/#post-6434615)
 * Thats great,
    we are glad to help 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Change availability text’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/jigoshop_655549.svg)
 * [Jigoshop](https://wordpress.org/plugins/jigoshop/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jigoshop/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jigoshop/)
 * [Active Topics](https://wordpress.org/support/plugin/jigoshop/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jigoshop/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jigoshop/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Jigoshop Support-Vasili](https://wordpress.org/support/users/vasiliborbis/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/change-availability-text/#post-6434615)
 * Status: resolved