I have a product / shopping cart page that I'd like to modify. The cart updates below the list of products above. If someone adds Product A, I'd like to display Product C as a special bonus. The code I have is as follows:
The problem is that any product added to the cart has the same Class 'eStore_cart_item_name_value'. When I add Product A, Product C is displayed. However, when I add Product A, then Product B ... Product C disappears.
How can this script be modified to accomplish searching all divs of the same class and if any of them contain 'Product A', display 'Product C'