troubleshooting Question

Drupal 7 Commerce Rules - Stop Duplicate item

Avatar of quikwallace
quikwallace asked on
E-CommerceDrupal
15 Comments1 Solution1894 ViewsLast Modified:
Not sure if there are a lot of drupal experts here, but i'll ask, will give me some sense of accomplishment, maybe.

So I have a commerce site, need to prevent users from adding the same item to their cart.  They should only be able to purchase 1 of any sku type.

Sooo, using rules,  I just want to say:
before adding this item to cart
look in cart
if there is another item with the same sku
if so, do not add this item, display message saying dup prevented
continue shopping experience.

I've tried so many things and read so many comments - but nothing is working.  Most rules examples are really basic and the more complex ones, either don't relate close enough to my need or the instructions are just.....  

I had a rule that would check for quantity after i had added the product to the cart, this was ok, except the added to cart message appears along with the duplicate removed message I created.  Obviously I can get rid of the add to cart msg, so I need to address this before the item is added.

Is anyone out there proficient with Drupal 7 Commerce Rules and have any idea on how to resolve this?
ASKER CERTIFIED SOLUTION
Aaron Feledy
Drupal Developer and Consultant

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 15 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 15 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros