Zen Follower
- Join Date:
- Jul 2008
- Posts:
- 229
- Plugin Contributions:
- 0
Post #1 by rickiesdiscount
How do i get the sold out button to show up if there is 5 items or less in stock?
Started by rickiesdiscount on 20 Oct 2008, 7:59 PM · Views: 2,311
Zen Follower
How do i get the sold out button to show up if there is 5 items or less in stock?
Oba-san
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 ...
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!
Zen Follower
Ajeh:
Do a search in the Tools ... Developers Tool Kit ... for the word:
soldto 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
Zen Follower
Ajeh:
Do a search in the Tools ... Developers Tool Kit ... for the word:
soldto 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?
Zen Follower
nevermind i had it set to none...lol i feel stupid
Zen Follower
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
Oba-san
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 ...
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!
Tell staff why this post should be reviewed.