lankeeyankee:
I think with products with attributes that does happen, another poster had mentioned that. It's advisable to use products without attributes to avoid this and make it as easy as possible for people selecting gifts. Even if that means creating a new free product and just leaving out the attributes, like the one size hat that really doesn't need attributes since it only has one. Try that and see if it changes anything. And, is this a live site or a test site??
I really don't know why this isn't working for you guys. I have it working fine(apart from the known bugs described in this thread) on a live test site/clone of my super modified live site as well as a clean 1.3.8a with demo products. I can only surmise that there is a conflict in one of the other modifications that you have made somewhere else or a merging error. It's hard to say without going over all of the files that are involved. I will keep trying to help you figure it out, but I am no coding expert by a long shot, just someone who knows enough to usually get done what I need to get done for my projects.
Hopefully Strelitzia will post back with his revised files and can help, too.
Let me think about this for a bit to see if I can think of what may be happening.
I don't have this on my live site yet anyway since there are still 2 bugs that I know of that need to be resolved, the guest cart merge bug and the not showing up in the free gift category bug. Whether you want to implement this on a live site is up to you, if you have the gift category hidden then that bug is irrelevant to you and if you don't care if someone can get 2 gifts at once then the guest cart bug doesn't matter either.
FIXED IT!!!!
Well actually it didn't need fixing - only the attributes removing from each product...
it's weird that when a product is marked as "carrot" and has attributes it caused:
The add to cart button to go to the product page
Stopped the Please remove other gifts/offers from your cart first message from displaying
Stopped the free item being removed from the cart when the full price item was removed
All I can think of at the moment is that because the free item was being added through the product page it wasn't registering as a free "carrot" product in the shopping cart?????
Thanks for all the help, it weird how someone mentions something sometimes and it triggers a brain spark :)