Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Online Gift Cards


Eirik

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

Link to comment
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'));

Link to comment
Share on other sites

  • 8 months later...

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?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...