If this is your first visit, check our documentation. To post, register or login.
Forums / Managing Customers and Orders / Mark product out of stock

Mark product out of stock

Started by zl_conquistador on 7 Jun 2011, 6:15 PM · Views: 3,903

Results 1 to 18 of 18
7 Jun 2011, 6:15 PM
#1
zl_conquistador avatar

zl_conquistador

New Zenner

Join Date:
Nov 2010
Location:
Ohio
Posts:
31
Plugin Contributions:
0

Mark product out of stock

I want to display on the product page that when a item is out of stock that it is still available to order. I filled in the Mark product out of stock field to say "Not in stock but available to order" and it does not display anywhere on the product page

1.3.9h

7 Jun 2011, 8:25 PM
#2
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,189
Plugin Contributions:
0

Re: Mark product out of stock

You can override the setting instead of trying to change the wording...
ad> min panel/ configuration / stock/ Check stock level

  1. set to: false

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

8 Jun 2011, 11:49 AM
#3
zl_conquistador avatar

zl_conquistador

New Zenner

Join Date:
Nov 2010
Location:
Ohio
Posts:
31
Plugin Contributions:
0

Re: Mark product out of stock

haredo:

You can override the setting instead of trying to change the wording...
ad
[/list]

OK set to false and it still shows 0 units in stock, any idea why my changes aren't making any difference?

8 Jun 2011, 12:24 PM
#4
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,189
Plugin Contributions:
0

Re: Mark product out of stock

Check this setting:
admin panel/ configuration/ stock/ **Products status in Catalog when out of stock should be set to
**

  1. Set to: 1

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

8 Jun 2011, 1:20 PM
#5
zl_conquistador avatar

zl_conquistador

New Zenner

Join Date:
Nov 2010
Location:
Ohio
Posts:
31
Plugin Contributions:
0

Re: Mark product out of stock

Yup, set to 1.

The ultimate I'm going for is to display the message, "Not in stock but available to order". This way customers know that I have to order the item.

I was under the impression thats what the "Mark product out of stock" field was for

9 Jun 2011, 1:29 PM
#6
zl_conquistador avatar

zl_conquistador

New Zenner

Join Date:
Nov 2010
Location:
Ohio
Posts:
31
Plugin Contributions:
0

Re: Mark product out of stock

any ideas?

11 Jun 2011, 5:40 AM
#7
ted avatar

ted

Zen Follower

Join Date:
Jan 2004
Location:
Arkansas
Posts:
100
Plugin Contributions:
1

Re: Mark product out of stock

Your Not In Stock message will not show on the product page, the message won't be visible until the product is added to the cart.

Ted
Never say never, it's only a matter of time, energy and asking the right person the right question!

11 Jun 2011, 11:29 AM
#8
zl_conquistador avatar

zl_conquistador

New Zenner

Join Date:
Nov 2010
Location:
Ohio
Posts:
31
Plugin Contributions:
0

Re: Mark product out of stock

ted:

Your Not In Stock message will not show on the product page, the message won't be visible until the product is added to the cart.

No it doesn't

12 Jun 2011, 3:18 PM
#9
zl_conquistador avatar

zl_conquistador

New Zenner

Join Date:
Nov 2010
Location:
Ohio
Posts:
31
Plugin Contributions:
0

Re: Mark product out of stock

Any more ideas?

12 Jun 2011, 3:42 PM
#10
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,748
Plugin Contributions:
0

Re: Mark product out of stock

The URL?

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

12 Jun 2011, 3:47 PM
#11
mikeyg avatar

mikeyg

Totally Zenned

Join Date:
May 2005
Posts:
515
Plugin Contributions:
0

Re: Mark product out of stock

I posted here a little while back with some code I had used to overrider the stock qty and replace it with a tick or cross.

hope that helps. If it is not quite what you are looking for, I went through the same process as I was trying to achieve a bit of a sophisticated check when checking the type of product options before showing this. - Still work in progress but it might get you started.

http://www.zen-cart.com/forum/showthread.php?t=173383

13 Jun 2011, 2:12 PM
#12
dw08gm avatar

dw08gm

Totally Zenned

Join Date:
Sep 2008
Location:
DownUnder, overlooking South Pole.
Posts:
1,022
Plugin Contributions:
2

Re: Mark product out of stock

ZL Conquistador:

Yup, set to 1.

The ultimate I'm going for is to display the message, "Not in stock but available to order". This way customers know that I have to order the item.

I was under the impression thats what the "Mark product out of stock" field was for

Perhaps you could add bright and bold "Not in stock but available to order" to your product description.

13 Jun 2011, 6:36 PM
#13
zl_conquistador avatar

zl_conquistador

New Zenner

Join Date:
Nov 2010
Location:
Ohio
Posts:
31
Plugin Contributions:
0

Re: Mark product out of stock

Just curious, does this setting do anything for anybody here using 1.3.9h? I even tried it with the default template

