Zen Cart Logo

Attribute OUT OF STOCK

Locked

Views: 1,797

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
27 Sep 2007, 1:18 AM
#1
neilg avatar

neilg

New Zenner

Join Date:
Dec 2006
Posts:
75
Plugin Contributions:
0

Attribute OUT OF STOCK

Hi all,

Ok lets hope I can explain this right!

I have products, XS, S, M etc and do not want to display the amount of stock we have....rather I want only to display when each particular size is "Out of Stock"

so for example at the moment I have Stock By Attributes and it displays as follows:

Please Choose:
Size - Select a Size
- XS
- S
- M

I want it to look like the following if a size is out of stock

Please Choose:
Size - Select a Size
- XS (Out of Stock)
- S
- M

As it is at the moment, the customer has to add to cart only to find out that it is out of stock.

Does anyone know if this can be done?

Many thanks,
Neil

27 Sep 2007, 4:55 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Attribute OUT OF STOCK

You will need to custom code this in the show stock value area with an if/else condition that checks for "0" stock

27 Sep 2007, 5:09 AM
#3
neilg avatar

neilg

New Zenner

Join Date:
Dec 2006
Posts:
75
Plugin Contributions:
0

Re: Attribute OUT OF STOCK

Thanks Kobra....is that an easy thing to do? Which file would I need to modify?

Cheers,
Neil

27 Sep 2007, 5:17 AM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Attribute OUT OF STOCK

Are you using the stock-by-attributes module by kuroi that is in the downloads/other section?

27 Sep 2007, 7:49 AM
#5
neilg avatar

neilg

New Zenner

Join Date:
Dec 2006
Posts:
75
Plugin Contributions:
0

Re: Attribute OUT OF STOCK

Yes...V4.4

27 Sep 2007, 8:41 AM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Attribute OUT OF STOCK

is that an easy thing to do? Which file would I need to modify?
Well I have not looked but would expect that this is a medium task and would involve several files.

27 Sep 2007, 3:06 PM
#7
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Attribute OUT OF STOCK

There's no simple plug-in to do this, though I'm pretty sure one will appear when stock by attribute is integrated into core code in Zen Cart 1.4.

Currently there is no solution for displaying stock levels on the product info page for when products have multiple attributes, but there is a solution for products with just one attribute. This is described in one of the stock by attributes support threads (I'm not sure which - I recommend searching for "Grayson", the Zen Carter who derived the original solution, and then following subsequent threads to find out how it needs to be tweaked for later versions or Zen Cart.

Once you can display the stock, it's an easy simplification to suppress that information except when the stock is zero and then replace it with a stock out message or icon. I'm pretty sure that this has been explained somewhere in the support thread too.

27 Sep 2007, 9:37 PM
#8
neilg avatar

neilg

New Zenner

Join Date:
Dec 2006
Posts:
75
Plugin Contributions:
0

Re: Attribute OUT OF STOCK

Thanks Kuroi...i will check into it!

Cheers,
Neil

18 Oct 2007, 7:21 AM
#9
computer_candy avatar

computer_candy

New Zenner

Join Date:
Oct 2007
Posts:
17
Plugin Contributions:
0

Re: Attribute OUT OF STOCK

If anyone finds a solution to this, it would be very appreciated if you would post any tips.

thX! :)
-CC