1

i want to show a popup if the product was added again or updated. i mean how can i get the massage "This Product is already in your cart "when second time i added product to shopping cart ....?enter image description here

4
  • so you want to add that message or are you wondering how you got that message?
    – rob3000
    Commented Dec 14, 2015 at 8:44
  • No ,i want to add the message ..when i am adding same product ... Commented Dec 14, 2015 at 8:46
  • What have you tried to far. Did you google for any solutions or did you write any code to get this functionality? Commented Dec 14, 2015 at 8:49
  • You'll need to iterate over cart items and match between product IDs in 2 places(second place is your current product's ID). If there is a match you can display the message.
    – Prateek
    Commented Dec 14, 2015 at 9:09

0

Browse other questions tagged or ask your own question.