Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Supressing displaying product quantity available


Recommended Posts

On the first viewing of my customerised development, my client requested that the quantity of stock avalibale for a product not be displayed


If via Admin disabling the display of quantity, The Buy Now button is repalced by the (Not available version of the button)


I want to retain the contribution Buy Now (not available button), all I want to do is supress the display on the quantity column


Thanking you all advance

Link to comment
Share on other sites

Your doing the wrong setting, its in product listing: Display Product Quantity


Read the Docs http://www.oscommerce.info/kb/osCommerce



Remember, What you think I ment may not be what I thought I ment when I said it.




Auto Backup your Database, Easy way


Multi Images with Fancy Pop-ups, Easy way


Products in columns with multi buy etc etc


Disable any Category or Product, Easy way


Secure & Improve your account pages et al.

Link to comment
Share on other sites

Your doing the wrong setting, its in product listing: Display Product Quantity


I was using product listing: Display Product Quantity


If I turn it off Display Product Quantity all my products will be displayed with the buy now button with line through it which indicates the a product is not available


eg Product displays quantity of 20

Updating Display Product Quantity from 5 to 0

Product now displays with a buy now button indicating it is not available


I beleieve the issue is with the buy now not available contribution


Thanking you all in advance

Link to comment
Share on other sites

Looking at the installation notes for the latest version of Sold out contribution there appears to be a work around


"If the quantity was not being displayed in the product listings, the select query did not include products_quantity and hence the products always showed as sold out. Made the required change in index.php, line 165 -- checked if select clause has no mention of 'products_quantity' then added it to the select clause. "


This appears to answer my issues


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...