Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Show deactivated product in catalog, but with notes

Show deactivated product in catalog, but with notes

Locked

Views: 1,091

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
16 Aug 2008, 3:42 AM
#1
gomlers avatar

gomlers

Zen Follower

Join Date:
Aug 2008
Posts:
139
Plugin Contributions:
0

Show deactivated product in catalog, but with notes

Hi all!

When products are out of stock from my supplier, but I still want to show this product to my customers, is there a way to get this into the product info automatically, or do I have to hard-program this into tpl_product_info_display.php?
And how would I go around to fix this?
e.g. Is there a way to fix this using the "Date Available" option when creating the product?

Or, if I just write that the product is out of stock in the product description, is there a way for me to write this as a NOTE somewhere in the admin.., so I'll remember to change the productdescription, once the product again is available!

  • E.g. Does it exist som kind of "Makes NOTES in admin - modification"?

Answers would have been MUCH appreciated!

  • Roger.
16 Aug 2008, 4:10 AM
#2
gomlers avatar

gomlers

Zen Follower

Join Date:
Aug 2008
Posts:
139
Plugin Contributions:
0

Re: Show deactivated product in catalog, but with notes

Sorry to double post, but I had only 7 minutes to edit that first one ;)

Maybe something from the "upcoming products module" be used?

  • I'm not a great coder, I just happen to know a little bit about how PHP works, but I don't think I could do this my self, that's why I'm asking for help.

Hoping that's OK.

  • Roger.
16 Aug 2008, 5:23 PM
#3
ajeh avatar

ajeh

Oba-san

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

Re: Show deactivated product in catalog, but with notes

You could just set your Stock settings that Products with <= 0 quantity show as Sold Out ...

17 Aug 2008, 3:51 AM
#4
gomlers avatar

gomlers

Zen Follower

Join Date:
Aug 2008
Posts:
139
Plugin Contributions:
0

Re: Show deactivated product in catalog, but with notes

Ajeh:

You could just set your Stock settings that Products with <= 0 quantity show as Sold Out ...

Sure I could.. but the problem is that I only stock just a few of all the products I offer. I place orders as I get them from my customers, and it would look stupid if 200 out of 250 products always was marked as "sold out" ;)

anyway.. I found a solution by making some changes to the code in tpl_product_info_display.php, using if/elseif/else commands.

So now while making the products:
If I set the "in stock option" to <=0 it shows on product info page:
"This is sold out from supplier, please contact us... "
If I set it to <=500 it reads "Estimate about 3 weeks for delivery" and
if I set it to >501 it reads "Product in stock".

And then I have to pay attention to when the 500 is beginning to go as low as 0, then I'll have to update the DB again.. (hmm.. maybe I should raise the numbers to 0 / 5000 / > 5000!? :)

My shop is for norwegian customers (I'm Norwegian, - guess you could tell already I wasn't English-speaking) ;) - and my supplier is all the way over with you guys in the USA, so that's the only way I can do it, without stocking up several thousands of products.. I sell goods which customers tend to buy +- 50ct at the time.

But HEY! Thanks for your reply!