Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Stop customers adding more then in stock to Cart


Guest

Recommended Posts

Is there any way of stopping customer’s adding more then in stock to the shopping cart.

 

Basically I don’t won’t the customer to have to alter the amount they have added till they hit the right amount.

 

And I don’t really won’t to have to display how much stock i have at any one time.

 

 

Any help would be great.

 

 

Thanks

Link to comment
Share on other sites

Is there any way of stopping customer’s adding more then in stock to the shopping cart.

 

Basically I don’t won’t the customer to have to alter the amount they have added till they hit the right amount.

 

And I don’t really won’t to have to display how much stock i have at any one time.

Any help would be great.

Thanks

 

you don't want to tell customers how many they can order and you don't want customers to guess how many they can order. I guess you can't have it both ways.

Treasurer MFC

Link to comment
Share on other sites

you don't want to tell customers how many they can order and you don't want customers to guess how many they can order. I guess you can't have it both ways.

 

We aren't taking backorders, so if a customer orders more than we have they get a backorder flag on the item and a message asking them to adjust their order amount.

 

Is there a way to display stock levels only on the shopping_cart.php page? That way, if the customer wants to order more than we have in stock, they can see right at that page how many they should adjust their purchase amount to, without having to guess.

 

 

There must be a way! Can anyone help?

 

Thanks in advance!

Link to comment
Share on other sites

We aren't taking backorders, so if a customer orders more than we have they get a backorder flag on the item and a message asking them to adjust their order amount.

 

Is there a way to display stock levels only on the shopping_cart.php page? That way, if the customer wants to order more than we have in stock, they can see right at that page how many they should adjust their purchase amount to, without having to guess.

There must be a way! Can anyone help?

 

Thanks in advance!

 

well, replace the input field (in the shopping cart) with a drop down box which only goes as far as the amount you have in stock.

 

That (and a little adjustment in the application top) would prevent them from ordering more than you have in stock and they can see directly (from the available amounts in the drop down) how much that is.

Treasurer MFC

Link to comment
Share on other sites

well, replace the input field (in the shopping cart) with a drop down box which only goes as far as the amount you have in stock.

 

That (and a little adjustment in the application top) would prevent them from ordering more than you have in stock and they can see directly (from the available amounts in the drop down) how much that is.

 

 

Unfortunately my ASP is great; PHP not so great. Thanks for the information but I'm not sure how to link the drop down box amounts to the stock levels that already exist.

 

I'm also not sure what you mean by adjustments in the application top.

 

Is there a contribution for this sort of thing? I can't imagine I'm the only one who thought of this. ;)

 

Any clarification would be appreciated.

Link to comment
Share on other sites

Unfortunately my ASP is great; PHP not so great. Thanks for the information but I'm not sure how to link the drop down box amounts to the stock levels that already exist.

 

I'm also not sure what you mean by adjustments in the application top.

 

Is there a contribution for this sort of thing? I can't imagine I'm the only one who thought of this. ;)

 

Any clarification would be appreciated.

 

I believe it is in the tips and tricks section somewhere.

 

application_top also needs some checking because the user can go back to the product page and again click add to cart which normally adds 1 to the quantity if already there.

So a check on whether the quantity in the cart + 1 is over your stock level is needed at that point.

And there is a simple function called tep_get_products_stock() which retrieves the stocklevel for a product for you.

Treasurer MFC

Link to comment
Share on other sites

I believe it is in the tips and tricks section somewhere.

 

application_top also needs some checking because the user can go back to the product page and again click add to cart which normally adds 1 to the quantity if already there.

So a check on whether the quantity in the cart + 1 is over your stock level is needed at that point.

And there is a simple function called tep_get_products_stock() which retrieves the stocklevel for a product for you.

 

 

Thanks I'll give it a whirl! :D

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...