Eirik Posted May 23, 2009 Share Posted May 23, 2009 I've been using http://addons.oscommerce.com/info/5527 for my online gift cards and everything works great except I have just noticed that it does not remove the shipping tax from the cards balance. I have tested this multiple times with different shipping options and every time the order is processed, and in the admin panel the order is correct tax and all but when it subtracts the used amount from the gift card balance it somehow drops the sales tax from the shipping. Yes shipping is set as a taxable good, and yes it does calculate the final order with the shipping tax included, the only place that it drops the tax is when it alters the gift card balance in the database. If anyone has any ideas of suggestions where this error is occurring I would love to hear them. Thank you in advance for your time and consideration. Eirik Quote Link to comment Share on other sites More sharing options...
Eirik Posted May 24, 2009 Author Share Posted May 24, 2009 I've been using http://addons.oscommerce.com/info/5527 for my online gift cards and everything works great except I have just noticed that it does not remove the shipping tax from the cards balance. I have tested this multiple times with different shipping options and every time the order is processed, and in the admin panel the order is correct tax and all but when it subtracts the used amount from the gift card balance it somehow drops the sales tax from the shipping. Yes shipping is set as a taxable good, and yes it does calculate the final order with the shipping tax included, the only place that it drops the tax is when it alters the gift card balance in the database. If anyone has any ideas of suggestions where this error is occurring I would love to hear them. Thank you in advance for your time and consideration. Eirik Just figured I would post this in case someone sometime has a similar issue, perhaps this will help them out. I pretty much scraped the gift certificate addon and made my own, it had a host of problems that just in the end made it very undesirable. However to the meat of the matter. there is a line in the checkout_process.php $order_totals = $order_total_modules->process(); So any payment/credit type edits/addons should be inserted after that point otherwise all the tax computations are not complete yet. Anyway I hope this helps someone. Just a final thought, I found it handy to be able to see what variables were actually being passed as. What I ended up doing was using the redirect link at the end of the checkout_process.php to pass the variables via the url to checkout_success.php. The line you are looking for is tep_redirect(tep_href_link(FILENAME_CHECKOUT_SUCCESS, '', 'SSL')); and you can pass variables like this tep_redirect(tep_href_link(FILENAME_CHECKOUT_SUCCESS, 'ordertotal='.$order->info['total'].'®ulartax='.$order->info['tax'], 'SSL')); Quote Link to comment Share on other sites More sharing options...
Artlife Posted February 1, 2010 Share Posted February 1, 2010 Just figured I would post this in case someone sometime has a similar issue, perhaps this will help them out. I pretty much scraped the gift certificate addon and made my own, it had a host of problems that just in the end made it very undesirable. However to the meat of the matter. there is a line in the checkout_process.php $order_totals = $order_total_modules->process(); So any payment/credit type edits/addons should be inserted after that point otherwise all the tax computations are not complete yet. Anyway I hope this helps someone. Just a final thought, I found it handy to be able to see what variables were actually being passed as. What I ended up doing was using the redirect link at the end of the checkout_process.php to pass the variables via the url to checkout_success.php. The line you are looking for is tep_redirect(tep_href_link(FILENAME_CHECKOUT_SUCCESS, '', 'SSL')); and you can pass variables like this tep_redirect(tep_href_link(FILENAME_CHECKOUT_SUCCESS, 'ordertotal='.$order->info['total'].'®ulartax='.$order->info['tax'], 'SSL')); where is your gift certificate program? Does it track balances for certificates that have a balance left on them? Can a customer see what their balance is? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.