This patch sets a message when user is adding an item to the cart that is already there.

This ended up touching more places than I wanted, but I'm posting it here anyway for review.

See screenshot.

Comments

rszrama’s picture

For reference, this is essentially the same thing Amazon does:

Only local images are allowed.

rszrama’s picture

Status: Needs review » Needs work

This patch is out of date, as it still references the old "product" field (now commerce_product). Additionally, instead of loading the order and looping over its line items like this patch does, we could just use a single EntityFieldQuery. I'm also not sure this needs to be a core feature. This could probably even be implemented using Rules as it is now.

recidive’s picture

Status: Needs work » Closed (won't fix)

Yeah. This is just stupid!

I'll check if I can do this with rules and post the results here.

rszrama’s picture

lol I didn't think it was that bad of an idea. It would probably make for a handy contrib to have. : )

pcambra’s picture

Status: Closed (won't fix) » Postponed

Setting as postponed (as it would suit in contrib) maybe we should build a list for people wanting to do some contrib work with all this stuff

pcambra’s picture

Component: User experience » Contributed modules
bojanz’s picture

Issue summary: View changes
Status: Postponed » Closed (won't fix)