If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / Want items to show out of stock after 5 items left

Want items to show out of stock after 5 items left

Locked

Started by rickiesdiscount on 20 Oct 2008, 7:59 PM · Views: 2,311

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
20 Oct 2008, 8:53 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #2 by ajeh

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!]
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!

20 Oct 2008, 9:07 PM
#3
rickiesdiscount avatar

rickiesdiscount

Zen Follower

Join Date:
Jul 2008
Posts:
229
Plugin Contributions:
0

Post #3 by rickiesdiscount

Ajeh:

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

20 Oct 2008, 9:09 PM
#4
rickiesdiscount avatar

rickiesdiscount

Zen Follower

Join Date:
Jul 2008
Posts:
229
Plugin Contributions:
0

Post #4 by rickiesdiscount

Ajeh:

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?

20 Oct 2008, 9:57 PM
#6
rickiesdiscount avatar

rickiesdiscount

Zen Follower

Join Date:
Jul 2008
Posts:
229
Plugin Contributions:
0

Post #6 by rickiesdiscount

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

21 Oct 2008, 1:54 AM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #7 by ajeh

You are most welcome ... :smile:

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!]
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!