How do i get the sold out button to show up if there is 5 items or less in stock?
How do i get the sold out button to show up if there is 5 items or less in stock?
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!
nevermind i had it set to none...lol i feel stupid
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.
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!
Bookmarks