If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / v1.3.9e - no sold out message if item already in cart

v1.3.9e - no sold out message if item already in cart

Locked

Started by muggins2003 on 29 Sep 2010, 3:33 PM · Views: 956

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
29 Sep 2010, 3:33 PM
#1
muggins2003 avatar

muggins2003

New Zenner

Join Date:
May 2010
Posts:
14
Plugin Contributions:
0

Post #1 by muggins2003

Hi all,

I've recently updated to 1.3.8e and it has come to my attention that when a customer has products in his cart but does not complete the sale immediately but instead logs in at a later date in order to complete the sale - he gets no message that the product has in the meantime become sold-out.

e.g. if a person has logged in and put product X in their cart but logs out without completing a purchase, if then product X subsequently sells out and they log-in later, they will see product X in their cart with nothing to say that they cannot complete their purchase. If they press checkout nothing happens and no message comes up.

any ideas how to fix this?

Thanks

29 Sep 2010, 3:49 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #2 by drbyte

When you say "sold out", do you mean merely that the quantity-on-hand is set to 0, or do you mean that the product's status has been set to disabled (red dot) ?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

29 Sep 2010, 3:50 PM
#3
muggins2003 avatar

muggins2003

New Zenner

Join Date:
May 2010
Posts:
14
Plugin Contributions:
0

Post #3 by muggins2003

Good question - I mean that the product quantity has reduced to 0 - so the product is still enabled.

Thanks

29 Sep 2010, 3:59 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #4 by drbyte

Using a clean new install of v1.3.9f, I can't recreate your problem.

I've tried the following scenarios:
a) Inventory = 0

  • login
  • add item to cart
  • logout
  • use admin to change inventory for that product to 0
  • login
  • attempt to checkout ... redirects me to shopping cart page because of a problem with quantities
  • On the shopping-cart page it shows me what's wrong: "Products marked with *** are out of stock. Items not in stock will be placed on backorder."
  • It does allow me to check out because my store's stock settings are configured to allow that.

b) Product Status is disabled.

  • login
  • add item to cart
  • logout
  • use admin to turn product off by clicking green dot to make it red
  • login
  • shopping cart is empty because the disabled product has been removed from the cart due to being disabled
  • it does not allow me to checkout because there's nothing in my cart

Similar thing happens if I add two different products to my cart, and disable one of them: the disabled product is automatically removed from the cart. The remaining product is still in the cart, and I can checkout with that item without problems.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

29 Sep 2010, 4:04 PM
#5
muggins2003 avatar

muggins2003

New Zenner

Join Date:
May 2010
Posts:
14
Plugin Contributions:
0

Post #5 by muggins2003

OK thank you. It is obviously a problem with 1.3.9e. I should probably just update to 1.3.9f to eliminate the problem

29 Sep 2010, 4:06 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #6 by drbyte

Actually, no, I don't think it's a problem with 1.3.9e. The behaviour I described works on 1.3.8a as well.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

29 Sep 2010, 4:09 PM
#7
muggins2003 avatar

muggins2003

New Zenner

Join Date:
May 2010
Posts:
14
Plugin Contributions:
0

Post #7 by muggins2003

I have to say I'm at a bit of a loss now. Any idea what could be going wrong?

Thanks so much for your help!

29 Sep 2010, 4:18 PM
#8
muggins2003 avatar

muggins2003

New Zenner

Join Date:
May 2010
Posts:
14
Plugin Contributions:
0

Post #8 by muggins2003

With respect to your scenario the following step just doesn't happen.

"- On the shopping-cart page it shows me what's wrong: "Products marked with *** are out of stock. Items not in stock will be placed on backorder."

  • It does allow me to check out because my store's stock settings are configured to allow that."

I have just checked the "stock" section in the admin panel and I do not allow checkout when stock is out i.e. the allow checkout field is set to false. I think this might be different in your scenario. If you change this to false - can you recreate the problem?

Thanks again

29 Sep 2010, 4:30 PM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #9 by drbyte

c) Inventory = 0, Changed Allow Checkout When Out of Stock to false

  • login
  • add item to cart
  • logout
  • use admin to change inventory for that product to 0
  • login
  • attempt to checkout ... redirects me to shopping cart page because of a problem with quantities
  • On the shopping-cart page it shows me what's wrong: "Products marked with *** are out of stock or there are not enough in stock to fill your order. Please change the quantity of products marked with (). Thank you"*, and displays *** next to the product names and under the quantity box.
  • It does not allow me to check out because of the error message.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

29 Sep 2010, 4:36 PM
#10
muggins2003 avatar

muggins2003

New Zenner

Join Date:
May 2010
Posts:
14
Plugin Contributions:
0

Post #10 by muggins2003

super - that error message is just not showing up for me - so at least I've narrowed down what to look for. still haven't a notion how to fix but it is hopefully something straightforward.

thanks for your time:smile:

29 Sep 2010, 4:37 PM
#11
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #11 by drbyte

Probably a broken template which doesn't display error messages because that part's been hacked out of it, or broken language files that don't contain the actual error messages for some reason.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

29 Sep 2010, 4:47 PM
#12
muggins2003 avatar

muggins2003

New Zenner

Join Date:
May 2010
Posts:
14
Plugin Contributions:
0

Post #12 by muggins2003

woohoo it is sorted. It was down to the "mark product out of stock field" being blank. When I put *** in - all is well.