Yeah, I see your point about a coupon, but what about group discount, quantity discounts, etc? Unfortunately, these do not factor into the cart total until the checkout page due to the zen cart structure and order totals like the discounts. So, they shouldn't have qualified for the gift in the first place but there is no way to address this until the checkout page. I guess you could just leave it the way it is so no one gets upset about losing the gift. It's better to get the sale even if the customer gets the gift for less than the threshold amount than to lose it because they feel cheated that they got to choose a gift in the shopping cart page only to lose it during checkout. It's a limitation of the core process since the shopping cart page's logic doesn't call the order totals modules.
If the gift has an attribute (in my case color), the customer is sent to the product page to select the attribute, then presses a "return to cart" button. But the free product is never added to the cart.
I think it's simpler just to disallow attributes. The fewer choices the better...
Thanks for all your work on this module. I can see it's going to be very useful.
I do see your point about the discounts and I agree. I think I will leave it as it is.
I am going to look at the code to see if I can add attributes right onto the gift listing on the shopping cart page. I have wanted to do this with other modules so it is worth me spending some time looking into the possibility. For now, I will put in the readme file in the next update that gifts should not have attributes.
My next task is the option of displaying only gifts within a threshold based on the current cart value.
Let me know if you run into any other bugs.
I see that they show up even with the category disabled. I am not sure what can be done about that, that is a zen cart core function. You could probably hardcode some logic into the new products function that won't display new products from category x. There is also a mod in the downloads called hide categories that might work for this http://www.zen-cart.com/index.php?ma...roducts_id=391 If you want to give it a try please let us know your results.
I personally don't mind people seeing the gifts, I have enabled the Free Gift category so that it shows with all of the rest of the categories. I want people to be able to see the free gifts to entice them to buy more, you cannot add the gifts to the cart so in my opinion it can only help to show them to customers everywhere possible.
Here's another little bug. If the customer logs in, adds items to his cart, chooses a free gift, then logs out before completing the purchase, then comes back to the site and adds items to his guest cart, chooses another gift, logs in, the previously chosen gift remains in his cart, so now he's got two gifts.