Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Setting Unlimited stock for some items


thadson

Recommended Posts

Hi,

 

I'm using the "in stock" feature for most of my shopping cart items.

 

However some items are never out of stock. (for example membership)

 

Is there a a simple way to set "unlimited stock" for some items while letting the other items still use the stock system (ie subtracting when ordered, and show "out of stock" "***" when they are out.)

 

I was searching through the forums but I could not find anything on this subject.

 

Thanks

 

Thadson

Link to comment
Share on other sites

Interestingly I managed to set stock on a part to 2147483647, even though I entered 99999999.

 

Field is actually int(4)

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 ======>>>>>.

Link to comment
Share on other sites

Interestingly I managed to set stock on a part to 2147483647, even though I entered 99999999.

 

Field is actually int(4)

Maximum value for a 4 byte signed integer is (2^31)-1 (which equals 2147483647 - Imagine that... ;) )

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

I never got passed my 2 x table. Anything beyond 2 x 12 is just a big number.

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 ======>>>>>.

Link to comment
Share on other sites

  • 4 weeks later...

In your admin set:

 

Check stock level false

 

Subtract stock false

 

Allow Checkout true

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...