Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Admin->Display Product Quanity->Value...question...


awarner20

Recommended Posts

Hello all,

 

Hopefully this is a simple question. I have read the documentation, but couldn't find a complete answer. I am trying to display the product quanities in the product description area of my store. When looking for an answer I found that I should edit the value in the Product Quanity Display section of my Admin.

We see our customers as invited guests to a party, and we are the hosts. It's our job every day to make every important aspect of the customer experience a little bit better. - Jeff Bezos

Link to comment
Share on other sites

Hello all,

 

Hopefully this is a simple question. I have read the documentation, but couldn't find a complete answer. I am trying to display the product quanities in the product description area of my store. When looking for an answer I found that I should edit the value in the Product Quanity Display section of my Admin.

 

 

Sorry folks, there was a glitch when I tried to edit this post. Here's the full post...

 

Hello all,

 

Hopefully this is a simple question. I have read the documentation, but couldn't find a complete answer. I am trying to display the product quanities in the product description area of my store. When looking for an answer I found that I should edit the value in the Product Quanity Display section of my Admin.

 

It was set at 0, so I changed it to 1, but I did not see any quanity listed in the product description of my store.

 

1. Should I set this value to 1?

2. Where should the product quanity be displaying?

 

Thanks for any guidance anyone can provide.

 

As a side note, this is my very first OSC store and I've been working on it for a couple months now. I have learned so much from the documention and the helpful users here, I just wanted to say thanks. I do what I can to answer questions here for other new users and I hope to be able to do more to help in the future as I will no doubt be creating more stores:) I'm so eager to go live with this store....we're almost there!

 

Thanks again,

 

Adam

We see our customers as invited guests to a party, and we are the hosts. It's our job every day to make every important aspect of the customer experience a little bit better. - Jeff Bezos

Link to comment
Share on other sites

  • 2 weeks later...
Sorry folks, there was a glitch when I tried to edit this post. Here's the full post...

 

Hello all,

 

Hopefully this is a simple question. I have read the documentation, but couldn't find a complete answer. I am trying to display the product quanities in the product description area of my store. When looking for an answer I found that I should edit the value in the Product Quanity Display section of my Admin.

 

It was set at 0, so I changed it to 1, but I did not see any quanity listed in the product description of my store.

 

1. Should I set this value to 1?

2. Where should the product quanity be displaying?

 

Thanks for any guidance anyone can provide.

 

As a side note, this is my very first OSC store and I've been working on it for a couple months now. I have learned so much from the documention and the helpful users here, I just wanted to say thanks. I do what I can to answer questions here for other new users and I hope to be able to do more to help in the future as I will no doubt be creating more stores:) I'm so eager to go live with this store....we're almost there!

 

Thanks again,

 

Adam

 

 

Can anyone confirm if this is supposed to be working?

 

I am trying to display the amount of stock on hand for each product in the product's description page.

 

Any advice or guidance is greatly appreciated:)

We see our customers as invited guests to a party, and we are the hosts. It's our job every day to make every important aspect of the customer experience a little bit better. - Jeff Bezos

Link to comment
Share on other sites

Not sure about the Product Quantity in Admin - I have a stock install of OSC running (latest version) and it doesn't work on that either. Try this:

 

http://www.oscommerce.com/forums/lofiversion/i...php/t63062.html

 

QT Pro will also display "Out of Stock" for any product or in any attribute dropdown once zero stock levels have been reached.

Link to comment
Share on other sites

Not sure about the Product Quantity in Admin - I have a stock install of OSC running (latest version) and it doesn't work on that either. Try this:

 

http://www.oscommerce.com/forums/lofiversion/i...php/t63062.html

 

QT Pro will also display "Out of Stock" for any product or in any attribute dropdown once zero stock levels have been reached.

 

Jason,

 

Thanks a ton, that worked great! I already have a contribution installed to show Out of Stock for zero products, not sure if it was QT Pro or not. This code seems to work good with it;)

 

For anyone that comes across this thread, here's how it's done.

 

1. Open catalog/product_info.php (make a backup!)

 

2. Find the code not too far from the top that looks like this...

 <tr>
	<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
	  <tr>
		<td class="pageHeading" valign="top"><?php echo $products_name; ?></td>
		<td class="pageHeading" align="right" valign="top"><?php echo $products_price; ?>

 

3. Directly after the above code, add this.....

 

4.

<?php

$prod_quantity = tep_get_products_stock($products_id);

switch ($prod_quantity) {

case 0:

print "Out of Stock";

break;

case 1:

print "1 in stock"; 

break;

case 2:

print "2 in stock";

break;

case 3:

print "3 in stock";

break;

case 4:

print "4 in stock";

break;

default:

print "5+ in stock";

}

?>

 

5. Tweak as needed.

 

Thanks Jason and goNeoNe for the assistance here:)

 

Adam

We see our customers as invited guests to a party, and we are the hosts. It's our job every day to make every important aspect of the customer experience a little bit better. - Jeff Bezos

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...