I am using Discount Coupon Code - http://www.oscommerce.com/community/contributions,4269
My customer now have products that are downloadable.
If the only products in the cart is downloadable, delivery address is bypassed, Hence discount coupon fails to finish calculation.
We get Following message and the checkout process stops.
*1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'or z2g.zone_id = 0 or z2g.zone_id IS NULL )
SELECT dc2z.geo_zone_id FROM discount_coupons_to_zones dc2z LEFT JOIN jor_zones_to_geo_zones z2g USING( geo_zone_id ) WHERE ( z2g.zone_id= or z2g.zone_id = 0 or z2g.zone_id IS NULL ) AND ( z2g.zone_country_id= or z2g.zone_country_id = 0 ) AND dc2z.coupons_id="somecouponcode"
[TEP STOP]
So, as I am about to fix this, Just checking if anyone has fixed this already.
Looking forward to any reply.
Regards.

