Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Stock Quantity


cometrulz

Recommended Posts

Posted

Hey all, I am wondering if it is possible to show the stock quantity in the product info page. If so how do I do it please? Help appreciated...

Posted

There are many addons to show the stock quantity on the product_info.php page. Have a look at

 

http://addons.oscommerce.com/info/4362

 

http://addons.oscommerce.com/info/2629

 

I believe that both of these will work with the latest versions of osc but untested.

 

You can also use google to search these forums to find your answer.

REMEMBER BACKUP, BACKUP AND BACKUP

Posted

See admin->Configuration->Product Listing->Display Product Quantity this right.

Posted

Hi,

 

the above mentioned settings in the admin have no effect on the product_info-page.

But you can easily retrieve the stock quantity in the product_info.php without any add-on.

Simply paste in the desired location, e.g. under the following passage:

 

<?php echo stripslashes($product_info['products_description']); ?>

this:

<?php echo STOCK . $product_info['products_quantity']); ?>

 

Then define STOCK in the product_info language file - and that's it! :D

 

greetz

J.J.

Posted

Hi,

 

the above mentioned settings in the admin have no effect on the product_info-page.

But you can easily retrieve the stock quantity in the product_info.php without any add-on.

Simply paste in the desired location, e.g. under the following passage:

 

<?php echo stripslashes($product_info['products_description']); ?>

this:

<?php echo STOCK . $product_info['products_quantity']); ?>

 

Then define STOCK in the product_info language file - and that's it! :D

 

greetz

J.J.

 

I tried to do this - but then the page goes blank? Doing something wrong?

Posted

<?php echo STOCK . $product_info['products_quantity']); ?>

 

Sorry, my mistake! A bracket too much.

 

<?php echo STOCK . $product_info['products_quantity']; ?>

 

greetz

J.J.

Archived

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

×
×
  • Create New...