Products

Solutions

Resources

Partners

Community

About

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsStoreStoreProduct Sold OutProduct Sold Out
Previous
 
Next
New Post
10/12/2010 8:43 PM
 
Hi Yotam,

As explained just above in the same thread to João, you can control if a product can be ordered or not if the stock quantity is negative.I agree than I could add a message if a customer try to buy more products than the available quantity.
On the other hand, I can't really avoid two or more customers to buy the same product at the same time! Imagine two people (John and Mary) visiting your website and both of them add the same product to their cart at the same time. You could tell me than I just need to substract the quantity ordered in real time, but this is NOT possible and it's no obvious to understand. First, the Internet DO NOT maintain the connection between each action. Second, if I substract the quantity in real time and one of your customers change his mind and leave the website WITHOUT clearing is cart. The stock will be never updated, because the server DO NOT receive a signal when someone close is browser or leave the website!
Currently, the stock is updated when the customer validate his order at checkout. Because if the customer want to paid, then it's time to decrease the stock! :-) If an order is canceled then the stock is reversed with the quantity ordered for each product in the order.

If you have a better suggestion, I'm open minded! :-)

Gilles

We (team members) are Humans offering their knowledge, their work and their spare time FOR FREE to benefit the community. It would be so particularly appreciated that your messages begin with "Hello" and end with "Thank you" or any other form of politeness. Ask yourself what your reaction would be, if you were approached by me (a total stranger) on the street to ask you something without saying "Hello" nor "Thank you"? After several years of services dedicated to the community, I begin to be tired to read requests without any form of politeness.
 
New Post
10/14/2010 7:14 AM
 
Hello again Gilles,

Thank you for the fast and extended repley.
As for not presenting products that are out of stock the admin settings is very clear, but the situation im talking about is when a customer wants to buy 10 units of an item that has only 5 units in stock. its possible to order and pay for more units that are in stock.
My suggestion is to check quantity whenever a customer wants to add a product to cart ot add quantity to product in cart and if request is for more than is in stock than to change the quantity to max in stock and display a message that theres only N units left in stock and its not possible to buy more.

Again thank you very much for supporting,
Yotam.
 
New Post
10/14/2010 8:49 AM
 
Hi Gilles,

I've been following this thread as I very much appreciate the efforts being put into the module.
I think the agreement that you indicate above meets the need here:

"I agree than I could add a message if a customer try to buy more products than the available quantity."

If there are 10 units in stock and John tries to buy 9 and Mary tries to buy 3, one of them will click "Order" first. When that happens, the available quantity will be decremented in the store, although it will not be updated to the other user. However, when the other user attempts to complete their order, they should receive a message indicating that there are no longer that many units available and they need to change their quantity. At this point, the current quantity could be presented to the user.

It might also be possible for the cart to place a temporary hold on the qty that a user has selected. This would mirror the functionaly that we see with online ticket sales where actual seats are reserved during the session for the user. If the transaction is not completed within a defined period, then the items are released back to inventory again.

Thanks for the efforts...

Kevin


 
New Post
10/14/2010 9:07 AM
 
Hi Yotam,

I have already added a new setting "Avoid Negative Stock" in the next BETA! If this setting is enabled, when a customer add products in his basket, an additional test will be conducted to verify the quantity available in stock. The message "Sorry, there is not enough products in stock to fulfill your request." will be displayed if the customer will try to buy more products than the available quantity. The message do not contains the remaining quantity because you already have the token [STOCKQUANTITY] to display the quantity available in stock (read the Templating Guide available at Codeplex for details). To do not disturb the client, no product will be added to the basket!

But once again, it's not a REAL guarantee against negative stocks! As explained before, I can't decrease the stock before the final checkout because the nature of the Internet or I will revert the problem and your stock will be probably ALWAYS false and lower than the reality.

Gilles

We (team members) are Humans offering their knowledge, their work and their spare time FOR FREE to benefit the community. It would be so particularly appreciated that your messages begin with "Hello" and end with "Thank you" or any other form of politeness. Ask yourself what your reaction would be, if you were approached by me (a total stranger) on the street to ask you something without saying "Hello" nor "Thank you"? After several years of services dedicated to the community, I begin to be tired to read requests without any form of politeness.
 
New Post
10/14/2010 9:36 AM
 
Hi Kevin,

This is exactly what I try to explain when I said "this is the nature of the Internet", please read my response to Yotam for details! ;-)

I don't want to use the Session objet nor the ViewState object and every developer should do the same. When you use the Session object in a webfarm, most of time the state of the object is maintened by SQL Server and this is realy slow compares to the Session object used "InProc" with a single server. This is especialy true whith an e-commerce module because now you can rent a small webfarm for a good price and I try to think about all use cases. In France we said: "You can't have the butter AND the money of the butter"! :-) The problem with the ViewState is different but similar, the more you use the ViewState, the more the size of the page increase! Again, this is not a good idea with such kind of module.

Gilles

We (team members) are Humans offering their knowledge, their work and their spare time FOR FREE to benefit the community. It would be so particularly appreciated that your messages begin with "Hello" and end with "Thank you" or any other form of politeness. Ask yourself what your reaction would be, if you were approached by me (a total stranger) on the street to ask you something without saying "Hello" nor "Thank you"? After several years of services dedicated to the community, I begin to be tired to read requests without any form of politeness.
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsStoreStoreProduct Sold OutProduct Sold Out


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out