13 Jun 2011, 10:25 PM
#14
mikeyg avatar

mikeyg

Totally Zenned

Join Date:
May 2005
Posts:
515
Plugin Contributions:
0

Re: Mark product out of stock

the setting you refer to only flags the stock in the cart and yes you can change the message to say what you want. I certainly would suggest " available to order " or "stock due shortly order now to avoid disappointment "

Going back to my code I referenced above in another post it should give you the answer you want if I have understood you correctly.

Basically it uses the settings in the config to show stock (which ordinarily would give you a number) but rather than show the qty it shows a tick or text if in stock and a cross or text if out of stock. This is on the product page.

If I have miss understood your question sorry, but hopefully that gives you some code to work with.

13 Jun 2011, 10:52 PM
#15
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,904
Plugin Contributions:
23

Re: Mark product out of stock

I'm thinking this a a LOT of overkill.
With today's search capabilities, unless you are custom painting their car, a customer can find something in stock elsewhere.
Out of Stock is the new internet's goodbye.
One of our customers' stock is in a constant state of flux and suppliers/manufactturers change availability more than clean-freaks change clothes. They simply state> **All Customers will receive their orders within one week of ordering. If the item is not in stock, you will be notified as to alternative availability.**There is the occasional need to contact the customer, but the customer is never scared off by the out of stock message.

If it's custom made after the order, just say so.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

18 Jun 2011, 10:28 AM
#16
mikeyg avatar

mikeyg

Totally Zenned

Join Date:
May 2005
Posts:
515
Plugin Contributions:
0

Re: Mark product out of stock

dbltoe

I agree with your reply. Does your client show/use the out of stock information on the product pages and in the shopping cart? We have been debating what is best practice and trying to reduce the frustration that is fed back from the customer, when we call them and they are told it is unfortunately not in stock but our site led them to believe it was, because it did not actually show them any info about stock and they assumed it was in stock.

18 Jun 2011, 2:30 PM
#17
zl_conquistador avatar

zl_conquistador

New Zenner

Join Date:
Nov 2010
Location:
Ohio
Posts:
31
Plugin Contributions:
0

Re: Mark product out of stock

ZL Conquistador:

Yup, set to 1.

The ultimate I'm going for is to display the message, "Not in stock but available to order". This way customers know that I have to order the item.

I was under the impression thats what the "Mark product out of stock" field was for

Am I missing something here? Do I have the wrong impression of what the "Mark product out of stock" field is designed to do? If not I would rather fix the code to function as designed and not have to worry about patching it for every update.

19 Jun 2011, 10:07 PM
#18
mikeyg avatar

mikeyg

Totally Zenned

Join Date:
May 2005
Posts:
515
Plugin Contributions:
0

Re: Mark product out of stock

ZL Conquistador

that is the beauty of zencart. You can, with a little bit of thought, get it to do what you want.

"Mark product out of stock" from the admin/config/stock menu shows up in the shopping cart. default is red *** appearing next to the product name and qty.

The message that appears in the shopping cart in red box is controlled in the language/english/shopping_cart.php file. Change this to the message you want:

define('OUT_OF_STOCK_CAN_CHECKOUT', 'Products marked with ' . STOCK_MARK_PRODUCT_OUT_OF_STOCK . ' are out of stock.<br />Items not in stock will be placed on backorder.');

If you want a similar message to appear on the product page suggest you add a new define

define('TEXT_PRODUCT_NOT_IN_STOCK','your message here');
define('TEXT_PRODUCT_IN_STOCK','your message here');

put it in the language/english/product_info.php file for ease of remembering what page it is on.

If you are worried about being over written on every update then use the template overide feature -(from your question I am assuming you have not worked this out so forgive me if I am wrong and here is a very quick summary of what to do) - basically create a folder with a name for your site eg. "mysite" in the includes/templates directory and copy the template_info.php file from the default templates folder and edit the name inside it to be the same as the name of the folder you just created. Then from admin/tools change the template.

now copy the tpl_product_info_display.php file from default/templates to the new folder you made i.e includes/templates/mysite/templates/tpl_product_info_display.php

then any changes made to code on the product info page will not get over ridden when there is an update.

Now add this code in the tpl_product_info_display.php file I have done it around line 111 just after: <!--eof Product details list -->

<!--in stock status --> <div id="stockstatus"> <?php if (($flag_show_product_info_quantity == 1)) { echo(($flag_show_product_info_quantity == 1) ? '<a>' . ($products_quantity > 0 ? TEXT_PRODUCT_IN_STOCK : TEXT_PRODUCT_NOT_IN_STOCK) . '</a>' : '') . "\n"; } ?> </div> <!-- end of status block -->

use the defines to determine the message you want.

use the css #stockstatus {} to position, colour etc. I have used images in my define so get ticks and crosses as well as text.

Hope that helps.

by the way I am very new to this coding game so if someone knows a simpler solution then please help. This seems to work efficiently for me.

All the best