Closed (fixed)
Project:
Ubercart Out of stock Notification
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Sep 2011 at 13:09 UTC
Updated:
8 Oct 2011 at 20:41 UTC
If you try to confirm your order at /cart/checkout while there are not enough products left to complete your order, you get an error message. So far, so good.
But even if the product is completely out of stock, the error message uses the 'not_enough' template instead of stating that we have any product left.
To fix that; use the attached patch.
| Comment | File | Size | Author |
|---|---|---|---|
| uc_out_of_stock-consistent_error.patch | 1.01 KB | pieterdc |
Comments
Comment #1
hanoiiThanks for this. I didn't want to do it like this because it's iterating through the cart again while is not necessary. I just added another ifclause to switch between one case or the other.