Their new version seems to work -- or at least no longer conflicts with Newsletter Discount -- I installed it and am no longer getting the crashes. So, thank you for getting them on the right track.
But in testing it, I found something that I had not noticed before. Right now, I am using Newsletter Discount to make certain of my downloadable comics free to my Mailchimp subscribers, thus I have set up one category of products (category "4") to give 100% discount to subscribers.
When I log in as with a subscriber email, everything works great. If I checkout with something from category 4, the plugin subtracts 100% of the product price -- I can see the discount during checkout -- and I can download the comic for free (it skips my one payment solution altogether -- PayPal --and just takes me to Checkout Success for download.)
But I just now tested a product from category 4 with a non-subscriber email. If I checkout with a product that's in category 4, it doesn't show me the discount during checkout -- which is good -- but it still skips my PayPal screen and let's me download the comic without paying! And the order shows up as "cc free" in my orders list -- the same code Newsletter Discount uses for my discounted subscribers! (Both use "cc free", even though I don't have credit card as an activated module, only PayPal. When I uninstalled the credit card module, it now shows "moneyorder free" for those transactions.)
When I change the Newsletter Discount to 50%, this no longer happens. Non-subscribers who checkout with downloadable comics from category 4 are taken to the PayPal screen for payment before they can download comics from this category.
So there seems to be some kind of problem with using a discount of 100%. Did I set things up wrong? Is there a way for this to be fixed?
Please let me know - and thank very much you for the great plug-in!
Alex
P.S. In case it helps, this is the code I used to tell Newsletter Discount to only apply to category 4:
Code:
function exclude_category($category) {
switch($category) {
case 4:
return false;
}
return true;
}
Bookmarks