Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Gross Price Calcuation in Product Editing Page


RockToJade

Recommended Posts

After installing osCommerce, I followed Peter Mosier's contribution "Canada Tax Zones Setup notes" to setup Canadian Tax. Then, I turned "Display Price with Tax" to TRUE in Admin, My Store.

 

The store's frontend dispaly the gross price with both taxes, GST & PST, correctly as I the store locates in PST zone.

 

e.g.

Net Price: $3.99

Gross Price: $4.45 (6% GST & 8% PST included)

 

However, the product editing page displays the following once the GST/HST/PST Zone selected.

e.g.

Net Price: $3.99

Gross Price $5.1072 (6% GST, 8% PST and 14% HST included)

 

This bug was reported on July 21st, 2004 (see http://www.oscommerce.com/community/bugs,1...ch,gross+price) and numerous discussion in the forum. However I cannot find the solution after a week of search.

 

I realizes this problem not only occurs in Canada, but also in EU with two tax zones. Thus I believe you may have the solution for me.

 

I'm looking for the following items:

1. the algorithm to solve the problem in PHP;

2. the PHP file that needs to be edited

 

Thank you, Grace

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.
Note: Your post will require moderator approval before it will be visible.

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...