Forums / Setting Up Categories, Products, Attributes / Display text or image “IN STOCK” on product pages up the top?

Display text or image “IN STOCK” on product pages up the top?

Locked

Views: 1,685

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
20 Jun 2007, 3:03 PM
#1
apemusic avatar

apemusic

Zen Follower

Join Date:
May 2006
Posts:
134
Plugin Contributions:
0

Display text or image “IN STOCK” on product pages up the top?

Hi Zenners,

Customers are continually calling and emailing just to confirm products are in stock so I want to make it clearer on each product page by displaying BOLD text "IN STOCK" or an image saying “IN STOCK” for the products, if they can see it on the product page great, if they can see this on the search result or product listing pages before they even click the product that is even better.

I already know how to turn on the display the qty of units in stock but that is not what I want, also it needs be much bigger, clearer and bolder than that. I already have items out of stock had the big red ‘sold out’ image and does not let customers check out, but for the customers where qty > 0 and there is stock I want to display this big text IN STOCK

Would appreciate some help ASAP how to insert this!

Cheers,
Dave

ApeShop.com - Mobile Cell Phones, Digital Cameras, Camcorders, Lenses, iPods, PSPs, Watches & more!
http://www.apeshop.com/

26 Jun 2007, 1:20 PM
#2
apemusic avatar

apemusic

Zen Follower

Join Date:
May 2006
Posts:
134
Plugin Contributions:
0

Re: Display text or image “IN STOCK” on product pages up the top?

Hi Zenners!

Please can someone reply and help?? we really need to do this

I see other sites have nice green images or bold text "IN STOCK" and I want to be able to add the same ... anyone??!

p.s. sorry for this other post, i thought the first timed out and I didn't realise both posted:

I keep getting customers calling and emailing to confirm items are in stock, if items are not in stock I have the big red "SOLD OUT" graphic and it won't let them add to cart.

For all the rest of the products that are in stock, I would like up the top somewhere to display the text in bold "IN STOCK" or even an "IN STOCK" graphic ... how do I insert this on all the product pages?

I have worked out how to display "100 units in stock" etc but this is way too small for customers to notice and I would rather it say in bold or in a graphic "IN STOCK"

ApeShop.com - Mobile Cell Phones, Digital Cameras, Camcorders, Lenses, iPods, PSPs, Watches & more!
http://www.apeshop.com/

26 Jun 2007, 11:30 PM
#3
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Re: Display text or image “IN STOCK” on product pages up the top?

Apply CSS to the "100 units in stock" .... if you are displaying ONLY the stock (and not the model number etc) then add this to your stylesheet...

#productDetailsList{
     color: green; 
     font-size:1.3em;
     font-weight:bold; 
     }

Otherwise, you may have to add the css inline wherever "units in stock" is defined in the language files.

Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !

27 Jun 2007, 6:15 AM
#4
apemusic avatar

apemusic

Zen Follower

Join Date:
May 2006
Posts:
134
Plugin Contributions:
0

Re: Display text or image “IN STOCK” on product pages up the top?

thanks ryk,

I see what you are saying that is a clever idea, although where exactly do i insert this:

#productDetailsList{
color: green;
font-size:1.3em;
font-weight:bold;
}

however on my site it says:

Model: XXXXX
XXX Units in Stock
Manufactured by: XXXXX

And I don't want all of that bold green

Also I really don't want to say "100 units in stock" but rather just "IN STOCK NOW" and I want it BIG and BOLD much bigger than that text, preferably just a big green picture, no matter what I say customers keep ringing and ringing to confirm and it is really wasting money for us, I want a nice big picture IN STOCK NOW like other sites have, can anyone help pls??

ApeShop.com - Mobile Cell Phones, Digital Cameras, Camcorders, Lenses, iPods, PSPs, Watches & more!
http://www.apeshop.com/

27 Jun 2007, 7:28 AM
#5
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Re: Display text or image “IN STOCK” on product pages up the top?

apemusic:

although where exactly do i insert this:

#productDetailsList{
color: green;
font-size:1.3em;
font-weight:bold;
}

err - exactly where I said.... in your stylesheet.

however on my site it says:

Model: XXXXX
XXX Units in Stock
Manufactured by: XXXXX

And I don't want all of that bold green

Also like I said, this solution was for if you were ONLY displaying the In stock message

Also I really don't want to say "100 units in stock" but rather just "IN STOCK NOW" and I want it BIG and BOLD much bigger than that text, preferably just a big green picture, no matter what I say customers keep ringing and ringing to confirm and it is really wasting money for us, I want a nice big picture IN STOCK NOW like other sites have, can anyone help pls??

Ok, so what you need to do is actually edit the code itself to replace the standard stock message with what you want. I don't suppose it's too difficult for a php expert, but it will take their time. Perhaps a post to the commercial Help wanted section may find someone who'll do it for a fair price.

Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !

27 Jun 2007, 8:16 AM
#6
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Re: Display text or image “IN STOCK” on product pages up the top?

Just come across this which may help ... not exactly what you're looking for, but may reduce the phone calls enough to save you the money to pay for exactly what you want! :smile:

Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !

3 Jul 2007, 2:07 PM
#7
apemusic avatar

apemusic

Zen Follower

Join Date:
May 2006
Posts:
134
Plugin Contributions:
0

Re: Display text or image “IN STOCK” on product pages up the top?

Thanks ryk,

That module looks great but simply does not work
http://www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_47&products_id=633

I inserted the code and changed the code to images that work on my site but NOTHING APPEARS anywhere?

I inserted the code into includes/modules/product_listing.php and changed the references to my site and nothing shows up?

also I really just needed a simple version either GREEN if there is stock >=1 and RED if out of stock like this, even this simple code does not work

anyone??

case 'PRODUCT_LIST_QUANTITY':
$lc_align = 'right';

    if (zen_get_products_stock($listing->fields['products_id'])>=1) {
	$lc_text = '<img src="images/stock_icons/disponible.gif" alt="IN STOCK NOW" /></a>';  //  1 or more

	}

    elseif (zen_get_products_stock($listing->fields['products_id'])=0 {
	$lc_text = '<img src="images/stock_icons/desconocido.gif" alt="OUT OF STOCK" /></a>';  // 0

	}

		break;

ApeShop.com - Mobile Cell Phones, Digital Cameras, Camcorders, Lenses, iPods, PSPs, Watches & more!
http://www.apeshop.com/