Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Change Buy Now/ Add To Cart buttons to show low stock?

Change Buy Now/ Add To Cart buttons to show low stock?

Views: 664

Results 1 to 3 of 3
29 Oct 2012, 6:37 PM
#1
dh010010 avatar

dh010010

New Zenner

Join Date:
Aug 2012
Posts:
23
Plugin Contributions:
0

Change Buy Now/ Add To Cart buttons to show low stock?

Evening!

I am looking to change the buy now/ add to cart buttons to reflect the amount of stock available.

For example, if there were more than 5 items in stock the button would be the normal buy now or ad to cart button. However If there were only 1,2,3 or 4 items in stock the button would change to for example, BUTTON_IMAGE_3_LEFT if there were only 3 items in stock.

This would be for both the products info page and for the products listing page.

Any sugestions, would be great as I do not have a clue, PHP is realy not my strong suit.

Thanks in advance :o)

29 Oct 2012, 7:45 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Change Buy Now/ Add To Cart buttons to show low stock?

Not exactly what you asked for, but you might be able to get some ideas:

http://www.zen-cart.com/downloads.php?do=file&id=1363

I haven't used it.

4 Jan 2013, 10:32 AM
#3
dh010010 avatar

dh010010

New Zenner

Join Date:
Aug 2012
Posts:
23
Plugin Contributions:
0

Re: Change Buy Now/ Add To Cart buttons to show low stock?

Thanks for your reply.... sorry it took so long to get back to you :o/

We make some adjustment to that contribution to fit our needs and have it all up and running.

Thnaks for the sugestion...... Happy New Year!