Jump to content
Sign in to follow this  
Eirik

Online Gift Cards

Recommended Posts

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

Share this post


Link to post
Share on other sites
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'].'&regulartax='.$order->info['tax'], 'SSL'));

Share this post


Link to post
Share on other sites

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'].'&regulartax='.$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?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×