Post by d77 » Wed Sep 05, 2007 2:55 am

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.
Last edited by Daniel on Fri Sep 07, 2007 2:44 am, edited 1 time in total.

User avatar
d77
Active Member

Posts

Joined
Sat Apr 14, 2007 8:04 am

Post by Daniel » Fri Sep 07, 2007 2:45 am

Just fixed this. Will release a mini update shortly.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by d77 » Fri Sep 07, 2007 3:56 am

Awesome, thanks!

User avatar
d77
Active Member

Posts

Joined
Sat Apr 14, 2007 8:04 am
Who is online

Users browsing this forum: No registered users and 4 guests