Divison by Zero
I am using your current versions of all necessary extensions and have configured a working version of digital download. It automatically adds the digital download to the users account after paypal payment has been sent. I want to have the option of having free items which do not require paypal but will still add the item to the users download page. What do I need to do to accomplish this. Currently I am getting an error that says something to the effect of "not deviding by zero"
In looking thru previous posts I saw and implemented the following to the confirm page:
<?php if($<cartName>->GrandTotal() > 0) { ?><form name="checkout_PP_LI_Hid" action="https://www.PayPal.com/cgi-bin/webscr" method="post"><?php } else { ?><form name="checkout_PP_LI_Hid" action="checkout_success.php" method="post"><?php } ?>
This seems to work but I still get the error messages:
(on the cart page)
Warning: Division by zero in /hermes/bosweb/web287/b2876/ipg.fsoda/klickme/klickmedigital/cart.php on line 493
(on the confirm page)
Warning: Division by zero in /hermes/bosweb/web287/b2876/ipg.fsoda/klickme/klickmedigital/confirm.php on line 361
How do I get rid of those messages and is there anything else I need to know.
thanks