Results 1 to 7 of 7
  1. #1
    Join Date
    Jul 2008
    Posts
    238
    Plugin Contributions
    0

    Default Want items to show out of stock after 5 items left

    How do i get the sold out button to show up if there is 5 items or less in stock?

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Want items to show out of stock after 5 items left

    Do a search in the Tools ... Developers Tool Kit ... for the word:
    sold

    to see all of the files where it is referenced and you could customize them to work based on 5 vs 0 ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Jul 2008
    Posts
    238
    Plugin Contributions
    0

    Default Re: Want items to show out of stock after 5 items left

    Quote Originally Posted by Ajeh View Post
    Do a search in the Tools ... Developers Tool Kit ... for the word:
    sold

    to see all of the files where it is referenced and you could customize them to work based on 5 vs 0 ...

    ok thanks ill try that because im having a problem with people ordering a product with 1 item in stock and i get stuff from a drop shipping company so its never a good idea to let someone order in less there is 5 in stock or so

  4. #4
    Join Date
    Jul 2008
    Posts
    238
    Plugin Contributions
    0

    Default Re: Want items to show out of stock after 5 items left

    Quote Originally Posted by Ajeh View Post
    Do a search in the Tools ... Developers Tool Kit ... for the word:
    sold

    to see all of the files where it is referenced and you could customize them to work based on 5 vs 0 ...
    i just tried it...it says nothing was found when i typed in sold ....any other suggestions?

  5. #5
    Join Date
    Jul 2008
    Posts
    238
    Plugin Contributions
    0

    Default Re: Want items to show out of stock after 5 items left

    nevermind i had it set to none...lol i feel stupid

  6. #6
    Join Date
    Jul 2008
    Posts
    238
    Plugin Contributions
    0

    Default Re: Want items to show out of stock after 5 items left

    i figured it out it was really simple actually
    this is the only file you have to edit:
    /home/rickie/public_html/includes/functions/functions_general.php
    Line #1146 : case ($button_check->fields['products_quantity'] <= 5 and SHOW_PRODUCTS_SOLD_OUT_IMAGE == '1')

    It originally said case ($button_check->fields['products_quantity'] <= 0 and SHOW_PRODUCTS_SOLD_OUT_IMAGE == '1')

    I just changed it to "<=5" and then i showed a sold out button when the product quantity is <=5

    Thanks a lot Ajeh i really appreciate it
    Last edited by rickiesdiscount; 20 Oct 2008 at 11:00 PM.

  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Want items to show out of stock after 5 items left

    You are most welcome ...

    Thanks for updating use with the neat little functions that control things like buttons for quick changes such as this ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. Show out of stock items last
    By matchlock in forum Setting Up Categories, Products, Attributes
    Replies: 15
    Last Post: 8 Apr 2013, 05:25 PM
  2. v150 Automatically show "Call for Price" when items go out of stock
    By WWRepair in forum Setting Up Categories, Products, Attributes
    Replies: 7
    Last Post: 2 Apr 2013, 01:00 AM
  3. How can I get out of stock items to show?
    By BenhamCollectibles in forum General Questions
    Replies: 6
    Last Post: 26 May 2010, 10:36 PM
  4. Stuck! unable to sell items that show as out of stock
    By Shane78 in forum General Questions
    Replies: 3
    Last Post: 9 Aug 2009, 03:46 PM
  5. Out of Stock/disabled items still show in NEW section
    By dml311071 in forum General Questions
    Replies: 23
    Last Post: 25 Aug 2008, 05:19 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR