Shouldn't be hard to repeat this scenario, and I think it is valid:
- Enter admin site and create a new product "Product A" in catalog
- Enter catalog and create a new user account "User A"
- Log in as User A
- Add Product A to cart
- Enter the admin site and remove Product A from catalog
- Enter catalog site and log in as User A
User A now has a reference to Product A in their cart, but Product A does not exist.
Shopping cart module on the side bar looks funny as it tries to display Product A. Viewing the cart page has similar issues.
It doesn't appear to blow up, but I think OpenCart could handle this scenario better. I haven't checked what happens if User A attempts to do a check out.
Open to suggestions on how it should handle this - perhaps it should treat this as if the item is not in the cart at all... use a different SQL join maybe... I haven't looked at the code implementation. Could display a message too I guess, but this might confuse a user just as much. I would probably rather just have the item disappear from their cart completely.
Who is online
Users browsing this forum: No registered users and 4 guests