Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do you show sold out products but w/o the ability to add to shopping cart?


KatelynHuynh

Recommended Posts

Posted

How do you show sold out / out of stock products but without the ability to add them to the shopping cart and instead show an inactive "sold out" button?

Posted

In product_info.php and /includes/modules/produduct list.php you would need to make the displaying of the buy now button conditional on the stock level.

 

if (stok level > 0) {

display button

}

 

See w3schools.co for more info on writing php

 

HTH

 

G

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Posted

Thanks for the reply! I'm new to oscommerce and not good with coding. It would be great if you or someone can show me how to specifically modify the code.

Posted

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Archived

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

×
×
  • Create New...